Check Response Status Code${expected_status_code}${response['status']}
Check Response Body Containing ProblemDetails Element Containing Type Element set to${response}${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
Check Response Body Containing ProblemDetails Element Containing Title Element${response}
[Teardown]Delete Subscription${subscription_id}
043_03 Create Temporal Representation of Entities
[Documentation]Verify throwing 503 – LDContextNotAvaliable error if remote JSON-LD @context cannot be retrieved (Create Temporal Representation of Entities)
${temporal_entity_representation_id}=Generate Random Entity Id${tea_id_prefix}
${response}=Create Or Update Temporal Representation Of Entity Selecting Content Type${temporal_entity_representation_id}${tea_filename}${CONTENT_TYPE_LD_JSON}
Check Response Status Code${expected_status_code}${response['status']}
Check Response Body Containing ProblemDetails Element Containing Type Element set to${response}${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
Check Response Body Containing ProblemDetails Element Containing Title Element${response}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}
043_04 Batch entity create
[Documentation]Verify throwing 503 – LDContextNotAvaliable error if remote JSON-LD @context cannot be retrieved (Batch entity create)
${first_entity_id}=Generate Random Entity Id${building_id_prefix}
${second_entity_id}=Generate Random Entity Id${building_id_prefix}
[Documentation]Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/subscriptions/{subscriptionId})
${id}=Generate Random Entity Id${subscription_id_prefix}
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (patch /entities/{entityId}/attrs/{attrId})
${entity_id}=Generate Random Entity Id${vehicle_id_prefix}
[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})
${id}=Generate Random Entity Id${subscription_id_prefix}
Check Response Status Code415${response['status']}
[Teardown]Delete Subscription${id}
044_03_03_endpoint post /entities/
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /entities/)
${entity_id}=Generate Random Entity Id${building_id_prefix}
Check Response Status Code415${response['status']}
[Teardown]Delete Entity by Id${entity_id}
044_03_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/)
${subscriptions_id}=Generate Random Entity Id${subscription_id_prefix}
Check Response Status Code415${response['status']}
[Teardown]Delete Subscription${subscriptions_id}
044_03_05_endpoint post /entityOperations/create
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /entityOperations/create)
${first_entity_id}=Generate Random Entity Id${building_id_prefix}
${second_entity_id}=Generate Random Entity Id${building_id_prefix}
[Documentation]Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /temporal/entities/)
${temporal_entity_representation_id}=Generate Random Entity Id${tea_id_prefix}
${response}=Create Or Update Temporal Representation Of Entity Selecting Content Type${temporal_entity_representation_id}${tea_filename}${EMPTY}
Check Response Status Code415${response['status']}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}
Changes for TP/NGSI-LD/CommonBehaviours/044_04.robot: 58 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
*** Settings ***
DocumentationVerify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json"
[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 /entities/{entityId})
${entity_id}=Generate Random Entity Id${building_id_prefix}
Check Response Status Code${status_code}${response['status']}
[Teardown]Delete Entity by Id Returning Response${entity_id}
044_04_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})
${id}=Generate Random Entity Id${subscription_id_prefix}
Check Response Status Code${status_code}${response['status']}
[Teardown]Delete Subscription${id}
044_04_03_endpoint get /csourceRegistrations/
[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 /csourceRegistrations/)
[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 /csourceSubscriptions/)
[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 /temporal/entities)