From 5f429d5bf2e284bed93422a500c81d1bbeef2e7a Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Fri, 14 Aug 2026 10:46:17 +0530 Subject: [PATCH] test: pass --url, required by server 2.4.0 The server exits at boot without --url as of authorizerdev/authorizer#764, so both suites would fail at container startup once the image pin moves to 2.4.0 stable. The pin is 2.4.0-rc.13 today, so this is a no-op now. Uses the in-container address rather than the mapped host port, which is only knowable after start. The difference affects generated email links and the JWT iss claim; neither suite asserts on either. --- __test__/admin.test.ts | 5 +++++ __test__/index.test.ts | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/__test__/admin.test.ts b/__test__/admin.test.ts index e601f1f..895bd17 100644 --- a/__test__/admin.test.ts +++ b/__test__/admin.test.ts @@ -41,6 +41,11 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } { 'sqlite', '--database-url', '/tmp/authorizer-admin.db', + // Required as of server 2.4.0 — startup fails without it. The server's own + // address inside the container; the suite reaches it via a mapped host + // port, which only affects email links and the JWT `iss` claim. + '--url', + 'http://localhost:8080', '--enable-playground=false', '--log-level', 'debug', diff --git a/__test__/index.test.ts b/__test__/index.test.ts index d7f7b35..30b0fff 100644 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -53,6 +53,13 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } { 'sqlite', '--database-url', '/tmp/authorizer.db', + // Required as of server 2.4.0 — startup fails without it. This is the + // server's own address *inside* the container, which is where it binds; + // the suite reaches it through a testcontainers-mapped host port, so the + // two differ. That only affects generated email links and the JWT `iss` + // claim, neither of which this suite asserts on. + '--url', + 'http://localhost:8080', '--enable-playground=false', '--log-level', 'debug',