Sha256: 91f565aca937b2a1179cb43d71cdd14658d33fa1c05d3a82976964341b8acc1d

Contents?: true

Size: 1004 Bytes

Versions: 6

Compression:

Stored size: 1004 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'
                specs.release = release
                specs.args = [Component::Production::ADDRESS, *rspec_args]
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-qa-2.13.1 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-2.13.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-2.12.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-2.11.0 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-2.10.1 lib/gitlab/qa/scenario/test/instance/production.rb
gitlab-qa-2.10.0 lib/gitlab/qa/scenario/test/instance/production.rb