Skip to content

Commit 9b50135

Browse files
update
1 parent 1478e94 commit 9b50135

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/keyvault/AzureKeyVaultKeyValueAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class AzureKeyVaultKeyValueAdapter implements IKeyValueAdapter {
4747
}
4848

4949
// When code reaches here, it means that the key vault reference cannot be resolved in all possible ways.
50-
throw new ArgumentError("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is configured.");
50+
throw new ArgumentError("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is available to resolve the secret.");
5151
}
5252

5353
/**

test/keyvault.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe("key vault reference", function () {
9696
]
9797
}
9898
});
99-
return expect(loadKeyVaultPromise).eventually.rejectedWith("Failed to process the key vault reference. No key vault credential or secret resolver callback is configured.");
99+
return expect(loadKeyVaultPromise).eventually.rejectedWith("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is available to resolve the secret.");
100100
});
101101

102102
it("should fallback to use default credential when corresponding secret client not provided", async () => {

test/startup.test.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,4 @@ describe("startup", function () {
8787
})).to.be.rejectedWith("Non-retriable Test Error");
8888
expect(attempt).eq(1);
8989
});
90-
91-
it("should not retry on non-retriable AuthenticationError", async () => {
92-
let attempt = 0;
93-
const failForAllAttempts = () => {
94-
attempt += 1;
95-
throw new AuthenticationError(400, "Test Error");
96-
};
97-
mockAppConfigurationClientListConfigurationSettings(
98-
[[{key: "TestKey", value: "TestValue"}].map(createMockedKeyValue)],
99-
failForAllAttempts);
100-
101-
await expect(load(createMockedConnectionString(), {
102-
startupOptions: {
103-
timeoutInMs: 10_000
104-
}
105-
})).to.be.rejectedWith("authority_not_found");
106-
expect(attempt).eq(1);
107-
});
10890
});

0 commit comments

Comments
 (0)