Commit 54814054 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Extend the test setup with false-positive values

parent 917d469e
......@@ -37,6 +37,8 @@ RSpec.describe Gitlab::BackgroundMigration::PopulateLatestPipelineIds do
let!(:project_2_latest_pipeline) { pipelines.create!(project_id: project_2.id, ref: 'master', sha: 'adf43c3a', status: 'success') }
let!(:project_3_pipeline) { pipelines.create!(project_id: project_3.id, ref: 'master', sha: 'adf43c3a', status: 'success') }
let!(:project_4_pipeline) { pipelines.create!(project_id: project_4.id, ref: 'master', sha: 'adf43c3a', status: 'canceled') }
let!(:project_4_pipeline_with_wrong_status) { pipelines.create!(project_id: project_4.id, ref: 'master', sha: 'adf43c3a', status: 'running') }
let!(:project_4_pipeline_without_security_builds) { pipelines.create!(project_id: project_4.id, ref: 'master', sha: 'adf43c3a', status: 'success') }
let!(:project_2_stats) { vulnerability_statistics.create!(project_id: project_2.id, letter_grade: letter_grade_a, latest_pipeline_id: project_2_pipeline.id) }
let!(:project_4_stats) { vulnerability_statistics.create!(project_id: project_4.id, letter_grade: letter_grade_a) }
......@@ -56,6 +58,7 @@ RSpec.describe Gitlab::BackgroundMigration::PopulateLatestPipelineIds do
create_security_build_for(project_2_latest_pipeline, file_type: file_types[:container_scanning])
create_security_build_for(project_3_pipeline, file_type: file_types[:secret_detection])
create_security_build_for(project_4_pipeline, file_type: file_types[:coverage_fuzzing])
create_security_build_for(project_4_pipeline_with_wrong_status, file_type: file_types[:coverage_fuzzing])
end
describe '#perform' 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