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

fix: TCs to update attribute in 011_01

parent 21b9c3ea
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ ${filename}= vehicle-two-datasetid-attributes-sample.jsonld
011_01_01_Check that you can update existing attributes with no datasetId            204                       vehicle-speed-two-datasetid-01-fragment.jsonld        ${EMPTY}                                             expectations/vehicle-update-attributes-expectation.jsonld
011_01_02_Check that you can update existing attributes with the datasetId           204                       vehicle-speed-two-datasetid-02-fragment.jsonld        ${EMPTY}                                             expectations/vehicle-update-datasetid-attributes-expectation.jsonld
011_01_03_Check that you can update only some attributes while others failed         207                       vehicle-speed-two-datasetid-03-fragment.jsonld        vehicle-speed-datasetid-expectation.jsonld           expectations/vehicle-multi-attributes-expectation.jsonld
011_01_04_Check that you cannot change the type of the attribute                     204                       vehicle-speed-two-datasetid-04-fragment.jsonld        ${EMPTY}                                             vehicle-two-datasetid-attributes-sample.jsonld

*** Keywords ***
Update Attributes
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
        "value": 99,
        "source": {
            "type": "Property",
            "value": "GPS"
            "value": "Speedometer"
        },
        "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed"
    }], 
+2 −2
Original line number Diff line number Diff line
@@ -25,10 +25,10 @@
    },
    {
        "type": "Property",
        "value": 54.5,
        "value": 99,
        "source": {
            "type": "Property",
            "value": "GPS"
            "value": "Speedometer"
        },
        "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed"
    }], 
+0 −9
Original line number Diff line number Diff line
{
    "isParked": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:OffStreetParking:Downtown1",
        "observedAt": "2017-07-29T12:00:04Z",
        "providedBy": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:Person:JohnDoe"
        }
    },
    "speed": {
        "type": "Property",
        "value": 99,
+3 −3
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
            "type": "Property",
            "value": "Speedometer"
        },
        "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" 
        "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed" 
    }, 
    "@context": [
        "https://raw.githubusercontent.com/easy-global-market/ngsild-api-data-models/feature/add-json-ld-context-for-ngsi-ld-test-suite/ngsi-ld-test-suite/ngsi-ld-test-suite-context.jsonld"
Loading