#!/usr/share/ucs-test/runner bash
#
# Univention System Activation
#  test script
#
# SPDX-FileCopyrightText: 2015-2025 Univention GmbH
# SPDX-License-Identifier: AGPL-3.0-only

. "$TESTLIBPATH/random.sh" || exit 137
. tools.inc.sh

license_file="$(mktemp)"
random_chars 150000 "${_upperletters}${_lowerletters}${_ciphers}._-" > "$license_file"
http --form "license=@${license_file}"
rm -f "$license_file"

has_request_failed ||
	fail_fast 1 "Large file is not caught"
