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
0fd3f91f
Commit
0fd3f91f
authored
Oct 02, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Unleash json schema
parent
75c459e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
ee/spec/fixtures/api/schemas/unleash/unleash.json
ee/spec/fixtures/api/schemas/unleash/unleash.json
+20
-0
ee/spec/fixtures/api/schemas/unleash/unleash_feature.json
ee/spec/fixtures/api/schemas/unleash/unleash_feature.json
+19
-0
ee/spec/requests/api/unleash_spec.rb
ee/spec/requests/api/unleash_spec.rb
+1
-2
No files found.
ee/spec/fixtures/api/schemas/unleash/unleash.json
0 → 100644
View file @
0fd3f91f
{
"additionalProperties"
:
false
,
"properties"
:
{
"features"
:
{
"items"
:
{
"$ref"
:
"unleash_feature.json"
},
"minItems"
:
0
,
"type"
:
"array"
},
"version"
:
{
"type"
:
"integer"
}
},
"required"
:
[
"version"
,
"features"
],
"type"
:
"object"
}
ee/spec/fixtures/api/schemas/unleash/unleash_feature.json
0 → 100644
View file @
0fd3f91f
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"required"
:
[
"name"
,
"enabled"
],
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"enabled"
:
{
"type"
:
"boolean"
},
"description"
:
{
"type"
:
"string"
}
}
}
ee/spec/requests/api/unleash_spec.rb
View file @
0fd3f91f
...
...
@@ -75,8 +75,7 @@ describe API::Unleash do
subject
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
# TODO: match schema
expect
(
response
).
to
match_response_schema
(
'unleash/unleash'
,
dir:
'ee'
)
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