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-10.2.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.2.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-10.0.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-9.1.2 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-9.1.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-9.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-9.0.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.15.3 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.15.2 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.15.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.15.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.14.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.14.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.13.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.13.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.12.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.11.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.10.2 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-8.10.1 lib/gitlab/qa/scenario/test/instance/image.rb