Class: Gitlab::QA::Scenario::Test::Integration::SAML

Inherits:
Gitlab::QA::Scenario::Template show all
Defined in:
lib/gitlab/qa/scenario/test/integration/saml.rb

Direct Known Subclasses

GroupSAML, InstanceSAML

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Gitlab::QA::Scenario::Template

perform

Instance Attribute Details

#gitlab_nameObject (readonly)

Returns the value of attribute gitlab_name.



9
10
11
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 9

def gitlab_name
  @gitlab_name
end

#spec_suiteObject (readonly)

Returns the value of attribute spec_suite.



9
10
11
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 9

def spec_suite
  @spec_suite
end

Instance Method Details

#before_perform(release) ⇒ Object



15
16
17
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 15

def before_perform(release)
  # no-op
end

#configure(gitlab, saml) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 11

def configure(gitlab, saml)
  raise NotImplementedError
end

#perform(release) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 19

def perform(release)
  release = Release.new(release)
  before_perform(release)

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

    Component::SAML.perform do |saml|
      saml.network = 'test'
      configure(gitlab, saml)

      saml.instance do
        gitlab.instance do
          puts "Running #{spec_suite} specs!"

          Component::Specs.perform do |specs|
            specs.suite = spec_suite
            specs.release = release
            specs.network = gitlab.network
            specs.args = [gitlab.address]
          end
        end
      end
    end
  end
end