hostinstall harness: the two R-1167 behaviour cases SKIP out loud where there is no curl (the CI runner; CI 2106/2108 red)

This commit is contained in:
admin committed 2026-10-19 21:30:33 +02:00
1 parent 15f7428871
commit 5d0dfeac5f
2 files changed
+15 -6

No files matched your search

+12 -5
View File
@@ -330,7 +330,12 @@ r1167_run() { # <hub status> → $out/$rc of resolve_git_creds against the fake
kill "$pid" 2>/dev/null || true; wait "$pid" 2>/dev/null || true
[[ -n "$port" ]]
}
if ! grep -q '^resolve_git_creds() {' "$r1167_fns" || ! grep -q '^die_live_box() {' "$r1167_fns"; then
if ! command -v curl >/dev/null 2>&1; then
# The CI runner carries python3 and git and nothing else (no curl): the installer's own HTTP calls cannot run there.
# The static case above still runs everywhere; the pre-push hook (with curl) runs these two.
verdict SKIP "R-1167 live-box 409 is worded (EN + HU)" "no curl on this machine — the installer's HTTP calls cannot run"
verdict SKIP "R-1167 a 200 still reads the git credential" "no curl on this machine"
elif ! grep -q '^resolve_git_creds() {' "$r1167_fns" || ! grep -q '^die_live_box() {' "$r1167_fns"; then
verdict FAIL "R-1167 live-box 409 is worded (EN + HU)" "could not extract resolve_git_creds/die_live_box from the script"
elif ! r1167_run 409; then
verdict SKIP "R-1167 live-box 409 is worded (EN + HU)" "the local fake hub did not start"
@@ -339,10 +344,12 @@ elif [[ $rc -ne 0 && "$out" == *"The operator deletes the old host on the hub fi
else
verdict FAIL "R-1167 live-box 409 is worded (EN + HU)" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
fi
if r1167_run 200 && [[ $rc -eq 0 && "$out" == *"GIT_USER=felhom-ci"* ]]; then
verdict PASS "R-1167 a 200 still reads the git credential"
else
verdict FAIL "R-1167 a 200 still reads the git credential" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
if command -v curl >/dev/null 2>&1; then
if r1167_run 200 && [[ $rc -eq 0 && "$out" == *"GIT_USER=felhom-ci"* ]]; then
verdict PASS "R-1167 a 200 still reads the git credential"
else
verdict FAIL "R-1167 a 200 still reads the git credential" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
fi
fi
# GL6-F4 (v1.11.3): the producer steps token/enroll/grows must run UNCONDITIONALLY (not behind