Sha256: 85a36e5650d4f25dea097ca02ddd259cf24489486767f75b344d1d0035ecba85

Contents?: true

Size: 1009 Bytes

Versions: 8

Compression:

Stored size: 1009 Bytes

Contents

module Gitlab
  module QA
    module Scenario
      module Test
        module Instance
          ##
          # Run test suite against gitlab.com
          #
          class Production < Scenario::Template
            def perform(*rspec_args)
              Runtime::Env.require_no_license!

              release = Component::Production.release

              if release.dev_gitlab_org?
                Docker::Command.execute(
                  [
                    'login',
                    '--username gitlab-qa-bot',
                    %(--password "#{Runtime::Env.dev_access_token_variable}"),
                    Release::DEV_REGISTRY
                  ]
                )
              end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitlab-qa-3.3.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.2.3 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.2.2 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.2.1 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.2.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.1.1 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.1.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-3.0.1 lib/gitlab/qa/scenario/test/instance/production.rb