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
84126b07
Commit
84126b07
authored
Oct 08, 2019
by
Cameron Swords
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added to description precedence of options
parent
3fa8fa9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
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
+8
-0
No files found.
ee/app/finders/security/jobs_finder.rb
View file @
84126b07
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# Arguments:
# Arguments:
# pipeline: only jobs for the specified pipeline will be found
# pipeline: only jobs for the specified pipeline will be found
# params:
# params:
# all: boolean, include jobs for all secure job types
# all: boolean, include jobs for all secure job types
. Takes precedence over other options.
# sast: boolean, include jobs for SAST
# sast: boolean, include jobs for SAST
# dast: boolean, include jobs for DAST
# dast: boolean, include jobs for DAST
# container_scanning: boolean, include jobs for Container Scanning
# container_scanning: boolean, include jobs for Container Scanning
...
...
ee/spec/finders/security/jobs_finder_spec.rb
View file @
84126b07
...
@@ -50,6 +50,14 @@ describe Security::JobsFinder do
...
@@ -50,6 +50,14 @@ describe Security::JobsFinder do
it
{
is_expected
.
to
be_empty
}
it
{
is_expected
.
to
be_empty
}
end
end
context
'searching for all types takes precedence over excluding specific types'
do
let!
(
:build
)
{
create
(
:ci_build
,
:dast
,
pipeline:
pipeline
)
}
let
(
:finder
)
{
described_class
.
new
(
pipeline
,
all:
true
,
dast:
false
)
}
it
{
is_expected
.
to
eq
([
build
])
}
end
context
'with dast jobs'
do
context
'with dast jobs'
do
let!
(
:build
)
{
create
(
:ci_build
,
:dast
,
pipeline:
pipeline
)
}
let!
(
:build
)
{
create
(
:ci_build
,
:dast
,
pipeline:
pipeline
)
}
...
...
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