From e2379658c23318d012bdf9d1b5dbcf43d3e93488 Mon Sep 17 00:00:00 2001
From: Lectom C Han
- {previewKeyMaterial(key.n)} + {key.nPreview || "-"}
diff --git a/devfront/src/lib/devApi.ts b/devfront/src/lib/devApi.ts index db25ad10..6fd9faa1 100644 --- a/devfront/src/lib/devApi.ts +++ b/devfront/src/lib/devApi.ts @@ -80,7 +80,7 @@ export type ClientDetailResponse = { kty?: string; use?: string; alg?: string; - n?: string; + nPreview?: string; }>; }; }; diff --git a/devfront/tests/devfront-clients-lifecycle.spec.ts b/devfront/tests/devfront-clients-lifecycle.spec.ts index 193cd164..cd811416 100644 --- a/devfront/tests/devfront-clients-lifecycle.spec.ts +++ b/devfront/tests/devfront-clients-lifecycle.spec.ts @@ -149,7 +149,8 @@ test.describe("DevFront clients lifecycle", () => { kty: "RSA", use: "sig", alg: "RS256", - n: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", + nPreview: + "voVbHlo_UHkj...Hb8PiTCQ", }, ], }, @@ -229,7 +230,7 @@ test.describe("DevFront clients lifecycle", () => { await expect(page.getByText(algorithm, { exact: true }).last()).toBeVisible(); } await expect( - page.getByText("abcdefghij...0123456789", { exact: true }), + page.getByText("voVbHlo_UHkj...Hb8PiTCQ", { exact: true }), ).toBeVisible(); await expect( page.getByRole("button", { name: /refresh|새로고침/i }), diff --git a/devfront/tests/helpers/devfront-fixtures.ts b/devfront/tests/helpers/devfront-fixtures.ts index d3643940..491d6629 100644 --- a/devfront/tests/helpers/devfront-fixtures.ts +++ b/devfront/tests/helpers/devfront-fixtures.ts @@ -33,7 +33,7 @@ export type Client = { kty?: string; use?: string; alg?: string; - n?: string; + nPreview?: string; }>; }; metadata?: Record