Create a batch of one entity using the default context with JSON content type
003_05_01 Create a batch of one entity using the default context with JSON content type
[Documentation]Check that the default @context is used if the Content-Type header is "application/json" and the Link header does not contain a JSON-LD @context
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}
...
...
@@ -22,10 +22,10 @@ Create a batch of one entity using the default context with JSON content type
Create a batch of one entity containing a JSON-LD @context with a JSON content type
003_06_01 Create a batch of one entity containing a JSON-LD @context with a JSON content type
[Documentation]Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is "application/json" and the request payload body (as JSON) contains a "@context" term
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}
Create a batch of one entity using a JSON-LD @context obtained from the request payload
[Documentation]Check that the @context is obtained from the request payload body itself if the Content-Type header is "application/ld+json"
003_07_01 Create a batch of one entity using a JSON-LD @context obtained from the request payload
[Documentation]Check that the @context is obtained from the request payload body itself if the Content-Type header is "application/ld+json" and ther response attribute should be compacted as we used the same context as provided when creating the entity
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}
Set Suite Variable${entity_id}
...
...
@@ -22,10 +22,22 @@ Create a batch of one entity using a JSON-LD @context obtained from the request
Check Response Status Code201${response.status_code}
${response}=Retrieve Entity by Id${entity_id}context=${ngsild_test_suite_context}
${response}=Retrieve Entity by Idid=${entity_id}context=${ngsild_test_suite_context}
# Attribute should be compacted as we used the same context as provided when creating the entity
Check Response Body Containing an Attribute set toalmostFull${response.json()}
${response}=Retrieve Entity by Id${entity_id}
Check Response Body Containing an Attribute set to
...almostFull
...${response.json()}
003_07_02 Create a batch of one entity using a JSON-LD @context obtained from the request payload
[Documentation]Check that the @context is obtained from the request payload body itself if the Content-Type header is "application/ld+json" and response attribute should not be compacted as we did not provide a context containing this term
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}
Create a batch of one entity not containing a JSON-LD @context with a JSON-LD content type
003_08_01 Create a batch of one entity not containing a JSON-LD @context with a JSON-LD content type
[Documentation]Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is "application/ld+json" and the request payload body does not contain a @context term
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}
Create a batch of one entity with a Link header and a JSON-LD content type
003_09_01 Create a batch of one entity with a Link header and a JSON-LD content type
[Documentation]Check that an HTTP error response of type BadRequestData is raised if the Content-Type header is "application/ld+json" and a JSON-LD Link header is present in the incoming HTTP request
[Tags]be-create6_3_5
${entity_id}=Generate Random Entity Id${building_id_prefix}