Class: Gitlab::QA::Scenario::Test::Integration::Registry

Inherits:
Gitlab::QA::Scenario::Template show all
Defined in:
lib/gitlab/qa/scenario/test/integration/registry.rb

Instance Method Summary collapse

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

perform

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
# File 'lib/gitlab/qa/scenario/test/integration/registry.rb', line 9

def perform(release, *rspec_args)
  Component::Gitlab.perform do |gitlab|
    gitlab.release = release
    gitlab.network = Runtime::Env.docker_network
    gitlab.name = 'gitlab'

    gitlab.omnibus_configuration << "      external_url 'http://\#{gitlab.name}.\#{gitlab.network}';\n      registry_external_url 'http://\#{gitlab.name}.\#{gitlab.network}:5050';\n    OMNIBUS\n\n    gitlab.instance do\n      Component::Specs.perform do |specs|\n        specs.suite = 'Test::Integration::Registry'\n        specs.release = gitlab.release\n        specs.network = gitlab.network\n        specs.args = [gitlab.address, *rspec_args]\n      end\n    end\n  end\nend\n"