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)
[Tags]te-create5_2_2
${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)
[Tags]be-create5_2_2
${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})
[Tags]sub-retrieve6_3_4
${id}=Generate Random Entity Id${subscription_id_prefix}
[Documentation]Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/temporal/entities)
[Tags]te-query6_3_4
${temporal_entity_representation_id}=Generate Random Entity Id${tea_id_prefix}
Create Temporal Representation Of Entity${tea_filename}${temporal_entity_representation_id}
Check Response Status Code201${response['status']}
${request}${response}=Query Temporal Representation Of Entities With Returnentity_types=${teatype}timerel=aftertimeAt=2020-08-01T12:05:00Zcontext=${ngsild_test_suite_context}accept=*/*
Check Response Status Code200${response['status']}
Set Test Variable${response}
Check Response Body Containing EntityTemporal element${tea_expectation}${temporal_entity_representation_id}
Check Response Headers Containing Content-Type set to${response}${content_type}
Check Response Headers Link Not Empty${response}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}
[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})
[Tags]ea-partial-update6_3_4
${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})
[Tags]sub-update6_3_4
${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/)
[Tags]e-create6_3_4
${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/)
[Tags]sub-create6_3_4
${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)
[Tags]be-create6_3_4
${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/)
[Tags]te-create6_3_4
${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}
Check Response Status Code415${response['status']}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}