Sha256: 39f742942e0b1a3569fd47adf1c55117c7a7b89d9a613bfd619fb94da663f3a4

Contents?: true

Size: 1.06 KB

Versions: 43

Compression:

Stored size: 1.06 KB

Contents

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class Actioncable < Scenario::Template
            def perform(release, *rspec_args)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = QA::Release.new(release)
                gitlab.name = 'gitlab-actioncable'
                gitlab.network = 'test'
                gitlab.omnibus_configuration << "actioncable['enable'] = true"

                gitlab.instance do
                  puts "Running actioncable specs!"

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

                  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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
gitlab-qa-7.0.2 lib/gitlab/qa/scenario/test/integration/actioncable.rb
gitlab-qa-7.0.1 lib/gitlab/qa/scenario/test/integration/actioncable.rb
gitlab-qa-7.0.0 lib/gitlab/qa/scenario/test/integration/actioncable.rb