Class: Gitlab::QA::Scenario::Test::Integration::SAML
- Inherits:
-
Gitlab::QA::Scenario::Template
- Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Integration::SAML
- Defined in:
- lib/gitlab/qa/scenario/test/integration/saml.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#gitlab_name ⇒ Object
readonly
Returns the value of attribute gitlab_name.
-
#saml_component ⇒ Object
readonly
Returns the value of attribute saml_component.
-
#spec_suite ⇒ Object
readonly
Returns the value of attribute spec_suite.
Instance Method Summary collapse
- #before_perform(release) ⇒ Object
- #configure(gitlab, saml) ⇒ Object
-
#perform(release, *rspec_args) ⇒ Object
rubocop:disable Metrics/AbcSize.
- #run_specs(gitlab, release, *rspec_args) ⇒ Object
Methods inherited from Gitlab::QA::Scenario::Template
Instance Attribute Details
#gitlab_name ⇒ Object (readonly)
Returns the value of attribute gitlab_name.
11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 11 def gitlab_name @gitlab_name end |
#saml_component ⇒ Object (readonly)
Returns the value of attribute saml_component.
11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 11 def saml_component @saml_component end |
#spec_suite ⇒ Object (readonly)
Returns the value of attribute spec_suite.
11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 11 def spec_suite @spec_suite end |
Instance Method Details
#before_perform(release) ⇒ Object
17 18 19 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 17 def before_perform(release) # no-op end |
#configure(gitlab, saml) ⇒ Object
13 14 15 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 13 def configure(gitlab, saml) raise NotImplementedError end |
#perform(release, *rspec_args) ⇒ Object
rubocop:disable Metrics/AbcSize
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 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 21 def perform(release, *rspec_args) # rubocop:disable Metrics/AbcSize release = QA::Release.new(release) before_perform(release) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.network = Runtime::Env.docker_network gitlab.name = gitlab_name gitlab.set_accept_insecure_certs if saml_component Component::SAML.perform do |saml| saml.network = Runtime::Env.docker_network configure(gitlab, saml) saml.instance do run_specs(gitlab, release, *rspec_args) end end else configure(gitlab, nil) run_specs(gitlab, release, *rspec_args) end end end |
#run_specs(gitlab, release, *rspec_args) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 47 def run_specs(gitlab, release, *rspec_args) gitlab.instance do Runtime::Logger.info("Running #{spec_suite} specs!") Component::Specs.perform do |specs| specs.suite = spec_suite specs.release = release specs.network = gitlab.network specs.args = [gitlab.address, *rspec_args] end end end |