BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a75d1121
Commit
a75d1121
authored
May 29, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa/rs-api-users-spec' into 'master'
Simplify users API QA spec See merge request gitlab-org/gitlab-ce!19147
parents
35597a4c
5d2d2789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
users_spec.rb
qa/qa/specs/features/api/users_spec.rb
+4
-5
No files found.
qa/qa/specs/features/api/users_spec.rb
View file @
a75d1121
...
@@ -17,17 +17,16 @@ module QA
...
@@ -17,17 +17,16 @@ module QA
get
request
.
url
,
{
params:
{
username:
Runtime
::
User
.
name
}
}
get
request
.
url
,
{
params:
{
username:
Runtime
::
User
.
name
}
}
expect_status
(
200
)
expect_status
(
200
)
expect
(
json_body
).
to
be_an
Array
expect
(
json_body
).
to
contain_exactly
(
expect
(
json_body
.
size
).
to
eq
(
1
)
a_hash_including
(
username:
Runtime
::
User
.
name
)
expect
(
json_body
.
first
[
:username
]).
to
eq
Runtime
::
User
.
name
)
end
end
scenario
'submit request with an invalid user name'
do
scenario
'submit request with an invalid user name'
do
get
request
.
url
,
{
params:
{
username:
SecureRandom
.
hex
(
10
)
}
}
get
request
.
url
,
{
params:
{
username:
SecureRandom
.
hex
(
10
)
}
}
expect_status
(
200
)
expect_status
(
200
)
expect
(
json_body
).
to
be_an
Array
expect
(
json_body
).
to
eq
([])
expect
(
json_body
.
size
).
to
eq
(
0
)
end
end
end
end
...
...
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