Commit 3ac92704 authored by Dylan Griffith's avatar Dylan Griffith

More env vars for group & project names in QA

This will help with https://gitlab.com/gitlab-org/gitlab-qa/issues/349
as we need to use much shorter project and group names for HTTPS to work
parent cd7f2d35
...@@ -103,6 +103,14 @@ module QA ...@@ -103,6 +103,14 @@ module QA
ENV['GITLAB_SANDBOX_NAME'] ENV['GITLAB_SANDBOX_NAME']
end 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 def gcloud_account_key
ENV.fetch("GCLOUD_ACCOUNT_KEY") ENV.fetch("GCLOUD_ACCOUNT_KEY")
end end
......
...@@ -8,7 +8,7 @@ module QA ...@@ -8,7 +8,7 @@ module QA
end end
def name 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 end
def path def path
......
...@@ -16,7 +16,7 @@ module QA ...@@ -16,7 +16,7 @@ module QA
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
project = Resource::Project.fabricate! do |p| 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' p.description = 'Project with Auto Devops'
end 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