Commit f9d522d5 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: use 1.3 core context and incorrect JSON vs JSON-LD use in Entities TCs (018 & 019)

parent e2fb0832
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-location-attribute-sample.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.json
${options_parameter}=  keyValues
${accept_header}=  application/geo+json

+3 −2
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-minimal-sample.jsonld
${expectation_filename}=  building-minimal-expectation.jsonld
${expectation_filename}=  building-minimal-expectation.json
${entity_type}=  https://ngsi-ld-test-suite/context#Building

*** Test Cases ***                                                 
@@ -18,16 +18,17 @@ Query several entities based on ids
    ${first_entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${first_entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  201    ${response['status']}

    ${second_entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${second_entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  201    ${response['status']}

    ${third_entity_id}=     Generate Random Entity Id    ${building_id_prefix}
    ${request}    ${response}=    Create Entity Selecting Content Type  ${filename}     ${third_entity_id}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code  201    ${response['status']}

    @{entities_ids_to_be_compared}=  Create List   ${first_entity_id}    ${second_entity_id}
    ${entities_ids_to_be_retrieved}=  Catenate    SEPARATOR=,   ${first_entity_id}    ${second_entity_id}

    ${entity_types_to_be_retrieved}=  Catenate    SEPARATOR=,     ${entity_type}
    ${response}=    Query Entities    entity_ids=${entities_ids_to_be_retrieved}    entity_types=${entity_types_to_be_retrieved} 
    Check Response Status Code  200    ${response['status']}
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-minimal-sample.jsonld
${expectation_filename}=  building-minimal-expectation.jsonld
${expectation_filename}=  building-minimal-expectation.json
${entity_type}=  https://ngsi-ld-test-suite/context#Building
${entity_id_pattern}=  urn:ngsi-ld:Building:.*

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-simple-attributes-sample.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.json
${options_parameter}=  keyValues
${entity_type}=  https://ngsi-ld-test-suite/context#Building

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
*** Variable ***
${building_id_prefix}=  urn:ngsi-ld:Building:
${filename}=  building-location-attribute-sample.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.jsonld
${expectation_filename}=  building-simple-attributes-simplified-expectation.json
${entity_type}=  https://ngsi-ld-test-suite/context#Building
${accept_header}=  application/geo+json

Loading