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:
Clinton Wolfe 2020-03-02 14:32:12 -05:00
parent 2d9c443a04
commit a38100a185

View file

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