test: run 21 verification script

chore: add readme
This commit is contained in:
voltsrage
2026-06-23 17:13:11 +08:00
parent 1bf8359097
commit c38334690c
3 changed files with 63 additions and 13 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ sleep 35
echo "==> List active encounters from local replica"
ENCOUNTER_ID=$(curl -sf "$GW/api/v1/encounters?status=ACTIVE&department=ICU" \
-H "Authorization: Bearer $GATEWAY_JWT" | jq -r '.data.items[0].id')
-H "Authorization: Bearer $GATEWAY_JWT" | jq -r '.data.items[0].encounterId')
if [[ -z "$ENCOUNTER_ID" || "$ENCOUNTER_ID" == "null" ]]; then
echo "No ACTIVE ICU encounter on gateway — seed replica or set GATEWAY_SYNC_JWT for sync" >&2
exit 1