summaryrefslogtreecommitdiff
path: root/qa/qa/runtime/env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/runtime/env.rb')
-rw-r--r--qa/qa/runtime/env.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/qa/qa/runtime/env.rb b/qa/qa/runtime/env.rb
index ddaf35a2d65..4c4dd416093 100644
--- a/qa/qa/runtime/env.rb
+++ b/qa/qa/runtime/env.rb
@@ -8,7 +8,7 @@ module QA
module Env
extend self
- attr_writer :personal_access_token, :ldap_username, :ldap_password
+ attr_writer :personal_access_token
ENV_VARIABLES = Gitlab::QA::Runtime::Env::ENV_VARIABLES
@@ -293,6 +293,11 @@ module QA
@ldap_username ||= ENV['GITLAB_LDAP_USERNAME']
end
+ def ldap_username=(ldap_username)
+ @ldap_username = ldap_username # rubocop:disable Gitlab/ModuleWithInstanceVariables
+ ENV['GITLAB_LDAP_USERNAME'] = ldap_username
+ end
+
def ldap_password
@ldap_password ||= ENV['GITLAB_LDAP_PASSWORD']
end