Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
05ee0773
Commit
05ee0773
authored
Mar 05, 2019
by
Lucas Charles
Committed by
Sean McGivern
Mar 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add associated-issue to vulnerability_feedback factory
parent
6a7e10ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb
...ollers/projects/vulnerability_feedback_controller_spec.rb
+1
-3
ee/spec/factories/vulnerabilities/feedback.rb
ee/spec/factories/vulnerabilities/feedback.rb
+1
-0
ee/spec/serializers/vulnerabilities/occurrence_entity_spec.rb
...pec/serializers/vulnerabilities/occurrence_entity_spec.rb
+0
-1
No files found.
ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb
View file @
05ee0773
...
...
@@ -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
)
}
...
...
ee/spec/factories/vulnerabilities/feedback.rb
View file @
05ee0773
...
...
@@ -21,6 +21,7 @@ FactoryBot.define do
trait
:issue
do
feedback_type
'issue'
issue
{
create
(
:issue
,
project:
project
)
}
end
trait
:sast
do
...
...
ee/spec/serializers/vulnerabilities/occurrence_entity_spec.rb
View file @
05ee0773
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment