Commit f1a3f4dc authored by Sanad Liaquat's avatar Sanad Liaquat

Implement review feedback

parent 5a2b8a93
...@@ -77,13 +77,13 @@ module QA ...@@ -77,13 +77,13 @@ module QA
end end
def self.fabricate_or_use(username, password) def self.fabricate_or_use(username, password)
if !Runtime::Env.signup_disabled? if Runtime::Env.signup_disabled?
self.fabricate!
else
self.new.tap do |user| self.new.tap do |user|
user.username = username user.username = username
user.password = password user.password = password
end end
else
self.fabricate!
end end
end end
......
...@@ -78,7 +78,7 @@ module QA ...@@ -78,7 +78,7 @@ module QA
end end
def gitlab_qa_username_1 def gitlab_qa_username_1
ENV['GITLAB_QA_USERNAME_1'] ENV['GITLAB_QA_USERNAME_1'] || 'gitlab-qa-user1'
end end
def gitlab_qa_password_1 def gitlab_qa_password_1
...@@ -86,7 +86,7 @@ module QA ...@@ -86,7 +86,7 @@ module QA
end end
def gitlab_qa_username_2 def gitlab_qa_username_2
ENV['GITLAB_QA_USERNAME_2'] ENV['GITLAB_QA_USERNAME_2'] || 'gitlab-qa-user2'
end end
def gitlab_qa_password_2 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