Class: Gitlab::QA::Scenario::Test::Integration::Jira

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

Instance Method Summary collapse

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

perform

Instance Method Details

#perform(release, *rspec_args) ⇒ Object



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

def perform(release, *rspec_args)
  Component::Gitlab.perform do |gitlab|
    gitlab.release = QA::Release.new(release)
    gitlab.network = 'test'
    gitlab.name = 'gitlab-jira'

    Component::Jira.perform do |jira|
      jira.network = gitlab.network
      jira.set_jira_hostname

      jira.instance do
        gitlab.instance do
          puts 'Running Jira specs!'

          rspec_args << "--" unless rspec_args.include?('--')
          rspec_args << %w[--tag jira]

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