Sha256: 734f37e2c153cdcafe40f9f9adc8b8270cfd55983c2a1bd6b9ebada8984bf595

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 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.name = Runtime::Env.qa_gitlab_hostname
                gitlab.seed_admin_token = @seed_admin_token
                gitlab.tls = Runtime::Env.qa_gitlab_use_tls?

                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

18 entries across 18 versions & 1 rubygems

Version Path
gitlab-qa-14.9.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.8.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.8.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.7.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.6.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.5.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.4.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.3.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.2.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.2.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.0.2 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.0.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-14.0.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-13.2.1 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-13.2.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-13.1.0 lib/gitlab/qa/scenario/test/instance/image.rb
gitlab-qa-13.0.0 lib/gitlab/qa/scenario/test/instance/image.rb