diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-16 05:26:07 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-16 05:26:07 +0100 |
commit | 914260930f800342c495114f507947ae35471e80 (patch) | |
tree | f7c65501605571c76bcf40a0dc62bfc03f52d748 /spec/support | |
parent | 935a27cfef3c5a4dd9291c21af69b41a7169817d (diff) | |
download | gitlab-ce-914260930f800342c495114f507947ae35471e80.tar.gz |
Expand controller test suite matrix
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/google_api/cloud_platform_helpers.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/google_api/cloud_platform_helpers.rb b/spec/support/google_api/cloud_platform_helpers.rb index 8a073e58db8..9f9289fa580 100644 --- a/spec/support/google_api/cloud_platform_helpers.rb +++ b/spec/support/google_api/cloud_platform_helpers.rb @@ -10,6 +10,12 @@ module GoogleApi request.session[GoogleApi::CloudPlatform::Client.session_key_for_expires_at] = 1.hour.ago.to_i.to_s end + def stub_google_project_billing_status + redis_double = double + allow(Gitlab::Redis::SharedState).to receive(:with).and_yield(redis_double) + allow(redis_double).to receive(:get).and_return('true') + end + def stub_cloud_platform_get_zone_cluster(project_id, zone, cluster_id, **options) WebMock.stub_request(:get, cloud_platform_get_zone_cluster_url(project_id, zone, cluster_id)) .to_return(cloud_platform_response(cloud_platform_cluster_body(options))) |