Commit 083864e2 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat(entity): add TCs for the valueType member of attributes

parent 33c622b6
Loading
Loading
Loading
Loading
+3 −0
Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@ Test Template Create Entity Scenarios
001_01_06 EntityWithMultivaluedRelationship
    [Tags]    e-create    core_10_2_2    since_v1.8.1
    building-multivalued-relationship.jsonld    application/ld+json
001_01_07 EntityWithValueTypedAttributes
    [Tags]    e-create    core_10_2_2    core_5_2_6_4_3    core_5_2_6_4_6    since_v1.9.1
    building-value-type.jsonld    application/ld+json


*** Keywords ***
+6 −0
Changes for TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_02.robot: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,12 @@ Test Template Create Entity With Invalid Request Scenarios
001_02_05 EntityWithNullValueProperty
    [Tags]    e-create    core_10_2_2    since_v1.6.1
    fragmentEntities/ngsild-null/building-null-value-property.jsonld    ${ERROR_TYPE_BAD_REQUEST_DATA}
001_02_06 EntityWithRelationshipHavingValueType
    [Tags]    e-create    core_10_2_2    core_5_2_6_4_4    since_v1.9.1
    building-relationship-with-value-type.jsonld    ${ERROR_TYPE_BAD_REQUEST_DATA}
001_02_07 EntityWithLanguagePropertyHavingInvalidValueType
    [Tags]    e-create    core_10_2_2    core_5_2_6_4_6    since_v1.9.1
    building-language-property-invalid-value-type.jsonld    ${ERROR_TYPE_BAD_REQUEST_DATA}


*** Keywords ***
+15 −0
Changes for data/entities/building-language-property-invalid-value-type.jsonld: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "id": "urn:ngsi-ld:Building:randomUUID",
  "type": "Building",
  "street": {
    "type": "LanguageProperty",
    "languageMap": {
      "fr": "Grand Place",
      "nl": "Grote Markt"
    },
    "valueType": "String"
  },
  "@context": [
    "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
  ]
}
+12 −0
Changes for data/entities/building-relationship-with-value-type.jsonld: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "id": "urn:ngsi-ld:Building:randomUUID",
  "type": "Building",
  "locatedAt": {
    "type": "Relationship",
    "object": "urn:ngsi-ld:City:Paris",
    "valueType": "City"
  },
  "@context": [
    "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
  ]
}
+20 −0
Changes for data/entities/building-value-type.jsonld: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "id": "urn:ngsi-ld:Building:randomUUID",
  "type": "Building",
  "name": {
    "type": "Property",
    "value": "Eiffel Tower",
    "valueType": "String"
  },
  "street": {
    "type": "LanguageProperty",
    "languageMap": {
      "fr": "Grand Place",
      "nl": "Grote Markt"
    },
    "valueType": "langString"
  },
  "@context": [
    "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
  ]
}