pulumi/pkg/secrets
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
..
b64 Remove b64 from the default secrets provider (#15163) 2024-01-17 13:29:51 +00:00
cloud Fix azure secret manager tests (#15425) 2024-02-14 08:14:58 +00:00
passphrase Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
service Add tokens.StackName (#14487) 2023-11-15 07:44:54 +00:00
manager.go Change secret.Manager State to json.RawMessage 2023-05-22 11:21:15 +01:00
mock.go Remove b64 from the default secrets provider (#15163) 2024-01-17 13:29:51 +00:00
provider.go Move SecretsProvider to pkg/secrets 2023-01-12 19:03:29 +00:00