Sha256: ca56bca323022fdb5f244fef3f2810887a90916998974ce37d39a1fefece4d46

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class CloudActivation < Scenario::Template
            def perform(release, *rspec_args)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.network = 'test'

                gitlab.omnibus_configuration << <<~OMNIBUS
                  gitlab_rails['env'] = { 'GITLAB_LICENSE_MODE' => 'test', 'CUSTOMER_PORTAL_URL' => 'https://customers.staging.gitlab.com' }
                OMNIBUS

                gitlab.instance do
                  rspec_args << "--" unless rspec_args.include?('--')
                  rspec_args << %w[--tag cloud_activation]

                  Component::Specs.perform do |specs|
                    specs.suite = 'Test::Instance::All'
                    specs.release = gitlab.release
                    specs.network = gitlab.network
                    specs.args = [gitlab.address, *rspec_args]
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitlab-qa-7.18.1 lib/gitlab/qa/scenario/test/integration/cloud_activation.rb
gitlab-qa-7.18.0 lib/gitlab/qa/scenario/test/integration/cloud_activation.rb