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
011356c0
Commit
011356c0
authored
Jul 07, 2021
by
Adam Cohen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary tests from dependency list
parent
2e417fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
ee/spec/services/security/dependency_list_service_spec.rb
ee/spec/services/security/dependency_list_service_spec.rb
+0
-14
No files found.
ee/spec/services/security/dependency_list_service_spec.rb
View file @
011356c0
...
...
@@ -120,13 +120,6 @@ RSpec.describe Security::DependencyListService do
expect
(
dependencies
).
to
eq
([{
name:
"saml2-js"
,
vulnerabilities:
%w(critical medium unknown)
},
{
name:
"nokogiri"
,
vulnerabilities:
[
"high"
]
}])
end
it
'returns array of data with package vulnerabilities sorted in descending order'
do
saml2js_dependency
=
subject
.
find
{
|
dep
|
dep
[
:name
]
==
'saml2-js'
}
saml2js_severities
=
saml2js_dependency
[
:vulnerabilities
].
map
{
|
v
|
v
[
:severity
]
}
expect
(
saml2js_severities
).
to
eq
(
%w(critical medium unknown)
)
end
end
context
'in ascending order'
do
...
...
@@ -145,13 +138,6 @@ RSpec.describe Security::DependencyListService do
expect
(
dependencies
).
to
eq
([{
name:
"nokogiri"
,
vulnerabilities:
[
"high"
]
},
{
name:
"saml2-js"
,
vulnerabilities:
%w(critical medium unknown)
}])
end
it
'returns array of data with package vulnerabilities sorted in descending order'
do
saml2js_dependency
=
subject
.
find
{
|
dep
|
dep
[
:name
]
==
'saml2-js'
}
saml2js_severities
=
saml2js_dependency
[
:vulnerabilities
].
map
{
|
v
|
v
[
:severity
]
}
expect
(
saml2js_severities
).
to
eq
(
%w(critical medium unknown)
)
end
end
end
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