Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-05-11 19:45:45 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-05-11 19:45:45 +0300
commitb22959cc040384ab942bd41a69cdb4f2ffea0f8a (patch)
tree0343574c1c57e6dd63e2b7872fe8ecc36d14dd48 /spec/lib/google_api
parent2205ed4f07265a43d2561ab2657557e317e7b9c0 (diff)
Remove redundant GoogleApi::CloudPlatform::Client methods
The methods removed are #projects_list #get_project_billing_info as well as #project_zones_list and #project_zone_machine_types_list
Diffstat (limited to 'spec/lib/google_api')
-rw-r--r--spec/lib/google_api/cloud_platform/client_spec.rb48
1 files changed, 0 insertions, 48 deletions
diff --git a/spec/lib/google_api/cloud_platform/client_spec.rb b/spec/lib/google_api/cloud_platform/client_spec.rb
index 040cbda9468..27cb3198e5b 100644
--- a/spec/lib/google_api/cloud_platform/client_spec.rb
+++ b/spec/lib/google_api/cloud_platform/client_spec.rb
@@ -50,54 +50,6 @@ 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_get_billing_info' do
- subject { client.projects_get_billing_info('project') }
- 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_list' do
- subject { client.projects_zones_list('project') }
- let(:zones) { double }
-
- before do
- allow_any_instance_of(Google::Apis::ComputeV1::ComputeService)
- .to receive(:fetch_all).and_return(zones)
- end
-
- it { is_expected.to eq(zones) }
- end
-
- describe '#projects_zones_machine_types_list' do
- subject { client.projects_zones_machine_types_list('project', 'zone') }
- let(:machine_types) { double }
-
- before do
- allow_any_instance_of(Google::Apis::ComputeV1::ComputeService)
- .to receive(:fetch_all).and_return(machine_types)
- end
-
- it { is_expected.to eq(machine_types) }
- end
-
describe '#projects_zones_clusters_get' do
subject { client.projects_zones_clusters_get(spy, spy, spy) }
let(:gke_cluster) { double }