diff --git a/test/secrets/gcp_secret_manager_adapter_test.rb b/test/secrets/gcp_secret_manager_adapter_test.rb index d9b30151..5d852df7 100644 --- a/test/secrets/gcp_secret_manager_adapter_test.rb +++ b/test/secrets/gcp_secret_manager_adapter_test.rb @@ -169,6 +169,15 @@ class GcpSecretManagerAdapterTest < SecretAdapterTestCase stub_ticks .with("gcloud auth list --format=json") .returns("[]") + + stub_ticks + .with("gcloud auth login") + .returns(<<~JSON) + { + "expired": false, + "valid": true + } + JSON end def stub_mypassword