Skip to content
代码片段 群组 项目
未验证 提交 b6351a0d 编辑于 作者: Vishal Patel's avatar Vishal Patel 提交者: GitLab
浏览文件

Added a condition in saml test to change the config path

上级 77e21fb3
No related branches found
No related tags found
1 合并请求!2419Fix TanukiBot spec relying on outdated code
...@@ -86,6 +86,10 @@ def ci_project_name ...@@ -86,6 +86,10 @@ def ci_project_name
ENV['CI_PROJECT_NAME'] ENV['CI_PROJECT_NAME']
end end
def ci_project_path
ENV['CI_PROJECT_PATH']
end
def schedule_type def schedule_type
ENV['SCHEDULE_TYPE'] ENV['SCHEDULE_TYPE']
end end
......
...@@ -97,7 +97,7 @@ def authsources ...@@ -97,7 +97,7 @@ def authsources
config = ERB.new(read_fixture('saml', "#{AUTHSOURCES_FILENAME}.erb")).result(binding) config = ERB.new(read_fixture('saml', "#{AUTHSOURCES_FILENAME}.erb")).result(binding)
::File.write(config_path, config) ::File.write(config_path, config)
config_path.gsub("/home/gitlab/qa", "/builds/gitlab-org/gitlab/qa") config_path.gsub("/home/gitlab/qa", "/builds/#{File.join(Runtime::Env.ci_project_path, 'qa')}")
end end
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册