test(bootstrap): 자격증명 순서 테스트가 새 프로필 이름 EXTERNAL_BEARER를 쓴다

문제: 09-02 순서 테스트는 16-03 이름 변경 전 기준에서 작성돼 폐기 별칭
REFERENCE_EXTERNAL_BEARER를 썼다. 두 변경을 합친 뒤 테스트가 별칭에 기대게 됐다.

방법: 테스트의 프로필 이름을 EXTERNAL_BEARER로 바꿨다. 별칭은 한 릴리스 뒤
지워지므로 새 테스트가 별칭을 쓰면 그때 같이 깨진다.

검증: tests/unit/runtime-adapters-credential-order.test.ts 통과, eslint 통과.
This commit is contained in:
DongHyeonka
2026-11-03 00:57:41 +09:00
parent da1e128999
commit 3e58cade5d
@@ -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");
},
}),