Class: Gitlab::QA::Scenario::Test::Integration::Mattermost

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

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

    mattermost_hostname = "mattermost.#{gitlab.network}"
    mattermost_external_url = "http://#{mattermost_hostname}"

    gitlab.add_network_alias(mattermost_hostname)
    gitlab.omnibus_configuration << "      mattermost_external_url '\#{mattermost_external_url}';\n    OMNIBUS\n\n    gitlab.instance do\n      Component::Specs.perform do |specs|\n        specs.suite = 'Test::Integration::Mattermost'\n        specs.release = gitlab.release\n        specs.network = gitlab.network\n        specs.args = [\n          gitlab.address,\n          \"--mattermost-address\", mattermost_external_url,\n          *rspec_args\n        ]\n      end\n    end\n  end\nend\n"