Commit e8f37eef authored by Kamil Trzciński's avatar Kamil Trzciński

Use :sast instead of :security_reports trait

parent c06347f9
......@@ -40,7 +40,7 @@ describe Projects::Security::DashboardController do
context 'when uses new reports syntax' do
before do
create(:ee_ci_build, :security_reports, pipeline: pipeline)
create(:ee_ci_build, :sast, pipeline: pipeline)
end
it 'renders empty state (not yet supported)' do
......
......@@ -11,7 +11,7 @@ FactoryBot.define do
success
artifacts
name report_type
options do
{
artifacts: {
......
......@@ -167,7 +167,7 @@ describe Ci::Pipeline do
context 'when pipeline has builds with security reports' do
before do
create(:ee_ci_build, :security_reports, pipeline: pipeline, project: project)
create(:ee_ci_build, :sast, pipeline: pipeline, project: project)
end
context 'when pipeline status is running' do
......@@ -257,7 +257,7 @@ describe Ci::Pipeline do
let(:default_branch) { pipeline.ref }
before do
create(:ee_ci_build, :security_reports, pipeline: pipeline, project: project)
create(:ee_ci_build, :sast, pipeline: pipeline, project: project)
allow(project).to receive(:default_branch) { default_branch }
end
......
......@@ -10,7 +10,7 @@ describe Security::StoreReportsService, '#execute' do
context 'when there are reports' do
before do
stub_licensed_features(sast: true)
create(:ee_ci_build, :security_reports, pipeline: pipeline)
create(:ee_ci_build, :sast, pipeline: pipeline)
end
it 'initializes a new StoreReportService and execute it' do
......
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