Commit c7f2be22 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Change clair scope in Ci::Build

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 173bc2a8
......@@ -16,7 +16,7 @@ module EE
scope :codequality, ->() { where(name: %w[codequality codeclimate]) }
scope :performance, ->() { where(name: %w[performance deploy]) }
scope :sast, ->() { where(name: 'sast') }
scope :clair, ->() { where(name: 'clair') }
scope :clair, ->() { where(name: 'sast:image') }
after_save :stick_build_if_status_changed
end
......
......@@ -30,7 +30,7 @@ describe MergeRequestEntity do
end
it 'has clair data' do
build = create(:ci_build, name: 'clair')
build = create(:ci_build, name: 'sast:image')
allow(subject).to receive(:expose_clair_data?).and_return(true)
allow(merge_request).to receive(:clair_artifact).and_return(build)
......
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