Sha256: 819e1069682d7e85928c200761d56263ec8ca1e40849883808be6c52705b6ebe

Contents?: true

Size: 1.23 KB

Versions: 30

Compression:

Stored size: 1.23 KB

Contents

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class Jira < Scenario::Template
            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
                      Runtime::Logger.info('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
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gitlab-qa-7.34.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.33.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.32.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.31.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.30.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.29.1 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.29.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.27.2 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.27.1 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.27.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.26.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.25.1 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.25.0 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.6 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.5 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.4 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.3 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.2 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.1 lib/gitlab/qa/scenario/test/integration/jira.rb
gitlab-qa-7.24.0 lib/gitlab/qa/scenario/test/integration/jira.rb