Class: Gitlab::QA::Scenario::Test::Integration::ServicePingDisabled

Inherits:
Gitlab::QA::Scenario::Template show all
Defined in:
lib/gitlab/qa/scenario/test/integration/service_ping_disabled.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
# File 'lib/gitlab/qa/scenario/test/integration/service_ping_disabled.rb', line 9

def perform(release, *rspec_args)
  Component::Gitlab.perform do |gitlab|
    gitlab.release = release
    gitlab.network = 'test'

    gitlab.omnibus_configuration << <<~OMNIBUS
      gitlab_rails['usage_ping_enabled'] = false;
    OMNIBUS

    gitlab.instance do
      Component::Specs.perform do |specs|
        specs.suite = 'Test::Integration::ServicePingDisabled'
        specs.release = gitlab.release
        specs.network = gitlab.network
        specs.args = [gitlab.address, *rspec_args]
      end
    end
  end
end