[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}
[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 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}
[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}
[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}
[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']}
[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})
[Tags]e-query6_3_4
${entity_id}=Generate Random Entity Id${building_id_prefix}
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})
[Tags]sub-retrieve6_3_4
${id}=Generate Random Entity Id${subscription_id_prefix}
[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/)
[Tags]csr-query6_3_4
${request}${response}=Query Context Source Registrations With Returntype=Buildingaccept=${accept}
Check Response Status Code${status_code}${response['status']}
044_04_04_endpoint 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 /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)
[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})
[Tags]sub-retrieve6_3_4
${id}=Generate Random Entity Id${subscription_id_prefix}
[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)
Query Temporal Representation Of Entitiesentity_types=${entity_types_to_be_retrieved}timerel=aftertimeAt=2020-08-01T12:05:00Zaccept=${accept}
Check Response Status Code Set To${status_code}
044_05_03 Query context source registration
[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)
[Tags]csr-query6_3_4
${request}${response}=Query Context Source Registrations With Returntype=Buildingaccept=${accept}
Check Response Status Code${status_code}${response['status']}