Class: Gitlab::QA::Scenario::Test::Integration::Metrics

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

Constant Summary collapse

PUMA_METRICS_SERVER_PORT =
8083
SIDEKIQ_METRICS_SERVER_PORT =
8082

Instance Method Summary collapse

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

perform

Instance Method Details

#perform(release, *rspec_args) ⇒ Object



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

def perform(release, *rspec_args)
  Component::Gitlab.perform do |gitlab|
    gitlab.release = release
    gitlab.network = 'test'
    gitlab.name = 'gitlab'
    gitlab.ports = [PUMA_METRICS_SERVER_PORT, SIDEKIQ_METRICS_SERVER_PORT]

    gitlab.omnibus_configuration << "      puma['exporter_enabled'] = true\n      puma['exporter_address'] = '0.0.0.0'\n      puma['exporter_port'] = \#{PUMA_METRICS_SERVER_PORT}\n      sidekiq['metrics_enabled'] = true\n      sidekiq['listen_address'] = '0.0.0.0'\n      sidekiq['listen_port'] = \#{SIDEKIQ_METRICS_SERVER_PORT}\n    RUBY\n\n    gitlab.instance do\n      Component::Specs.perform do |specs|\n        specs.suite = 'Test::Integration::Metrics'\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"