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