Commit 05ee0773 authored by Lucas Charles's avatar Lucas Charles Committed by Sean McGivern

Add associated-issue to vulnerability_feedback factory

parent 6a7e10ab
......@@ -14,10 +14,8 @@ describe Projects::VulnerabilityFeedbackController do
let(:pipeline_1) { create(:ci_pipeline, project: project) }
let(:pipeline_2) { create(:ci_pipeline, project: project) }
let(:issue) { create(:issue, project: project) }
let!(:vuln_feedback_1) { create(:vulnerability_feedback, :dismissal, :sast, project: project, author: user, pipeline: pipeline_1) }
let!(:vuln_feedback_2) { create(:vulnerability_feedback, :issue, :sast, project: project, author: user, pipeline: pipeline_1, issue: issue) }
let!(:vuln_feedback_2) { create(:vulnerability_feedback, :issue, :sast, project: project, author: user, pipeline: pipeline_1) }
let!(:vuln_feedback_3) { create(:vulnerability_feedback, :dismissal, :sast, project: project, author: user, pipeline: pipeline_2) }
let!(:vuln_feedback_4) { create(:vulnerability_feedback, :dismissal, :dependency_scanning, project: project, author: user, pipeline: pipeline_2) }
......
......@@ -21,6 +21,7 @@ FactoryBot.define do
trait :issue do
feedback_type 'issue'
issue { create(:issue, project: project) }
end
trait :sast do
......
......@@ -31,7 +31,6 @@ describe Vulnerabilities::OccurrenceEntity do
let!(:issue_feedback) do
create(:vulnerability_feedback, :sast, :issue,
issue: create(:issue, project: project),
project: project, project_fingerprint: occurrence.project_fingerprint)
end
......
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