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
e8f37eef
Commit
e8f37eef
authored
Nov 05, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use :sast instead of :security_reports trait
parent
c06347f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ee/spec/controllers/projects/security/dashboard_controller_spec.rb
...ontrollers/projects/security/dashboard_controller_spec.rb
+1
-1
ee/spec/factories/ci/builds.rb
ee/spec/factories/ci/builds.rb
+1
-1
ee/spec/models/ci/pipeline_spec.rb
ee/spec/models/ci/pipeline_spec.rb
+2
-2
ee/spec/services/security/store_reports_service_spec.rb
ee/spec/services/security/store_reports_service_spec.rb
+1
-1
No files found.
ee/spec/controllers/projects/security/dashboard_controller_spec.rb
View file @
e8f37eef
...
...
@@ -40,7 +40,7 @@ describe Projects::Security::DashboardController do
context
'when uses new reports syntax'
do
before
do
create
(
:ee_ci_build
,
:s
ecurity_reports
,
pipeline:
pipeline
)
create
(
:ee_ci_build
,
:s
ast
,
pipeline:
pipeline
)
end
it
'renders empty state (not yet supported)'
do
...
...
ee/spec/factories/ci/builds.rb
View file @
e8f37eef
...
...
@@ -11,7 +11,7 @@ FactoryBot.define do
success
artifacts
name
report_type
options
do
{
artifacts:
{
...
...
ee/spec/models/ci/pipeline_spec.rb
View file @
e8f37eef
...
...
@@ -167,7 +167,7 @@ describe Ci::Pipeline do
context
'when pipeline has builds with security reports'
do
before
do
create
(
:ee_ci_build
,
:s
ecurity_reports
,
pipeline:
pipeline
,
project:
project
)
create
(
:ee_ci_build
,
:s
ast
,
pipeline:
pipeline
,
project:
project
)
end
context
'when pipeline status is running'
do
...
...
@@ -257,7 +257,7 @@ describe Ci::Pipeline do
let
(
:default_branch
)
{
pipeline
.
ref
}
before
do
create
(
:ee_ci_build
,
:s
ecurity_reports
,
pipeline:
pipeline
,
project:
project
)
create
(
:ee_ci_build
,
:s
ast
,
pipeline:
pipeline
,
project:
project
)
allow
(
project
).
to
receive
(
:default_branch
)
{
default_branch
}
end
...
...
ee/spec/services/security/store_reports_service_spec.rb
View file @
e8f37eef
...
...
@@ -10,7 +10,7 @@ describe Security::StoreReportsService, '#execute' do
context
'when there are reports'
do
before
do
stub_licensed_features
(
sast:
true
)
create
(
:ee_ci_build
,
:s
ecurity_reports
,
pipeline:
pipeline
)
create
(
:ee_ci_build
,
:s
ast
,
pipeline:
pipeline
)
end
it
'initializes a new StoreReportService and execute it'
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