Sha256: 22a53c13935f7d0c673dbd3ec3d5ea884afae38525f6a750e6657491f91d3e45

Contents?: true

Size: 1.27 KB

Versions: 75

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class Mattermost < Scenario::Template
            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 << <<~OMNIBUS
                  mattermost_external_url '#{mattermost_external_url}';
                OMNIBUS

                gitlab.instance do
                  Component::Specs.perform do |specs|
                    specs.suite = 'Test::Integration::Mattermost'
                    specs.release = gitlab.release
                    specs.network = gitlab.network
                    specs.args = [
                      gitlab.address,
                      "--mattermost-address", mattermost_external_url,
                      *rspec_args
                    ]
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
gitlab-qa-14.9.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.8.1 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.8.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.7.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.6.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.5.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.4.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.3.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.2.1 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.2.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.1.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.0.2 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.0.1 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-14.0.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-13.2.1 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-13.2.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-13.1.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-13.0.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-12.5.1 lib/gitlab/qa/scenario/test/integration/mattermost.rb
gitlab-qa-12.5.0 lib/gitlab/qa/scenario/test/integration/mattermost.rb