[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/)
${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 is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (create /entities/)
${entity_id}=Generate Random Entity Id${building_id_prefix}
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (update /entities/{entityId}/attrs/{attrId})
${entity_id}=Generate Random Entity Id${vehicle_id_prefix}
Check Response Status Code${status_code}${response['status']}
[Teardown]Delete Entity by Id Returning Response${entity_id}
044_05_03_endpoint create /subscriptions/
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (create /subscriptions/)
${subscriptions_id}=Generate Random Entity Id${subscription_id_prefix}
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (update /subscriptions/{subscriptionId})
044_05_01 Retrieve subscription by id
[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_05_05_endpoint create /temporal/entities/
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (create /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}${CONTENT_TYPE_LD_JSON}accept=${accept}
Check Response Status Code${status_code}${response['status']}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}
[Documentation]Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (create /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 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 is "application/geo+json" for operations different than "Retrieve Entity" and "Query Entity" (create /csourceRegistrations/)
${registration_id}=Generate Random Entity Id${registration_id_prefix}
${payload}=Load Json From File${EXECDIR}/data/csourceRegistrations/${registration_filename}
${updated_payload}=Update Value To Json${payload}$..id${registration_id}
${request}${response}=Create Context Source Registration With Return${updated_payload}accept=${accept}
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)
${request}${response}=Query Context Source Registrations With Returntype=Buildingaccept=${accept}
Check Response Status Code${status_code}${response['status']}