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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a12b6184
Commit
a12b6184
authored
May 06, 2019
by
Grzegorz Bizon
Committed by
Filipa Lacerda
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a controller test verifying exposure of stages
parent
b9c19f6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/controllers/projects/jobs_controller_spec.rb
spec/controllers/projects/jobs_controller_spec.rb
+6
-0
No files found.
spec/controllers/projects/jobs_controller_spec.rb
View file @
a12b6184
...
...
@@ -148,6 +148,12 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
get_show
(
id:
job
.
id
,
format: :json
)
end
it
'does not serialize builds in exposed stages'
do
json_response
.
dig
(
'pipeline'
,
'details'
,
'stages'
).
tap
do
|
stages
|
expect
(
stages
.
map
(
&
:keys
).
flatten
).
to
eq
%w[name title status path dropdown_path]
end
end
context
'when job failed'
do
it
'exposes needed information'
do
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
...
...
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