Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix azure secret manager tests (#15425)
Turns out most of these tests were broken. `NewCloudSecretsManager` regenerates the secret key from scratch if either `EncryptedKey` is empty _OR_ if `SecretsProvider` does not match the url passed in to `NewCloudSecretsManager`. Because none of these tests set `SecretsProvider` they were all just regenerating their keys rather than checking the given keys actually worked. Luckily it seems that everything does actually still happen to work correctly, except "TestAzureKeyEditProjectStack" had a corrupt key (truncated I expect) which wasn't valid base64. I've replaced it with a newly generated key, which is fine for this test.
- Loading branch information