Skip to content
Snippets Groups Projects
Commit c4078b6c authored by DJ Mountney's avatar DJ Mountney
Browse files

Fix an issue where the omnibus remote was changing on security sources

parent af820877
No related branches found
No related tags found
2 merge requests!63Making Heptapod 0.29 the new stable,!62GitLab 14.6
......@@ -143,7 +143,7 @@
return "" unless sources
if channel == SECURITY_SOURCE || ::Gitlab::Version.security_channel?
if channel == SECURITY_SOURCE
attach_remote_credential(sources[channel], Gitlab::Util.get_env("CI_JOB_TOKEN")) || sources[::Gitlab::Version.fallback_sources_channel]
else
sources[channel]
......
......@@ -165,6 +165,12 @@
expect(subject.remote).to eq('git@dev.gitlab.org:omnibus-mirror/prometheus.git')
end
it 'returns expected link from custom_sources yml when asked for a specific remote' do
mock_fallback_channel
expect(subject.remote('alternative')).to eq('https://gitlab.com/gitlab-org/build/omnibus-mirror/prometheus.git')
end
context 'with alternative fallback' do
it 'returns "alternative" link from custom_sources yml' do
mock_fallback_channel('alternative')
......
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