Change port from 8080 to 8999
Container listens on 8999 and docker-compose maps 8999:8999. README and TEST.md examples updated to http://localhost:8999. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ docker compose logs | grep -i admin
|
||||
|
||||
## Part A: Browser
|
||||
|
||||
Open http://localhost:8080.
|
||||
Open http://localhost:8999.
|
||||
|
||||
### A1. Sign-in
|
||||
|
||||
@@ -37,7 +37,7 @@ Open http://localhost:8080.
|
||||
sign-in attempts; try again in … s".
|
||||
- [ ] **A1.4** The correct password (after the lock expires, or from another browser) opens the app.
|
||||
The header shows `<username> ▾`, **Edit Contabo prices** and **Refresh live prices**.
|
||||
- [ ] **A1.5** Opening http://localhost:8080/docs while signed in shows the Swagger API docs. Signed out,
|
||||
- [ ] **A1.5** Opening http://localhost:8999/docs while signed in shows the Swagger API docs. Signed out,
|
||||
it redirects to `/login`.
|
||||
|
||||
### A2. Software tiers and sizing
|
||||
@@ -141,14 +141,14 @@ Use a private window, or sign out first.
|
||||
incorrect". Then use the right one. **Expect:** "Password changed."
|
||||
- [ ] **A9.6** As admin, **Disable** alice. In alice's window, reload. **Expect:** back to the sign-in
|
||||
page, and alice can't sign in. Re-enable her afterwards.
|
||||
- [ ] **A9.7** **Sign out** returns to `/login`. Opening http://localhost:8080/ again redirects to `/login`.
|
||||
- [ ] **A9.7** **Sign out** returns to `/login`. Opening http://localhost:8999/ again redirects to `/login`.
|
||||
|
||||
---
|
||||
|
||||
## Part B: API (curl)
|
||||
|
||||
```bash
|
||||
export BASE=http://localhost:8080/api/v1
|
||||
export BASE=http://localhost:8999/api/v1
|
||||
export KEY=cmk_... # alice's key from A8.1 (role: user)
|
||||
export ADMIN_KEY=cmk_... # create one for yourself under Account → API keys
|
||||
code() { curl -s -o /dev/null -w "%{http_code}\n" "$@"; }
|
||||
@@ -161,8 +161,8 @@ code() { curl -s -o /dev/null -w "%{http_code}\n" "$@"; }
|
||||
- [ ] **B1.3** `code -H "Authorization: Bearer $KEY" $BASE/tiers` → **200**.
|
||||
- [ ] **B1.4** `code -H "X-API-Key: cmk_deadbeef_nope" $BASE/tiers` → **401**.
|
||||
- [ ] **B1.5** `curl -s -H "X-API-Key: $KEY" $BASE/auth/me` → `"username": "alice", "role": "user", "auth": "api_key"`.
|
||||
- [ ] **B1.6** `code http://localhost:8080/healthz` → **200** without a key.
|
||||
- [ ] **B1.7** `code http://localhost:8080/openapi.json` → **401**. With `-H "X-API-Key: $KEY"` → **200**.
|
||||
- [ ] **B1.6** `code http://localhost:8999/healthz` → **200** without a key.
|
||||
- [ ] **B1.7** `code http://localhost:8999/openapi.json` → **401**. With `-H "X-API-Key: $KEY"` → **200**.
|
||||
|
||||
### B2. Reference data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user