Sha256: 540217d460c5c1f877a75e9c86c7b912fef308e06ece9063a208ffbf2083f3d2

Contents?: true

Size: 1004 Bytes

Versions: 7

Compression:

Stored size: 1004 Bytes

Contents

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

              release = Component::Preprod.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::Preprod::ADDRESS, *rspec_args]
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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