Class: Gitlab::QA::Scenario::Test::Integration::LDAPTLS
- Inherits:
-
LDAP
- Object
- Gitlab::QA::Scenario::Template
- LDAP
- Gitlab::QA::Scenario::Test::Integration::LDAPTLS
- Defined in:
- lib/gitlab/qa/scenario/test/integration/ldap_tls.rb
Instance Attribute Summary
Attributes inherited from LDAP
#gitlab_name, #spec_suite, #tls
Instance Method Summary collapse
- #configure(gitlab, ldap) ⇒ Object
-
#initialize ⇒ LDAPTLS
constructor
A new instance of LDAPTLS.
Methods inherited from LDAP
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ LDAPTLS
Returns a new instance of LDAPTLS.
9 10 11 12 13 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap_tls.rb', line 9 def initialize @gitlab_name = 'gitlab' @spec_suite = 'Test::Integration::LDAPTLS' @tls = true end |
Instance Method Details
#configure(gitlab, ldap) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/gitlab/qa/scenario/test/integration/ldap_tls.rb', line 15 def configure(gitlab, ldap) ldap.set_accept_insecure_certs gitlab.omnibus_config = <<~OMNIBUS gitlab_rails['ldap_enabled'] = true; gitlab_rails['ldap_servers'] = #{ldap.to_config}; letsencrypt['enable'] = false; external_url '#{gitlab.address}'; gitlab_rails['ldap_sync_worker_cron'] = '* * * * *'; gitlab_rails['ldap_group_sync_worker_cron'] = '* * * * *'; OMNIBUS end |