Skip to content
Snippets Groups Projects
Commit 5f62a935 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Move all ENV to Runtime::Env

parent 133b3f20
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -16,6 +16,18 @@ module QA
def personal_access_token
ENV['PERSONAL_ACCESS_TOKEN']
end
def user_username
ENV['GITLAB_USERNAME']
end
def user_password
ENV['GITLAB_PASSWORD']
end
def sandbox_name
ENV['GITLAB_SANDBOX_NAME']
end
end
end
end
Loading
Loading
@@ -16,7 +16,7 @@ module QA
end
 
def sandbox_name
ENV['GITLAB_SANDBOX_NAME'] || 'gitlab-qa-sandbox'
Runtime::Env.sandbox_name || 'gitlab-qa-sandbox'
end
end
end
Loading
Loading
Loading
Loading
@@ -4,11 +4,11 @@ module QA
extend self
 
def name
ENV['GITLAB_USERNAME'] || 'root'
Runtime::Env.user_username || 'root'
end
 
def password
ENV['GITLAB_PASSWORD'] || '5iveL!fe'
Runtime::Env.user_password || '5iveL!fe'
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment