Sha256: d8754251858d473ed84a35ed602866398a46b04b00c46de93e62ba5c11e89302

Contents?: true

Size: 1.39 KB

Versions: 118

Compression:

Stored size: 1.39 KB

Contents

module Gitlab
  module QA
    module Scenario
      module Test
        module Instance
          ##
          # Base class to be used to define deployment environment scenarios
          #
          class DeploymentBase < Scenario::Template
            def initialize
              @suite = 'Test::Instance::All'
            end

            def perform(release_name = nil, *args)
              # EE_LICENSE variable should be unset otherwise the existing license may be accidentially replaced
              Runtime::Env.require_no_license!

              release = if release_name.nil? || release_name.start_with?('--')
                          deployment_component.release
                        else
                          QA::Release.new(release_name)
                        end

              args.unshift(release_name) if release_name&.start_with?('--')

              Component::Specs.perform do |specs|
                specs.suite = @suite
                specs.release = release
                specs.args = non_rspec_args.push(*args)
              end
            end

            def non_rspec_args
              [deployment_component::ADDRESS]
            end

            def deployment_component
              raise NotImplementedError, 'Please define the Component for the deployment environment associated with this scenario.'
            end
          end
        end
      end
    end
  end
end

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
gitlab-qa-7.25.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.25.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.6 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.5 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.4 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.3 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.2 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.24.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.23.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.23.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.22.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.22.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.21.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.21.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.20.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.19.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.18.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.18.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-7.17.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb