Class: Gitlab::QA::Scenario::Test::Integration::LDAPTLS

Inherits:
LDAP show all
Defined in:
lib/gitlab/qa/scenario/test/integration/ldap_tls.rb

Constant Summary

Constants inherited from LDAP

Gitlab::QA::Scenario::Test::Integration::LDAP::ADMIN_GROUP, Gitlab::QA::Scenario::Test::Integration::LDAP::ADMIN_PASSWORD, Gitlab::QA::Scenario::Test::Integration::LDAP::ADMIN_USER, Gitlab::QA::Scenario::Test::Integration::LDAP::BASE_DN, Gitlab::QA::Scenario::Test::Integration::LDAP::BIND_DN, Gitlab::QA::Scenario::Test::Integration::LDAP::GROUP_BASE, Gitlab::QA::Scenario::Test::Integration::LDAP::LDAP_PORT, Gitlab::QA::Scenario::Test::Integration::LDAP::LDAP_TLS_PORT

Instance Attribute Summary

Attributes inherited from LDAP

#gitlab_name, #ldap_name, #network, #orchestrate_ldap_server, #spec_suite, #tls

Instance Method Summary collapse

Methods inherited from LDAP

#ldap_hostname, #ldap_servers_omnibus_config, #orchestrate_ldap, #perform, #run_specs

Methods inherited from Gitlab::QA::Scenario::Template

perform, #perform

Constructor Details

#initializeLDAPTLS

Returns a new instance of LDAPTLS.



11
12
13
14
15
16
17
# File 'lib/gitlab/qa/scenario/test/integration/ldap_tls.rb', line 11

def initialize
  @gitlab_name = 'gitlab'
  @spec_suite = 'Test::Integration::LDAPTLS'
  @orchestrate_ldap_server = true
  @tls = true
  super
end

Instance Method Details

#configure_omnibus(gitlab) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/gitlab/qa/scenario/test/integration/ldap_tls.rb', line 19

def configure_omnibus(gitlab)
  gitlab.omnibus_configuration << <<~OMNIBUS
        gitlab_rails['ldap_enabled'] = true;
        gitlab_rails['ldap_servers'] = #{ldap_servers_omnibus_config};
        letsencrypt['enable'] = false;
        external_url '#{gitlab.address}';
        gitlab_rails['ldap_sync_worker_cron'] = '* * * * *';
        gitlab_rails['ldap_group_sync_worker_cron'] = '* * * * *';
  OMNIBUS
end