Class: Gitlab::QA::Scenario::Test::Instance::RepositoryStorage

Inherits:
Image show all
Defined in:
lib/gitlab/qa/scenario/test/instance/repository_storage.rb

Instance Attribute Summary

Attributes inherited from Image

#seed_admin_token, #volumes

Instance Method Summary collapse

Methods inherited from Image

#initialize

Methods inherited from Gitlab::QA::Scenario::Template

perform

Constructor Details

This class inherits a constructor from Gitlab::QA::Scenario::Test::Instance::Image

Instance Method Details

#perform(release, *rspec_args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/gitlab/qa/scenario/test/instance/repository_storage.rb', line 9

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 << "      git_data_dirs({\n        'default' => {\n          'path' => '/var/opt/gitlab/git-data/repositories/default'\n        },\n        'secondary' => {\n          'path' => '/var/opt/gitlab/git-data/repositories/secondary'\n        }\n      });\n    OMNIBUS\n\n    rspec_args << \"--\" unless rspec_args.include?('--')\n    rspec_args << %w[--tag repository_storage]\n\n    gitlab.instance do\n      Component::Specs.perform do |specs|\n        specs.suite = 'Test::Instance::All'\n        specs.release = gitlab.release\n        specs.network = gitlab.network\n        specs.args = [gitlab.address, *rspec_args]\n        specs.env = { 'QA_ADDITIONAL_REPOSITORY_STORAGE' => 'secondary' }\n      end\n    end\n  end\nend\n"