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
476b5eed
Commit
476b5eed
authored
Dec 03, 2019
by
Pavel Shutsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing spec for Deployments API
parent
c2d8cb73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/requests/api/deployments_spec.rb
spec/requests/api/deployments_spec.rb
+10
-0
No files found.
spec/requests/api/deployments_spec.rb
View file @
476b5eed
...
...
@@ -30,6 +30,16 @@ describe API::Deployments do
expect
(
json_response
.
last
[
'iid'
]).
to
eq
(
deployment_3
.
iid
)
end
context
'with updated_at filters specified'
do
it
'returns projects deployments with last update in specified datetime range'
do
get
api
(
"/projects/
#{
project
.
id
}
/deployments"
,
user
),
params:
{
updated_before:
30
.
minutes
.
ago
,
updated_after:
90
.
minutes
.
ago
}
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
first
[
'id'
]).
to
eq
(
deployment_3
.
id
)
end
end
describe
'ordering'
do
let
(
:order_by
)
{
'iid'
}
let
(
:sort
)
{
'desc'
}
...
...
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