You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REFRESH_NOT_ENABLED="Refresh is not enabled for key-values, feature flags or Key Vault secrets.",
16
+
ALL_FALLBACK_CLIENTS_FAILED="All fallback clients failed to get configuration settings.",
17
+
CONFIGURATION_SETTING_VALUE_UNDEFINED="The value of configuration setting cannot be undefined.",
18
+
INVALID_SNAPSHOT_SELECTOR="Key, label or tag filters should not be specified while selecting a snapshot.",
19
+
INVALID_KEY_FILTER="Key filter cannot be null or empty.",
20
+
INVALID_LABEL_FILTER="The characters '*' and ',' are not supported in label filters.",
21
+
INVALID_TAG_FILTER="Tag filter must follow the format 'tagName=tagValue'",
22
+
CONNECTION_STRING_OR_ENDPOINT_MISSED="A connection string or an endpoint with credential must be specified to create a client.",
23
+
}
24
+
25
+
exportconstenumKeyVaultReferenceErrorMessages{
26
+
KEY_VAULT_OPTIONS_UNDEFINED="Failed to process the Key Vault reference because Key Vault options are not configured.",
27
+
KEY_VAULT_REFERENCE_UNRESOLVABLE="Failed to resolve the key vault reference. No key vault secret client, credential or secret resolver callback is available to resolve the secret."
// When code reaches here, it means that the key vault reference cannot be resolved in all possible ways.
67
-
thrownewArgumentError("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is available to resolve the secret.");
// we should never reach here, load should throw an error
@@ -106,8 +107,8 @@ describe("key vault reference", function () {
106
107
}
107
108
});
108
109
}catch(error){
109
-
expect(error.message).eq("Failed to load.");
110
-
expect(error.cause.message).eq("Failed to process the key vault reference. No key vault secret client, credential or secret resolver callback is available to resolve the secret.");
secretRefreshIntervalInMs: 59999// less than 60_000 milliseconds
168
169
}
169
170
});
170
-
returnexpect(loadWithInvalidSecretRefreshInterval).eventually.rejectedWith("The Key Vault secret refresh interval cannot be less than 60000 milliseconds.");
0 commit comments