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
8745a6fe
Commit
8745a6fe
authored
Nov 06, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds rspec file for sast [ci skip]
parent
32d16fcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
spec/ee/spec/features/projects/merge_requests/merge_request_with_sast.rb
...atures/projects/merge_requests/merge_request_with_sast.rb
+43
-0
No files found.
spec/ee/spec/features/projects/merge_requests/merge_request_with_sast.rb
0 → 100644
View file @
8745a6fe
require
'spec_helper'
describe
'Merge request with sast'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
:project
,
:repository
}
let
(
:pipeline
)
do
create
(
:ci_empty_pipeline
,
status: :created
,
project:
project
)
end
let
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'sast'
,
pipeline:
pipeline
,
options:
{
artifacts:
{
paths:
[
'gl-sast-report.json'
]
}
}
)
end
let
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
before
do
allow
(
merge_request
).
to
receive
(
:sast_artifact
).
and_return
(
build
)
project
.
add_developer
(
user
)
sign_in
(
user
)
visit
(
merge_request_path
(
merge_request
))
wait_for_requests
end
it
'shows sast information'
do
expect
(
page
).
to
have_content
(
'1 security vulnerability detected'
)
end
it
'expands the information section'
do
click_button
(
'Expand'
)
expect
(
page
).
to
have_content
(
'message name goes here'
)
expect
(
page
).
to
have_content
(
'file name goes here'
)
end
end
\ No newline at end of file
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