Sha256: bbab09fb8a6e2acad313ed7773db947fb2971a7f3a7066df6c99c88fc251518f

Contents?: true

Size: 1.09 KB

Versions: 57

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Scenario
      module Test
        module Instance
          class Image < Scenario::Template
            attr_writer :volumes, :seed_admin_token

            def initialize
              @volumes = {}
              @seed_admin_token = true
            end

            def perform(release, *rspec_args)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.volumes = @volumes
                gitlab.network = 'test'
                gitlab.seed_admin_token = @seed_admin_token

                gitlab.instance do
                  Component::Specs.perform do |specs|
                    specs.suite = 'Test::Instance::All'
                    specs.hostname = "qa-e2e-specs.#{gitlab.network}"
                    specs.release = gitlab.release
                    specs.network = gitlab.network
                    specs.args = [gitlab.address, *rspec_args]
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
gitlab-qa-12.5.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.5.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.4.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.4.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.3.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.3.0.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.2.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.2.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-12.0.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-11.3.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-11.2.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-11.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-11.0.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.6.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.5.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.4.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.4.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.3.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.2.2 lib/gitlab/qa/scenario/test/instance/image.rb