Skip to content

fix: use the new auth and API URLs - #7

Merged
taohidkhan22 merged 1 commit into
developfrom
fix/new-auth-and-api-urls
Nov 23, 2026
Merged

taohidkhan22 merged 1 commit into
developfrom
fix/new-auth-and-api-urls

Conversation

@taohidkhan22

Copy link
Copy Markdown
Contributor

Problem

The environments do not have the gateway.<domain> subdomain now. All tests failed:

  • Login through the API returned 404.
  • The file upload returned 405.

Changes

The URLs are now the same as in packages/testland/e2e/support in opencrvs-core develop.

  • support/constants.ts
    • AUTH_URL is https://login.<domain>/api/auth.
    • GATEWAY_HOST is https://register.<domain>/api.
  • support/test-data/utils.ts
    • uploadFile() adds /upload to GATEWAY_HOST as a string. new URL('/upload', GATEWAY_HOST) removed the /api path.

Test results

  • Full suite on qa.opencrvs.dev, --repeat-each 3: 32 passed and 1 failed.
  • The failure is "Advanced search - inactive health facilities" (@C3411), in 1 of its 3 runs. The death search showed 0 results, because the search index did not have the new record yet. Login and the upload worked. This test is flaky, and the URL change does not cause the failure. A separate PR will fix it.
  • pnpm typecheck, pnpm lint and pnpm format:check pass.

PR #5 has the same two changes. After this PR is merged, PR #5 has only its spec file.

🤖 Generated with Claude Code

The environments do not have the gateway subdomain now. Login failed
with 404, and the upload failed with 405. Copy the URLs from
opencrvs-core develop:

- AUTH_URL is https://login.<domain>/api/auth
- GATEWAY_HOST is https://register.<domain>/api
- uploadFile() keeps the /api path of GATEWAY_HOST

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@taohidkhan22
taohidkhan22 merged commit 3dca327 into develop Nov 23, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants