pulumi/pkg/secrets/cloud
Fraser Waters ec4963b443
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.
2024-02-14 08:14:58 +00:00
..
aws_test.go Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00
azure_test.go Fix azure secret manager tests (#15425) 2024-02-14 08:14:58 +00:00
gcp_test.go Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00
manager.go Auto-fix encrypted keys in the wrong format due to gocloud.dev upgrade regression (#15334) 2024-02-01 09:39:41 +00:00
manager_test.go Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00