class Gitlab::QA::Scenario::Test::Integration::SAML
Attributes
gitlab_name[R]
saml_component[R]
spec_suite[R]
Public Instance Methods
before_perform(release)
click to toggle source
# File lib/gitlab/qa/scenario/test/integration/saml.rb, line 15 def before_perform(release) # no-op end
configure(gitlab, saml)
click to toggle source
# File lib/gitlab/qa/scenario/test/integration/saml.rb, line 11 def configure(gitlab, saml) raise NotImplementedError end
perform(release, *rspec_args)
click to toggle source
# 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)
click to toggle source
# 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