Sha256: 4df11ece5e2a64e5c755571b77667b95bd1e3cddd30ff29695a0fc270c137d9b

Contents?: true

Size: 1.12 KB

Versions: 34

Compression:

Stored size: 1.12 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 perform(release_name = nil, *args)
              Runtime::Env.require_no_license!

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

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

              Component::Specs.perform do |specs|
                specs.suite = 'Test::Instance::All'
                specs.release = release
                specs.args = [deployment_component::ADDRESS, *args]
              end
            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

34 entries across 34 versions & 1 rubygems

Version Path
gitlab-qa-4.15.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.14.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.13.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.12.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.11.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.10.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.9.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.8.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.8.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.7.1 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.7.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.6.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.5.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb
gitlab-qa-4.4.0 lib/gitlab/qa/scenario/test/instance/deployment_base.rb