Sha256: cf0e609ba31f70a27497d1142ca940c26fff4d0dd65c16a0a22788131d1838d7

Contents?: true

Size: 1.43 KB

Versions: 7

Compression:

Stored size: 1.43 KB

Contents

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class Elasticsearch < Scenario::Template
            attr_reader :gitlab_name, :spec_suite

            def initialize
              @gitlab_name = 'gitlab-elastic'
              @spec_suite = 'Test::Integration::Elasticsearch'
            end

            def before_perform(release)
              raise ArgumentError, 'Elasticsearch is an EE only feature!' unless release.ee?
            end

            def perform(release, *rspec_args)
              release = Release.new(release)
              before_perform(release)

              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.name = gitlab_name
                gitlab.network = 'test'

                Component::Elasticsearch.perform do |elastic|
                  elastic.instance do
                    gitlab.instance do
                      puts "Running #{spec_suite} specs!"

                      Component::Specs.perform do |specs|
                        specs.suite = spec_suite
                        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

7 entries across 7 versions & 1 rubygems

Version Path
gitlab-qa-4.1.0 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.5 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.4 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.3 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.2 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.1 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb
gitlab-qa-4.0.0 lib/gitlab/qa/scenario/test/integration/elasticsearch.rb