diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-15 19:39:15 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-15 19:39:15 +0100 |
commit | 596ea9e3688537131fb918c1e9177d085a938d19 (patch) | |
tree | 1ab28aa00ac00fe17c2e712f24326420c1894018 /spec/lib/google_api | |
parent | 497a0cd62ca8dff2e7b91f3366b69f4f2b2fa826 (diff) | |
download | gitlab-ce-596ea9e3688537131fb918c1e9177d085a938d19.tar.gz |
Add Google Cloud client project list
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 ecb4034ec8b..0383b1080dc 100644 --- a/spec/lib/google_api/cloud_platform/client_spec.rb +++ b/spec/lib/google_api/cloud_platform/client_spec.rb @@ -50,6 +50,18 @@ describe GoogleApi::CloudPlatform::Client do end end + describe '#projects_list' do + subject { client.projects_list } + let(:projects) { double } + + before do + allow_any_instance_of(Google::Apis::CloudresourcemanagerV1::CloudResourceManagerService) + .to receive(:fetch_all).and_return(projects) + end + + it { is_expected.to eq(projects) } + end + describe '#projects_zones_clusters_get' do subject { client.projects_zones_clusters_get(spy, spy, spy) } let(:gke_cluster) { double } |