test phase 23 verification script
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CENTRAL="${CENTRAL_URL:-http://localhost:5080}"
|
||||
CENTRAL="${CENTRAL_URL:-http://localhost:5270}"
|
||||
GATEWAY="${GATEWAY_URL:-http://localhost:5081}"
|
||||
JWT="${ADMIN_JWT:?Set ADMIN_JWT to a valid admin bearer token}"
|
||||
GATEWAY_JWT="${GATEWAY_JWT:?Set GATEWAY_JWT to a valid gateway dashboard JWT}"
|
||||
@@ -24,7 +24,7 @@ docker network disconnect "$NETWORK" "$GATEWAY_CONTAINER" 2>/dev/null || true
|
||||
|
||||
echo "Partition active — posting observation to gateway..."
|
||||
ENCOUNTER_ID=$(curl -sf "$GATEWAY/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')
|
||||
|
||||
curl -sf -X POST "$GATEWAY/api/v1/encounters/$ENCOUNTER_ID/observations" \
|
||||
-H "Authorization: Bearer $GATEWAY_JWT" \
|
||||
|
||||
Reference in New Issue
Block a user