[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}
Check Response Status Code415${response.status_code}
[Teardown]Delete Subscription${id}
044_03_03_endpoint post /entities/
044_03_03endpoint 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_code}
[Teardown]Delete Entity by Id${entity_id}
044_03_04_endpoint post /subscriptions/
044_03_04endpoint 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_code}
[Teardown]Delete Subscription${subscriptions_id}
044_03_05_endpoint post /entityOperations/create
044_03_05endpoint 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}
[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}
[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)