integration: worker image, bridge, compose, Makefile, deploy scripts
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Post-deploy smoke test. Requires LVMH_HOST (default alarm), LVMH_TOKEN env.
|
||||
set -euo pipefail
|
||||
|
||||
HOST="${LVMH_HOST:-alarm}"
|
||||
TOKEN="${LVMH_TOKEN:?set LVMH_TOKEN}"
|
||||
BASE="http://$HOST:8686"
|
||||
|
||||
auth=(-H "Authorization: Bearer $TOKEN")
|
||||
|
||||
echo "== sessions =="
|
||||
curl -fsS "${auth[@]}" "$BASE/api/sessions" | head -c 400; echo
|
||||
|
||||
echo "== gitlab status =="
|
||||
curl -fsS "${auth[@]}" "$BASE/api/gitlab/status"; echo
|
||||
|
||||
echo "== web dist =="
|
||||
curl -fsS "$BASE/" | grep -o '<title>[^<]*</title>' || echo "no title tag"
|
||||
|
||||
echo "SMOKE OK"
|
||||
Reference in New Issue
Block a user