mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Update GCP and azure tests to reflect no-creds errors as seen on CI server
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
2d9c443a04
commit
a38100a185
1 changed files with 2 additions and 2 deletions
|
@ -929,7 +929,7 @@ Test Summary: 2 successful, 0 failures, 0 skipped\n"
|
|||
let(:cloud_profile) { cloud_path + "test-azure" }
|
||||
let(:args) { "-t azure://" }
|
||||
it "should fail to connect to azure due to lack of creds but not stacktrace" do
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(run_result.stderr).must_equal "Tenant id cannot be nil\n"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -938,7 +938,7 @@ Test Summary: 2 successful, 0 failures, 0 skipped\n"
|
|||
let(:args) { "-t gcp:// --input gcp_project_id=fakeproject" }
|
||||
let(:env) { { GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS: 1 } }
|
||||
it "should fail to connect to gcp due to lack of creds but not stacktrace" do
|
||||
_(run_result.stderr).must_be_empty
|
||||
_(run_result.stderr).must_include "Could not load the default credentials."
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue