Sha256: fab85855e93bc7e218f9c19743903c21517933190c27b4f9441f8ab22e956f38

Contents?: true

Size: 1.39 KB

Versions: 23

Compression:

Stored size: 1.39 KB

Contents

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 = Release.new(release)
                gitlab.name = 'gitlab'
                gitlab.network = 'test'
                gitlab.omnibus_config = <<~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

23 entries across 23 versions & 1 rubygems

Version Path
gitlab-qa-5.13.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.12.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.10.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.10.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.9.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.8.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.8.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.7.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.6.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.6.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.5.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.4.3 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.4.2 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.4.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.4.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.3.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.2.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.1.1 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.1.0 lib/gitlab/qa/scenario/test/instance/repository_storage.rb
gitlab-qa-5.0.3 lib/gitlab/qa/scenario/test/instance/repository_storage.rb