Skip to content
Snippets Groups Projects

Fix n plus one issue ci build dast profile

All threads resolved!
2 files
+ 16
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -43,6 +43,14 @@
@@ -43,6 +43,14 @@
end
end
end
end
 
context 'filter by names' do
 
let(:params) { { names: [dast_scanner_profile1.name, dast_scanner_profile2.name] } }
 
 
it 'returns the matching dast_scanner_profiles' do
 
expect(subject).to contain_exactly(dast_scanner_profile1, dast_scanner_profile2)
 
end
 
end
 
context 'when DastScannerProfile id is for a different project' do
context 'when DastScannerProfile id is for a different project' do
let(:params) { { ids: [dast_scanner_profile1.id], project_ids: [dast_scanner_profile2.project.id] } }
let(:params) { { ids: [dast_scanner_profile1.id], project_ids: [dast_scanner_profile2.project.id] } }
Loading