-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5724927
commit 1e7b704
Showing
2 changed files
with
91 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,9 +276,14 @@ Feature: Private Dataset API | |
When I POST "/datasets" | ||
""" | ||
{ | ||
"title": "", | ||
"title": "title", | ||
"type": "filterable", | ||
"state": "anything", | ||
"type": "filterable" | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"keywords":["keyword"], | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -293,7 +298,12 @@ Feature: Private Dataset API | |
{ | ||
"id": "ageing-population-estimates", | ||
"title": "title", | ||
"state": "anything" | ||
"state": "anything", | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"keywords":["keyword"], | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -308,7 +318,12 @@ Feature: Private Dataset API | |
{ | ||
"id": "ageing-population-estimates", | ||
"type": "filterable", | ||
"state": "anything" | ||
"state": "anything", | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"keywords":["keyword"], | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -325,7 +340,10 @@ Feature: Private Dataset API | |
"title": "title", | ||
"type": "filterable", | ||
"state": "anything", | ||
"next_release":"2016-04-04" | ||
"next_release":"2016-04-04", | ||
"keywords":["keyword"], | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -342,8 +360,10 @@ Feature: Private Dataset API | |
"title": "title", | ||
"type": "filterable", | ||
"state": "anything", | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"next_release":"2016-04-04" | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -361,7 +381,9 @@ Feature: Private Dataset API | |
"type": "filterable", | ||
"state": "anything", | ||
"description": "census", | ||
"keywords":["keyword"] | ||
"keywords":["keyword"], | ||
"themes": ["theme"], | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -378,9 +400,10 @@ Feature: Private Dataset API | |
"title": "title", | ||
"type": "static", | ||
"state": "anything", | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"keywords":["keyword"], | ||
"next_release":"2016-04-04" | ||
"contacts":[{"email":"[email protected]","name":"John Cox","telephone":"01623 456789"}] | ||
} | ||
""" | ||
Then the HTTP status code should be "400" | ||
|
@@ -395,11 +418,11 @@ Feature: Private Dataset API | |
{ | ||
"id": "ageing-population-estimates", | ||
"title": "title", | ||
"type": "static", | ||
"type": "filterable", | ||
"state": "anything", | ||
"next_release":"2016-04-04", | ||
"description": "census", | ||
"keywords":["keyword"], | ||
"next_release":"2016-04-04", | ||
"themes": ["theme"] | ||
} | ||
""" | ||
|