[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})
[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
[Tags]ea-partial-update6_3_4
${entity_id}=Generate Random Entity Id${vehicle_id_prefix}
${entity_id}=Generate Random Entity Id${vehicle_id_prefix}
${request}${response}=Create Entity Selecting Content Type
${response}=Create Entity Selecting Content Type
...${vehicle_filename}
...${vehicle_filename}
...${entity_id}
...${entity_id}
...${CONTENT_TYPE_LD_JSON}
...${CONTENT_TYPE_LD_JSON}
Check Response Status Code201${response['status']}
Check Response Status Code201${response.status_code}
${response}=Partial Update Entity Attributes
${response}=Partial Update Entity Attributes
...${entity_id}
...${entity_id}
...${vehicle_attribute}
...${vehicle_attribute}
...${vehicle_fragment}
...${vehicle_fragment}
...${content_type}
...${content_type}
Check Response Status Code415${response['status']}
Check Response Status Code415${response.status_code}
[Teardown]Delete Entity by Id Returning Response${entity_id}
[Teardown]Delete Entity by Id Returning Response${entity_id}
Check Response Status Code415${response['status']}
Check Response Status Code415${response.status_code}
[Teardown]Delete Subscription${id}
[Teardown]Delete Subscription${id}
044_03_03_endpoint post /entities/
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/)
[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
[Tags]e-create6_3_4
${entity_id}=Generate Random Entity Id${building_id_prefix}
${entity_id}=Generate Random Entity Id${building_id_prefix}
${request}${response}=Create Entity Selecting Content Type
${response}=Create Entity Selecting Content Type
...${building_filename}
...${building_filename}
...${entity_id}
...${entity_id}
...${content_type}
...${content_type}
Check Response Status Code415${response['status']}
Check Response Status Code415${response.status_code}