Commit f1a3f4dc authored by Sanad Liaquat's avatar Sanad Liaquat

Implement review feedback

parent 5a2b8a93
......@@ -77,13 +77,13 @@ module QA
end
def self.fabricate_or_use(username, password)
if !Runtime::Env.signup_disabled?
self.fabricate!
else
if Runtime::Env.signup_disabled?
self.new.tap do |user|
user.username = username
user.password = password
end
else
self.fabricate!
end
end
......
......@@ -78,7 +78,7 @@ module QA
end
def gitlab_qa_username_1
ENV['GITLAB_QA_USERNAME_1']
ENV['GITLAB_QA_USERNAME_1'] || 'gitlab-qa-user1'
end
def gitlab_qa_password_1
......@@ -86,7 +86,7 @@ module QA
end
def gitlab_qa_username_2
ENV['GITLAB_QA_USERNAME_2']
ENV['GITLAB_QA_USERNAME_2'] || 'gitlab-qa-user2'
end
def gitlab_qa_password_2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment