From 3e58cade5d2b5dc00e89122c018c2381edd21fa0 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Tue, 3 Nov 2026 00:57:19 +0900 Subject: [PATCH] =?UTF-8?q?test(bootstrap):=20=EC=9E=90=EA=B2=A9=EC=A6=9D?= =?UTF-8?q?=EB=AA=85=20=EC=88=9C=EC=84=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EA=B0=80=20=EC=83=88=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20EXTERNAL=5FBEARER=EB=A5=BC=20=EC=93=B4=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: 09-02 순서 테스트는 16-03 이름 변경 전 기준에서 작성돼 폐기 별칭 REFERENCE_EXTERNAL_BEARER를 썼다. 두 변경을 합친 뒤 테스트가 별칭에 기대게 됐다. 방법: 테스트의 프로필 이름을 EXTERNAL_BEARER로 바꿨다. 별칭은 한 릴리스 뒤 지워지므로 새 테스트가 별칭을 쓰면 그때 같이 깨진다. 검증: tests/unit/runtime-adapters-credential-order.test.ts 통과, eslint 통과. --- .../unit/runtime-adapters-credential-order.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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"); }, }),