From 875dfba1b217784011e29cfd00f0ee5341c40778 Mon Sep 17 00:00:00 2001 From: Jens Tirsvad Nielsen Date: Wed, 7 Oct 2026 13:28:47 +0800 Subject: [PATCH] Use a public project in the test that reuses a repository holding LICENSE and README.md A private project with GitHub no longer gets a license, so only a public one expects it. Task: MIL-006#4 Refs #50 --- tests/test-hosts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-hosts.sh b/tests/test-hosts.sh index 687c521..ebe3946 100644 --- a/tests/test-hosts.sh +++ b/tests/test-hosts.sh @@ -499,7 +499,7 @@ test_a_repository_this_script_created_earlier_can_be_reused() { setup_hosts prepend_route 'GET|/api/v1/repos/TirSystem/my-app|200|{"empty":false}' prepend_route 'GET|/api/v1/repos/TirSystem/my-app/contents|200|[{"name":"README.md","type":"file"},{"name":"LICENSE","type":"file"}]' - run_apply "$ANSWERS_GITHUB"$'y\ny\n' + run_apply "$ANSWERS_GITHUB_PUBLIC"$'y\ny\n' assert_status "LICENSE and README.md" 0 "$STATUS" assert_not_contains "not created again" "$(calls)" "$GITEA_REPO_CALL" assert_contains "reported" "$OUT" "Gitea repository : reused"