ci(e2e): route API calls through the SPA-host proxy while PMS-618 is open #423
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-server!423
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/PMS-618-e2e-api-base-workaround"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The mokosh-server PR CI runs
e2e/scripts/health-check.mjsas a preflight (PMS-141) andderiveApiBaseprependsapi.to the SPA host, landing onhttps://api.msp.a8n.systems/api/v1/health. That subdomain is currently 404-ing on staging: the Traefik router labels for the api host are missing, so every mokosh-server PR fails at the preflight step (PR #421 and #422 both showedStaging /api/v1/health returned HTTP 404). Same failure mode as the CORS-404 storm on the user's /tickets screenshot: the SPA-derived api host does not resolve to mokosh-server.Root-cause fix (Traefik + DNS) lives outside this repo and is tracked in PMS-618. Land the short-term unblock here so the queue moves: set
E2E_API_BASE_URLto the same value asE2E_BASE_URL(the SPA host), which serves/api/v1/*correctly today via the SPA-host proxy that already exists.deriveApiBaseis skipped in favour of the explicit override, so the preflight and every /api/v1/* test call go to a working host.env.opBaseURLis unaffected because it has its own explicit source (E2E_OP_BASE_URL/OIDC_ISSUER_*).Remove this override in the same PR that closes PMS-618: the workaround should not silently outlive the routing fix. The comment on the env line points at the ticket to make that removal easy to find.
#PMS-618
Pull request closed