# Test Plan

Run `tests/api-smoke-tests.sh` only against a test database. Change the sample phone, email, password and installation ID before use.

Manual acceptance checks:
1. Register with a new phone: one user, one device, one trial history row, exactly 72 hours based on UTC server time.
2. Register duplicate phone/email: HTTP 409.
3. Login same device: success; login from a different device: HTTP 403.
4. Revoke session or block user: old access token rejected.
5. Refresh token once: old refresh token cannot be reused.
6. Expire trial and remove paid subscription: protected website/YouTube endpoints return HTTP 402; payment and status endpoints remain available.
7. Submit payment: pending request only; no subscription until verified and approved.
8. Approve pending payment twice: second approval is rejected; only one subscription is created.
9. Expire subscription: protected APIs return 402.
10. Request device replacement: old device remains bound until admin approval; approval revokes sessions and activates replacement.
11. Set minimum version higher than installed version and force_update=1: app version endpoint reports update requirement.
12. Disable registration in settings: new registration is rejected.
13. Disable all YouTube keys: search returns safe server error and never exposes stored keys.
14. Verify API/admin logs contain metadata only, not passwords, bearer tokens, OTPs or API secrets.
