summaryrefslogtreecommitdiff
path: root/qa/qa/scenario/test/integration/mattermost.rb
blob: f5072ee227c2cd7bdec0e7476cbc87cf2f776de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module QA
  module Scenario
    module Test
      module Integration
        ##
        # Run test suite against any GitLab instance where mattermost is enabled,
        # including staging and on-premises installation.
        #
        class Mattermost < Test::Instance::All
          tags :mattermost

          attribute :mattermost_address, '--mattermost-address URL', 'Address of the Mattermost server'

          def perform(options, *args)
            extract_address(:gitlab_address, options, args)
            extract_address(:mattermost_address, options, args)

            super(options, *args)
          end
        end
      end
    end
  end
end