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
f17d10c4
Commit
f17d10c4
authored
Aug 26, 2018
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a schema matcher to capture all entity members
parent
cc6d4599
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
spec/fixtures/api/schemas/public_api/v4/group_labels.json
spec/fixtures/api/schemas/public_api/v4/group_labels.json
+17
-0
spec/requests/api/group_labels_spec.rb
spec/requests/api/group_labels_spec.rb
+1
-0
No files found.
spec/fixtures/api/schemas/public_api/v4/group_labels.json
0 → 100644
View file @
f17d10c4
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"name"
:
{
"type"
:
"string "
},
"color"
:
{
"type"
:
"string "
},
"description"
:
{
"type"
:
"string "
},
"open_issues_count"
:
{
"type"
:
"integer "
},
"closed_issues_count"
:
{
"type"
:
"integer "
},
"open_merge_requests_count"
:
{
"type"
:
"integer "
},
"subscribed"
:
{
"type"
:
"boolean"
}
},
"additionalProperties"
:
false
}
}
spec/requests/api/group_labels_spec.rb
View file @
f17d10c4
...
@@ -14,6 +14,7 @@ describe API::GroupLabels do
...
@@ -14,6 +14,7 @@ describe API::GroupLabels do
get
api
(
"/groups/
#{
group
.
id
}
/labels"
,
user
)
get
api
(
"/groups/
#{
group
.
id
}
/labels"
,
user
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
response
).
to
match_response_schema
(
'public_api/v4/group_labels'
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
.
size
).
to
eq
(
2
)
expect
(
json_response
.
size
).
to
eq
(
2
)
...
...
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