From 1897741fba52093dce602cc9c00435bf371a18ea Mon Sep 17 00:00:00 2001 From: Bob Wall Date: Mon, 8 Dec 2025 16:23:17 -0700 Subject: [PATCH] Modify expected results of azure unwrap The error handling in the azure KMS client in the TSP changed slightly - adjust the expectations of one of the tests to match the change in verbage. --- src/tests/DevIntegration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/DevIntegration.test.ts b/src/tests/DevIntegration.test.ts index 8ea48f3..d53d0fd 100644 --- a/src/tests/DevIntegration.test.ts +++ b/src/tests/DevIntegration.test.ts @@ -387,7 +387,7 @@ describe("INTEGRATION dev environment tests", () => { try { await client.decryptDocument({encryptedDocument: {foo: azureEncryptedDataForEdekWithoutVersion}, edek: hackedAzureEdek}, meta); } catch (e) { - expect(e.message).toContain("Failed to unwrap key via Azure"); + expect(e.message).toContain("Code: BadParameter"); expect(e.message).toContain("The parameter is incorrect"); expect(e.message).not.toContain("Property 'value' is required"); }