Fix notifier verification coverage
This commit is contained in:
@@ -288,8 +288,9 @@ log "web pages render with expected content"
|
||||
curl -sfL "$WEB_BASE/" | grep -q "Agents" || fail "web / did not redirect to Agents"
|
||||
curl -sf "$WEB_BASE/agents" | grep -q "mixed-status" || fail "web /agents missing mixed-status label"
|
||||
curl -sf "$WEB_BASE/checks" | grep -q "critical_check" || fail "web /checks missing critical_check"
|
||||
curl -sf "$WEB_BASE/incidents?state=open&limit=100&sort=status&direction=desc" \
|
||||
| grep -q "agent-08" || fail "web /incidents missing agent-08"
|
||||
INCIDENTS_HTML="$(curl -sfL "$WEB_BASE/incidents?state=open&sort=status&direction=desc")"
|
||||
echo "$INCIDENTS_HTML" | grep -q "agent-07" || fail "web /incidents missing agent-07"
|
||||
echo "$INCIDENTS_HTML" | grep -q "agent-08" || fail "web /incidents missing agent-08"
|
||||
curl -sf "$WEB_BASE/outbox" | grep -q -E 'webhook|debug' || fail "web /outbox missing notifier names"
|
||||
curl -sf -o /dev/null "$WEB_BASE/events" || fail "web /events returned non-200"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user