From dc64aaa0def7c42c7a7b88faa86ba6a4481e8ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Laszlo?= Date: Fri, 6 Dec 2024 17:32:01 +0100 Subject: [PATCH] Add gcloud auth login invocation to test --- test/secrets/gcp_secret_manager_adapter_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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