Smoke Tests: External Integrations (Stripe, Anthropic, LiveKit)
Property: ChurchWiseAI Category: API / Integration
Tier:
all
Persona: devops
Touchpoint: /api endpoints, third-party APIs
Preconditions
- All external API keys configured in env
- Stripe, Anthropic, LiveKit accounts active
Steps
| # | Action | Expected Result |
|---|---|---|
| 1 | Send test chatbot request to Anthropic | Chatbot API returns 200. Response contains generated text. Latency <10s. |
| 2 | Send test Stripe webhook (signed) | Webhook endpoint returns 200. Event processed correctly. |
| 3 | Create test Stripe customer | Stripe API returns customer object. Customer ID can be used for payments. |
| 4 | Send test SMS via Twilio (if integrated) | SMS API returns 200. No failures in logs. |
| 5 | Test LiveKit voice agent connectivity | Voice agent SIP endpoint accessible. Can initiate call. |
| 6 | Verify Supabase connection | Database queries fast (<100ms). No connection errors in logs. |
| 7 | Check all API keys are valid (not expired) | No 401 (Unauthorized) responses from external APIs. |
| 8 | Monitor error logs for integration failures | No error stack traces. APIs responding normally. |
Known Failure Modes
- Anthropic API key invalid — chatbot breaks
- Stripe webhook secret wrong — payments not processed
- Twilio SMS failing — notifications don't send
- LiveKit unreachable — voice agent offline
- Supabase connection broken — data layer unavailable
References
- Playwright spec:
e2e (conceptual integration tests) - Code files:
Notes
Integration health check for all external services. Run after environment variable changes or after upstream service outages. Verifies API keys are valid, services are reachable, and latency is acceptable. Failures indicate configuration error or service outage — likely causes: expired keys, wrong region, wrong API version, rate limit exceeded.