diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-15 23:54:50 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-16 00:00:52 +0100 |
commit | 957bedb1c345644f633fdfd3440491810c5cb75c (patch) | |
tree | 4a308bcb97bd699c3914031022cb65776376b879 /spec/lib/google_api | |
parent | 596ea9e3688537131fb918c1e9177d085a938d19 (diff) | |
download | gitlab-ce-957bedb1c345644f633fdfd3440491810c5cb75c.tar.gz |
Add Google Cloud client project billing info
Diffstat (limited to 'spec/lib/google_api')
-rw-r--r-- | spec/lib/google_api/cloud_platform/client_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/google_api/cloud_platform/client_spec.rb b/spec/lib/google_api/cloud_platform/client_spec.rb index 0383b1080dc..2d14c3b1a3a 100644 --- a/spec/lib/google_api/cloud_platform/client_spec.rb +++ b/spec/lib/google_api/cloud_platform/client_spec.rb @@ -62,6 +62,18 @@ describe GoogleApi::CloudPlatform::Client do it { is_expected.to eq(projects) } end + def projects_get_billing_info + subject { client.projects_get_billing_info } + let(:billing_info) { double } + + before do + allow_any_instance_of(Google::Apis::CloudbillingV1::CloudbillingService) + .to receive(:get_project_billing_info).and_return(billing_info) + end + + it { is_expected.to eq(billing_info) } + end + describe '#projects_zones_clusters_get' do subject { client.projects_zones_clusters_get(spy, spy, spy) } let(:gke_cluster) { double } |