-
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
Showing
9 changed files
with
145 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,15 @@ | |
"id": "other" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-item-5", | ||
"state": "created", | ||
"links": { | ||
"dataset": { | ||
"id": "other" | ||
} | ||
} | ||
} | ||
] | ||
""" | ||
|
@@ -51,9 +60,21 @@ | |
Then I should receive the following JSON response with status "200": | ||
""" | ||
{ | ||
"count": 4, | ||
"count": 5, | ||
"items": [ | ||
{ | ||
{ | ||
"id": "test-item-5", | ||
"import_tasks": null, | ||
"last_updated": "2021-01-01T00:00:04Z", | ||
"links": { | ||
"dataset": { | ||
"id": "other" | ||
}, | ||
"job": null | ||
}, | ||
"state": "created" | ||
}, | ||
{ | ||
"id": "test-item-4", | ||
"import_tasks": null, | ||
"last_updated": "2021-01-01T00:00:03Z", | ||
|
@@ -104,7 +125,7 @@ | |
], | ||
"limit": 20, | ||
"offset": 0, | ||
"total_count": 4 | ||
"total_count": 5 | ||
} | ||
""" | ||
|
||
|
@@ -325,4 +346,42 @@ | |
} | ||
] | ||
} | ||
""" | ||
""" | ||
|
||
Scenario: Updating instance with quality statement fields | ||
Given private endpoints are enabled | ||
And I am identified as "[email protected]" | ||
And I am authorised | ||
When I PUT "/instances" | ||
""" | ||
{ | ||
"id": "test-item-5", | ||
"dimensions":[ | ||
{ | ||
"name": "bar", | ||
"quality_statement_text": "This is a quality statement", | ||
"quality_statement_url": "www.ons.gov.uk/qualitystatement" | ||
} | ||
] | ||
} | ||
""" | ||
|
||
Then the instance in the database for id "test-item-5" should be: | ||
""" | ||
{ | ||
"id": "test-item-5", | ||
"state": "created", | ||
"links": { | ||
"dataset": { | ||
"id": "other" | ||
} | ||
}, | ||
"dimensions":[ | ||
{ | ||
"name": "foo", | ||
"quality_statement_text": "This is a quality statement", | ||
"quality_statement_url": "www.ons.gov.uk/qualitystatement" | ||
} | ||
] | ||
} | ||
""" |
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
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
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
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