summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-02-08 10:09:51 -0600
committerRobert Speicher <rspeicher@gmail.com>2018-02-14 10:08:30 -0600
commitd6fd2f5b0f8e54ea36118d5cf6a6abce9d623188 (patch)
tree494c2dd35d718b8e1f58a6ea708862fcf96ca052 /qa
parentfa1134ea832019f74e20444fcfdf42e76195d321 (diff)
downloadgitlab-ce-d6fd2f5b0f8e54ea36118d5cf6a6abce9d623188.tar.gz
Add Runtime::User.default_name
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/runtime/user.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/runtime/user.rb b/qa/qa/runtime/user.rb
index 39e6adf9522..ecc9ab321ba 100644
--- a/qa/qa/runtime/user.rb
+++ b/qa/qa/runtime/user.rb
@@ -3,8 +3,12 @@ module QA
module User
extend self
+ def default_name
+ 'root'
+ end
+
def name
- Runtime::Env.user_username || 'root'
+ Runtime::Env.user_username || default_name
end
def password