Skip to content

Commit 0fd3926

Browse files
committed
Add acceptance test
1 parent c4009ea commit 0fd3926

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

features/image/create.feature

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,14 @@ Feature: Test the UDB3 image API
9999
And I set the JSON request payload to:
100100
"""
101101
{
102-
"contentUrl": "https://picsum.photos/200/300",
102+
"contentUrl": "https://images-acc-uitdatabank.imgix.net/324cc291-7d28-48c2-9da6-84dbc00b3757.png",
103103
"description": "afbeelding via Json Body",
104-
"copyrightHolder": "Picsum",
104+
"copyrightHolder": "publiq",
105105
"inLanguage": "nl"
106106
}
107107
"""
108108
And I send a POST request to "/images/"
109+
And show me the unparsed response
109110
Then the response status should be "201"
110111
And I keep the value of the JSON response at "@id" as "image_@id"
111112
And I keep the value of the JSON response at "imageId" as "image_id"
@@ -116,10 +117,10 @@ Feature: Test the UDB3 image API
116117
{
117118
"@id": "%{baseUrl}/images/%{image_id}",
118119
"@type":"schema:ImageObject",
119-
"contentUrl":"https://images.uitdatabank.dev/%{image_id}.jpeg",
120-
"thumbnailUrl":"https://images.uitdatabank.dev/%{image_id}.jpeg",
120+
"contentUrl":"https://images.uitdatabank.dev/%{image_id}.png",
121+
"thumbnailUrl":"https://images.uitdatabank.dev/%{image_id}.png",
121122
"description":"afbeelding via Json Body",
122-
"copyrightHolder":"Picsum",
123+
"copyrightHolder":"publiq",
123124
"inLanguage":"nl",
124125
"id": "%{image_id}"
125126
}

0 commit comments

Comments
 (0)