Class: Gitlab::QA::Scenario::Test::Integration::LDAP
- Inherits:
-
Gitlab::QA::Scenario::Template
- Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Integration::LDAP
- Defined in:
- lib/gitlab/qa/scenario/test/integration/ldap.rb
Instance Attribute Summary collapse
-
#gitlab_name ⇒ Object
readonly
Returns the value of attribute gitlab_name.
-
#spec_suite ⇒ Object
readonly
Returns the value of attribute spec_suite.
-
#tls ⇒ Object
readonly
Returns the value of attribute tls.
Instance Method Summary collapse
- #configure(gitlab, ldap) ⇒ Object
-
#perform(release, *rspec_args) ⇒ Object
rubocop:disable Metrics/AbcSize.
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/ldap.rb', line 9 def gitlab_name @gitlab_name end |
#spec_suite ⇒ Object (readonly)
Returns the value of attribute spec_suite.
9 10 11 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap.rb', line 9 def spec_suite @spec_suite end |
#tls ⇒ Object (readonly)
Returns the value of attribute tls.
9 10 11 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap.rb', line 9 def tls @tls end |
Instance Method Details
#configure(gitlab, ldap) ⇒ Object
11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap.rb', line 11 def configure(gitlab, ldap) raise NotImplementedError end |
#perform(release, *rspec_args) ⇒ Object
rubocop:disable Metrics/AbcSize
16 17 18 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 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap.rb', line 16 def perform(release, *rspec_args) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.name = gitlab_name gitlab.network = 'test' gitlab.tls = tls Component::LDAP.perform do |ldap| ldap.name = 'ldap-server' ldap.network = 'test' ldap.set_gitlab_credentials ldap.tls = tls configure(gitlab, ldap) ldap.instance do gitlab.instance do puts "Running #{spec_suite} specs!" Component::Specs.perform do |specs| specs.suite = spec_suite specs.release = gitlab.release specs.network = gitlab.network specs.args = [gitlab.address, *rspec_args] end end end end end end |