Add gcloud auth login invocation to test

This commit is contained in:
André Laszlo
2024-12-06 17:32:01 +01:00
parent ea170fbe5e
commit dc64aaa0de

View File

@@ -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