Commit ac973f18 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '349-qa-add-params-for-qa-variables' into 'master'

More env vars for group & project names in QA

See merge request gitlab-org/gitlab-ce!23303
parents d993f4b1 3ac92704
......@@ -103,6 +103,14 @@ module QA
ENV['GITLAB_SANDBOX_NAME']
end
def namespace_name
ENV['GITLAB_NAMESPACE_NAME']
end
def auto_devops_project_name
ENV['GITLAB_AUTO_DEVOPS_PROJECT_NAME']
end
def gcloud_account_key
ENV.fetch("GCLOUD_ACCOUNT_KEY")
end
......
......@@ -8,7 +8,7 @@ module QA
end
def name
"qa-test-#{time.strftime('%Y-%m-%d-%H-%M-%S')}"
Runtime::Env.namespace_name || "qa-test-#{time.strftime('%Y-%m-%d-%H-%M-%S')}"
end
def path
......
......@@ -16,7 +16,7 @@ module QA
Page::Main::Login.act { sign_in_using_credentials }
project = Resource::Project.fabricate! do |p|
p.name = 'project-with-autodevops'
p.name = Runtime::Env.auto_devops_project_name || 'project-with-autodevops'
p.description = 'Project with Auto Devops'
end
......
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