Sha256: b2529ee1977406bff3c673b7986246012fc26149e362d530dc0782a7d4d06458

Contents?: true

Size: 1.43 KB

Versions: 67

Compression:

Stored size: 1.43 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Scenario
      module Test
        module Instance
          class RepositoryStorage < Image
            def perform(release, *rspec_args)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = QA::Release.new(release)
                gitlab.name = 'gitlab'
                gitlab.network = 'test'
                gitlab.omnibus_configuration << <<~OMNIBUS
                  git_data_dirs({
                    'default' => {
                      'path' => '/var/opt/gitlab/git-data/repositories/default'
                    },
                    'secondary' => {
                      'path' => '/var/opt/gitlab/git-data/repositories/secondary'
                    }
                  });
                OMNIBUS

                rspec_args << "--" unless rspec_args.include?('--')
                rspec_args << %w[--tag repository_storage]

                gitlab.instance do
                  Component::Specs.perform do |specs|
                    specs.suite = 'Test::Instance::All'
                    specs.release = gitlab.release
                    specs.network = gitlab.network
                    specs.args = [gitlab.address, *rspec_args]
                    specs.env = { 'QA_ADDITIONAL_REPOSITORY_STORAGE' => 'secondary' }
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
gitlab-qa-14.2.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-14.2.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-14.1.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-14.0.2 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-14.0.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-14.0.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-13.2.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-13.2.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-13.1.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-13.0.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.5.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.5.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.4.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.4.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.3.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-10.3.0.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.2.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.2.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.1.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-12.0.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb