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
- #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.
9 10 11 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 9 def gitlab_name @gitlab_name end |
#saml_component ⇒ Object (readonly)
Returns the value of attribute saml_component.
9 10 11 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 9 def saml_component @saml_component end |
#spec_suite ⇒ Object (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
11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 11 def configure(gitlab, saml) raise NotImplementedError end |
#perform(release, *rspec_args) ⇒ 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 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 19 def perform(release, *rspec_args) release = QA::Release.new(release) before_perform(release) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.network = 'test' gitlab.name = gitlab_name gitlab.set_accept_insecure_certs if saml_component Component::SAML.perform do |saml| saml.network = 'test' 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
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/gitlab/qa/scenario/test/integration/saml.rb', line 45 def run_specs(gitlab, release, *rspec_args) 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, *rspec_args] end end end |