27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
1. Registration
|
|
Registration status: 201
|
|
Registration headers: {'Content-Length': '144', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Date': 'Thu, 05 Nov 2026 21:36:34 GMT', 'Keep-Alive': 'timeout=60', 'Proxy-Connection': 'keep-alive', 'Server': 'uvicorn', 'X-Instance-Id': '6ef424a5-b218-4ae3-8d27-b77e60af053d', 'X-Request-Id': 'e6be1a7b-3a6a-4559-8fb3-798251343744'}
|
|
Registration body: {'id': '41b7125f-c793-43a6-bd5b-6a77b5b6216d', 'username': 'test_886143f0d7', 'display_name': 'Test User', 'created_at': '2026-11-05T21:36:35.757609Z'}
|
|
PASS: registration: 201 (expected 201)
|
|
User ID: 41b7125f-c793-43a6-bd5b-6a77b5b6216d
|
|
|
|
2. Basic login
|
|
PASS: login: 201 (expected 201)
|
|
|
|
3. Access with Bearer token
|
|
PASS: authorized request: 200 (expected 200)
|
|
|
|
4. Access without token
|
|
PASS: missing token: 401 (expected 401)
|
|
|
|
5. X-User-Id cannot authorize
|
|
PASS: X-User-Id rejected: 401 (expected 401)
|
|
|
|
6. Logout
|
|
PASS: logout: 204 (expected 204)
|
|
|
|
7. Reuse revoked token
|
|
PASS: revoked token rejected: 401 (expected 401)
|
|
|
|
ALL AUTH CHECKS PASSED
|