diff --git a/tests/unit/runtime-adapters-credential-order.test.ts b/tests/unit/runtime-adapters-credential-order.test.ts index 618cb9b5..2fc7f2bf 100644 --- a/tests/unit/runtime-adapters-credential-order.test.ts +++ b/tests/unit/runtime-adapters-credential-order.test.ts @@ -52,7 +52,7 @@ vi.mock("../../src/features/installed-contract-contributions.ts", async (importO ...TEST_CONTRACT_CONTRIBUTION, http: [ list, - fixture.withProfile(list, "TEST_LIST_ENTITIES_BEARER", "REFERENCE_EXTERNAL_BEARER"), + fixture.withProfile(list, "TEST_LIST_ENTITIES_BEARER", "EXTERNAL_BEARER"), ] as typeof TEST_CONTRACT_CONTRIBUTION.http, }, ]); @@ -138,7 +138,7 @@ const ANONYMOUS_OPERATION = TEST_LIST_HTTP_CONTRACT; const PROFILE_OPERATION = fixture.withProfile( TEST_LIST_HTTP_CONTRACT, "TEST_LIST_ENTITIES_BEARER", - "REFERENCE_EXTERNAL_BEARER", + "EXTERNAL_BEARER", ); function externalOwner() { @@ -213,7 +213,7 @@ type Row = Readonly<{ const ROWS: readonly Row[] = [ { step: "1 scope fence comes before the product provider", - providers: () => ({ REFERENCE_EXTERNAL_BEARER: productToken }), + providers: () => ({ EXTERNAL_BEARER: productToken }), authMode: "demo", // The session change fences the scope synchronously; READY comes later. before: (adapters) => void adapters.outputPorts.session.beginSignIn(), @@ -235,7 +235,7 @@ const ROWS: readonly Row[] = [ }, { step: "3 a registered provider answers before the session (signed out)", - providers: () => ({ REFERENCE_EXTERNAL_BEARER: productToken }), + providers: () => ({ EXTERNAL_BEARER: productToken }), authMode: "demo", operation: PROFILE_OPERATION, outcome: { kind: "SUCCESS" }, @@ -245,7 +245,7 @@ const ROWS: readonly Row[] = [ }, { step: "3 a registered provider answers before the external owner", - providers: () => ({ REFERENCE_EXTERNAL_BEARER: productToken }), + providers: () => ({ EXTERNAL_BEARER: productToken }), authMode: "external", operation: PROFILE_OPERATION, outcome: { kind: "SUCCESS" }, @@ -266,7 +266,7 @@ const ROWS: readonly Row[] = [ { step: "5 the scope fence is checked again after the provider answers", providers: (owner) => ({ - REFERENCE_EXTERNAL_BEARER: async (...args) => { + EXTERNAL_BEARER: async (...args) => { owner.switchUser(); return productToken(...args); }, @@ -283,7 +283,7 @@ const ROWS: readonly Row[] = [ { step: "6 a provider that throws fails closed", providers: () => ({ - REFERENCE_EXTERNAL_BEARER: async () => { + EXTERNAL_BEARER: async () => { throw new Error("product provider down"); }, }),