Skip to content

Commit 6c44746

Browse files
authored
Modify expected results of azure unwrap (#121)
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.
1 parent 5443628 commit 6c44746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/DevIntegration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ describe("INTEGRATION dev environment tests", () => {
387387
try {
388388
await client.decryptDocument({encryptedDocument: {foo: azureEncryptedDataForEdekWithoutVersion}, edek: hackedAzureEdek}, meta);
389389
} catch (e) {
390-
expect(e.message).toContain("Failed to unwrap key via Azure");
390+
expect(e.message).toContain("Code: BadParameter");
391391
expect(e.message).toContain("The parameter is incorrect");
392392
expect(e.message).not.toContain("Property 'value' is required");
393393
}

0 commit comments

Comments
 (0)