Commit 349b985e authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'issue_344279_clusters_gcp_spec' into 'master'

Fix Style/OpenStructUse offenses gcp_spec

See merge request gitlab-org/gitlab!75222
parents 7c6c59ee 4545f2fc
...@@ -21,7 +21,6 @@ Style/OpenStructUse: ...@@ -21,7 +21,6 @@ Style/OpenStructUse:
- spec/dependencies/omniauth_saml_spec.rb - spec/dependencies/omniauth_saml_spec.rb
- spec/factories/go_module_versions.rb - spec/factories/go_module_versions.rb
- spec/factories/wiki_pages.rb - spec/factories/wiki_pages.rb
- spec/features/projects/clusters/gcp_spec.rb
- spec/features/projects/clusters_spec.rb - spec/features/projects/clusters_spec.rb
- spec/finders/template_finder_spec.rb - spec/finders/template_finder_spec.rb
- spec/graphql/mutations/branches/create_spec.rb - spec/graphql/mutations/branches/create_spec.rb
......
...@@ -49,7 +49,8 @@ RSpec.describe 'Gcp Cluster', :js do ...@@ -49,7 +49,8 @@ RSpec.describe 'Gcp Cluster', :js do
before do before do
allow_any_instance_of(GoogleApi::CloudPlatform::Client) allow_any_instance_of(GoogleApi::CloudPlatform::Client)
.to receive(:projects_zones_clusters_create) do .to receive(:projects_zones_clusters_create) do
OpenStruct.new( double(
'cluster',
self_link: 'projects/gcp-project-12345/zones/us-central1-a/operations/ope-123', self_link: 'projects/gcp-project-12345/zones/us-central1-a/operations/ope-123',
status: 'RUNNING' status: 'RUNNING'
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment