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
d181e3f6
Commit
d181e3f6
authored
Aug 13, 2019
by
celdem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename comparer file for generic use
parent
c5dded9d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/services/ci/compare_container_scanning_reports_service.rb
...services/ci/compare_container_scanning_reports_service.rb
+1
-1
ee/lib/gitlab/ci/reports/security/vulnerability_scanning_reports_comparer.rb
...ports/security/vulnerability_scanning_reports_comparer.rb
+2
-2
ee/spec/serializers/vulnerabilities/occurrence_reports_comparer_entity_spec.rb
...ulnerabilities/occurrence_reports_comparer_entity_spec.rb
+1
-1
No files found.
ee/app/services/ci/compare_container_scanning_reports_service.rb
View file @
d181e3f6
...
...
@@ -3,7 +3,7 @@
module
Ci
class
CompareContainerScanningReportsService
<
::
Ci
::
CompareReportsBaseService
def
comparer_class
Gitlab
::
Ci
::
Reports
::
Security
::
ContainerScanning
ReportsComparer
Gitlab
::
Ci
::
Reports
::
Security
::
Vulnerability
ReportsComparer
end
def
serializer_class
...
...
ee/lib/gitlab/ci/reports/security/
container
_scanning_reports_comparer.rb
→
ee/lib/gitlab/ci/reports/security/
vulnerability
_scanning_reports_comparer.rb
View file @
d181e3f6
...
...
@@ -4,13 +4,13 @@ module Gitlab
module
Ci
module
Reports
module
Security
class
ContainerScanning
ReportsComparer
class
Vulnerability
ReportsComparer
include
Gitlab
::
Utils
::
StrongMemoize
attr_reader
:base_report
,
:head_report
def
initialize
(
base_report
,
head_report
)
@base_report
=
base_report
||
::
Gitlab
::
Ci
::
Reports
::
Security
::
Report
.
new
(
'container_scanning'
,
''
)
@base_report
=
base_report
||
::
Gitlab
::
Ci
::
Reports
::
Security
::
Report
.
new
(
head_report
&
.
type
,
''
)
@head_report
=
head_report
end
...
...
ee/spec/serializers/vulnerabilities/occurrence_reports_comparer_entity_spec.rb
View file @
d181e3f6
...
...
@@ -7,7 +7,7 @@ describe Vulnerabilities::OccurrenceReportsComparerEntity do
let!
(
:head_pipeline
)
{
create
(
:ee_ci_pipeline
,
:with_container_scanning_feature_branch
)
}
let
(
:base_report
)
{
base_pipeline
.
security_reports
.
get_report
(
'container_scanning'
)}
let
(
:head_report
)
{
head_pipeline
.
security_reports
.
get_report
(
'container_scanning'
)}
let
(
:comparer
)
{
Gitlab
::
Ci
::
Reports
::
Security
::
ContainerScanning
ReportsComparer
.
new
(
base_report
,
head_report
)
}
let
(
:comparer
)
{
Gitlab
::
Ci
::
Reports
::
Security
::
Vulnerability
ReportsComparer
.
new
(
base_report
,
head_report
)
}
let
(
:entity
)
{
described_class
.
new
(
comparer
)
}
before
do
...
...
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