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
5a367ce2
Commit
5a367ce2
authored
Apr 30, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation for rubocop
parent
dc876469
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
ee/spec/lib/gitlab/ci/parsers/security/formatters/dast_spec.rb
...ec/lib/gitlab/ci/parsers/security/formatters/dast_spec.rb
+4
-2
ee/spec/lib/gitlab/ci/parsers/security/formatters/dependency_list_spec.rb
...ab/ci/parsers/security/formatters/dependency_list_spec.rb
+4
-2
ee/spec/lib/gitlab/ci/parsers/security/formatters/deprecated_container_scanning_spec.rb
...security/formatters/deprecated_container_scanning_spec.rb
+4
-2
ee/spec/lib/gitlab/ci/parsers/security/formatters/deprecated_formatted_container_scanning_vulnerability_spec.rb
...ecated_formatted_container_scanning_vulnerability_spec.rb
+4
-2
No files found.
ee/spec/lib/gitlab/ci/parsers/security/formatters/dast_spec.rb
View file @
5a367ce2
...
...
@@ -6,9 +6,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::Dast do
let
(
:formatter
)
{
described_class
.
new
(
parsed_report
)
}
let
(
:parsed_report
)
do
Gitlab
::
Json
.
parse!
(
File
.
read
(
Gitlab
::
Json
.
parse!
(
File
.
read
(
Rails
.
root
.
join
(
'ee/spec/fixtures/security_reports/deprecated/gl-dast-report-no-common-fields.json'
)
))
)
)
end
describe
'#format_vulnerability'
do
...
...
ee/spec/lib/gitlab/ci/parsers/security/formatters/dependency_list_spec.rb
View file @
5a367ce2
...
...
@@ -8,9 +8,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DependencyList do
let
(
:sha
)
{
'4242424242424242'
}
let
(
:parsed_report
)
do
Gitlab
::
Json
.
parse!
(
File
.
read
(
Gitlab
::
Json
.
parse!
(
File
.
read
(
Rails
.
root
.
join
(
'ee/spec/fixtures/security_reports/dependency_list/gl-dependency-scanning-report.json'
)
))
)
)
end
describe
'#format'
do
...
...
ee/spec/lib/gitlab/ci/parsers/security/formatters/deprecated_container_scanning_spec.rb
View file @
5a367ce2
...
...
@@ -7,9 +7,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DeprecatedContainerScanning
describe
'#format'
do
let
(
:raw_report
)
do
Gitlab
::
Json
.
parse!
(
File
.
read
(
Gitlab
::
Json
.
parse!
(
File
.
read
(
Rails
.
root
.
join
(
'ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json'
)
))
)
)
end
it
'formats the vulnerability into the 1.3 format'
do
...
...
ee/spec/lib/gitlab/ci/parsers/security/formatters/deprecated_formatted_container_scanning_vulnerability_spec.rb
View file @
5a367ce2
...
...
@@ -4,9 +4,11 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Parsers
::
Security
::
Formatters
::
DeprecatedFormattedContainerScanningVulnerability
do
let
(
:raw_report
)
do
Gitlab
::
Json
.
parse!
(
File
.
read
(
Gitlab
::
Json
.
parse!
(
File
.
read
(
Rails
.
root
.
join
(
'ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json'
)
))
)
)
end
let
(
:vulnerability
)
{
raw_report
[
'vulnerabilities'
].
first
}
...
...
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