Add gcloud auth login invocation to test
This commit is contained in:
@@ -169,6 +169,15 @@ class GcpSecretManagerAdapterTest < SecretAdapterTestCase
|
|||||||
stub_ticks
|
stub_ticks
|
||||||
.with("gcloud auth list --format=json")
|
.with("gcloud auth list --format=json")
|
||||||
.returns("[]")
|
.returns("[]")
|
||||||
|
|
||||||
|
stub_ticks
|
||||||
|
.with("gcloud auth login")
|
||||||
|
.returns(<<~JSON)
|
||||||
|
{
|
||||||
|
"expired": false,
|
||||||
|
"valid": true
|
||||||
|
}
|
||||||
|
JSON
|
||||||
end
|
end
|
||||||
|
|
||||||
def stub_mypassword
|
def stub_mypassword
|
||||||
|
|||||||
Reference in New Issue
Block a user