Skip to content

Commit f14a35a

Browse files
Merge pull request #15 from mahmoud-sadder/fix/deploy-smoke
Fix deploy smoke-check (auth-mode agnostic)
2 parents 55e794c + acdafee commit f14a35a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-kali.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
sudo systemctl restart airstrike
4040
sleep 3
4141
test "$(sudo systemctl is-active airstrike)" = active
42-
curl -fsS -o /dev/null -w "smoke: /login HTTP %{http_code}\n" http://127.0.0.1:5000/login
42+
# Liveness only (mode-agnostic): any HTTP response = server up. Don't assert a
43+
# specific route/status, since /login exists only when auth is enabled.
44+
code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:5000/ || echo 000)
45+
test "$code" != "000"
46+
echo "smoke: server responded HTTP $code"
4347
echo "::endgroup::"
4448
4549
echo "Deployed ${GITHUB_SHA} to the Kali lab."

0 commit comments

Comments
 (0)