[Documentation]Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/subscriptions/{subscriptionId})
Changes for TP/NGSI-LD/CommonBehaviours/CommonResponses/VerifyNotAcceptableMediaType/049_01.robot: 1 added line, 1 removed line.
Original line number
Diff line number
Diff line
@@ -26,7 +26,7 @@ ${status_code}= 406
...id=${entity_id}
...accept=${accept}
Check Response Status Code${status_code}${response.status_code}
[Teardown]Delete Entity by Id${entity_id}
[Teardown]Delete Entity${entity_id}
049_01_02 Endpoint Get /subscriptions/{subscriptionId}
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /subscriptions/{subscriptionId})
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (patch /subscriptions/{subscriptionId})
Check Response Status Code415${response.status_code}
[Teardown]Delete Entity by Id${entity_id}
[Teardown]Delete Entity${entity_id}
048_01_04 Endpoint Post /subscriptions/
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /subscriptions/)