[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}
Check Response Status Code${status_code}${response.status_code}
[Teardown]Delete Entity by Id Returning Response${entity_id}
044_04_02_endpoint get /subscriptions/{subscriptionId}
044_04_02endpoint 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}
Check Response Status Code${status_code}${response.status_code}
[Teardown]Delete Subscription${id}
044_04_03_endpoint get /csourceRegistrations/
044_04_03endpoint 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/)
[Tags]csr-query6_3_4
${response}=Query Context Source Registrations With Returntype=Buildingaccept=${accept}
Check Response Status Code${status_code}${response.status_code}
044_04_04_endpoint get /csourceSubscriptions/
044_04_04endpoint 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/)
Check Response Status Code${status_code}${response.status_code}
044_04_05_endpoint get /temporal/entities
044_04_05endpoint 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 /temporal/entities)
"then":"then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when":"when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Update Entity Attributes and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and \nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'vehicle-brandname-fragment.json'",
"when":"when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Partial Update Entity Attributes and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and \nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'vehicle-brandname-fragment.json'",