Class: Gitlab::QA::Scenario::Test::Integration::GroupSAML
- Inherits:
-
SAML
- Object
- Gitlab::QA::Scenario::Template
- SAML
- Gitlab::QA::Scenario::Test::Integration::GroupSAML
- Defined in:
- lib/gitlab/qa/scenario/test/integration/group_saml.rb
Instance Attribute Summary
Attributes inherited from SAML
#gitlab_name, #saml_component, #spec_suite
Instance Method Summary collapse
- #before_perform(release) ⇒ Object
- #configure(gitlab, saml) ⇒ Object
-
#initialize ⇒ GroupSAML
constructor
A new instance of GroupSAML.
Methods inherited from SAML
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ GroupSAML
Returns a new instance of GroupSAML.
9 10 11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/group_saml.rb', line 9 def initialize @gitlab_name = 'gitlab-group-saml' @spec_suite = 'QA::EE::Scenario::Test::Integration::GroupSAML' @saml_component = false end |
Instance Method Details
#before_perform(release) ⇒ Object
15 16 17 |
# File 'lib/gitlab/qa/scenario/test/integration/group_saml.rb', line 15 def before_perform(release) raise ArgumentError, 'Group SAML is EE only feature!' unless release.ee? end |
#configure(gitlab, saml) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/gitlab/qa/scenario/test/integration/group_saml.rb', line 19 def configure(gitlab, saml) gitlab.omnibus_configuration << <<~OMNIBUS gitlab_rails['omniauth_enabled'] = true; gitlab_rails['omniauth_providers'] = [{ name: 'group_saml' }]; OMNIBUS end |