diff options
Diffstat (limited to 'spec/support/shared_contexts/services/clusters/create_service_shared_context.rb')
-rw-r--r-- | spec/support/shared_contexts/services/clusters/create_service_shared_context.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/support/shared_contexts/services/clusters/create_service_shared_context.rb b/spec/support/shared_contexts/services/clusters/create_service_shared_context.rb new file mode 100644 index 00000000000..393e90da1d3 --- /dev/null +++ b/spec/support/shared_contexts/services/clusters/create_service_shared_context.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +RSpec.shared_context 'with valid cluster create params' do + let(:clusterable) { Clusters::Instance.new } + let(:params) do + { + name: 'test-cluster', + provider_type: :gcp, + provider_gcp_attributes: { + gcp_project_id: 'gcp-project', + zone: 'us-central1-a', + num_nodes: 1, + machine_type: 'machine_type-a', + legacy_abac: 'true' + }, + clusterable: clusterable + } + end +end |