Commit 73ddf654 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix/secure_binaries_ci_yaml_spec' into 'master'

Fix jh pipeline failure of secure_binaries_ci_yaml_spec.rb

See merge request gitlab-org/gitlab!81981
parents 44f37239 7e8c8a8a
......@@ -3,6 +3,8 @@
require 'spec_helper'
RSpec.describe 'Secure-Binaries.gitlab-ci.yml' do
include Ci::TemplateHelpers
subject(:template) { Gitlab::Template::GitlabCiYmlTemplate.find('Secure-Binaries') }
specify { expect(template).not_to be_nil }
......@@ -52,7 +54,7 @@ RSpec.describe 'Secure-Binaries.gitlab-ci.yml' do
it_behaves_like 'an offline image download job' do
it 'sets SECURE_BINARIES_IMAGE explicitly' do
image = 'registry.gitlab.com/security-products/${CI_JOB_NAME}:${SECURE_BINARIES_ANALYZER_VERSION}'
image = "#{secure_analyzers_prefix}/${CI_JOB_NAME}:${SECURE_BINARIES_ANALYZER_VERSION}"
expect(build.variables.to_hash).to include('SECURE_BINARIES_IMAGE' => image)
end
......
......@@ -72,7 +72,7 @@ RSpec.describe Security::SecurityOrchestrationPolicies::CiConfigurationService d
dependencies: [],
script: ['/analyzer run'],
variables: {
CIS_ANALYZER_IMAGE: 'registry.gitlab.com/security-products/cluster-image-scanning:0'
CIS_ANALYZER_IMAGE: "#{Gitlab::Saas.registry_prefix}/security-products/cluster-image-scanning:0"
}
}
......
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