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
a22c802a
Commit
a22c802a
authored
Oct 10, 2019
by
Cameron Swords
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a missing select and fixed a broken test
parent
d8d3a8b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/finders/security/jobs_finder.rb
ee/app/finders/security/jobs_finder.rb
+1
-1
ee/spec/finders/security/jobs_finder_spec.rb
ee/spec/finders/security/jobs_finder_spec.rb
+1
-1
No files found.
ee/app/finders/security/jobs_finder.rb
View file @
a22c802a
...
...
@@ -38,7 +38,7 @@ module Security
def
find_jobs_legacy
# the query doesn't guarantee accuracy, so we verify it here
legacy_jobs_query
do
|
job
|
legacy_jobs_query
.
select
do
|
job
|
@job_types
.
find
{
|
job_type
|
job
.
options
.
dig
(
:artifacts
,
:reports
,
job_type
)
}
end
end
...
...
ee/spec/finders/security/jobs_finder_spec.rb
View file @
a22c802a
...
...
@@ -44,7 +44,7 @@ describe Security::JobsFinder do
context
'with jobs having report artifacts that are similar to secure artifacts'
do
before
do
create
(
:ci_build
,
pipeline:
pipeline
,
options:
{
artifacts:
{
reports:
{
file:
'
sas
t.file'
}
}
})
create
(
:ci_build
,
pipeline:
pipeline
,
options:
{
artifacts:
{
reports:
{
file:
'
report:sast:resul
t.file'
}
}
})
end
it
{
is_expected
.
to
be_empty
}
...
...
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