Test Scenarios

Run test flows that verify Phase 1, 2, and 3 functionality

Health Check

Verify Go API is responding

infra

Infrastructure Health

Verify all 6 services including Caddy and NATS

infra
caddy
nats

Database Connectivity

Verify all Phase 1+2 tables exist and are queryable

infra
schema

Auth Flow

OTP → verify → register → profile → refresh → logout

auth

Post Lifecycle

Create → get → react → verify Redis → delete

posts
reactions
counters

Feed Integrity

Follow → post → verify home feed → global feed

feed
social

Notification Flow

Follow → check unread → list → mark read → verify 0

notifications

Media Presign

Presign upload → invalid type → oversized → verify DB

media

Counter Sync

Check dirty sets and Redis↔PG counter comparison

counters

Event Lifecycle

Events API → teams → rooms → lifecycle worker verification

events
lifecycle

Chat REST

Create room → list rooms → get messages → verify DB

chat

Event Feed

Find event → get detail → stadium feed → rooms → chat room

events
feed

Push Notification

Register token → verify DB → re-register → unregister → verify deactivated

push
phase3

Admin Moderation

Create post → report → admin lists → resolve → verify DB

admin
reports
phase3

Feed Cache

Follow → post → feed fetch (miss) → feed fetch (hit) → check cache keys

feed
cache
phase3

Notification Aggregation

Create post → 3 users react → fetch grouped → verify aggregation

notifications
phase3