Commit fd3fc8b1 authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

Refactor: Remove unused data files and update test cases

parent ae6e46da
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ ${entity_id_prefix} urn:ngsi-ld:Vehicle:
${entity_payload_filename}              vehicle-simple-attributes.json
${entity_payload_filename2}             vehicle-simple-attributes-second.jsonld
${registration_id_prefix}               urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-complete-auxiliary.jsonld
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-complete.jsonld
${fragment_filename}                    vehicle-brandname-fragment.json
${expected_attribute}                   brandName

@@ -49,6 +49,7 @@ Create Entity And Registration On The Context Broker And Start Context Source Mo
    ${registration_payload}=    Prepare Context Source Registration From File   
    ...    ${registration_id}
    ...    ${registration_payload_file_path}
    ...    mode=auxiliary
    ${response1}=    Create Context Source Registration With Return    ${registration_payload}
    Check Response Status Code    201    ${response1.status_code}
    Start Context Source Mock Server
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ ${entity_id_prefix} urn:ngsi-ld:Vehicle:
${entity_payload_filename}              vehicle-simple-attributes.json
${entity_payload_filename2}             vehicle-simple-attributes-second.jsonld
${registration_id_prefix}               urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-complete-auxiliary.jsonld
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-complete.jsonld
${fragment_filename}                    vehicle-brandname-fragment.json
${expected_attribute}                   brandName

@@ -49,6 +49,7 @@ Create Entity And Registration On The Context Broker And Start Context Source Mo
    ${registration_payload}=    Prepare Context Source Registration From File   
    ...    ${registration_id}
    ...    ${registration_payload_file_path}
    ...    mode=auxiliary
    ${response1}=    Create Context Source Registration With Return    ${registration_payload}
    Check Response Status Code    201    ${response1.status_code}
    Start Context Source Mock Server
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ D001_02_inc Request to create an entity with a malformed id on both Context Brok
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    400    ${response.status_code}

    Wait For No Request    timeout=5
    Wait For No Request
    ${response_query}=    Query Entities    entity_types=Vehicle    local=true    context=${ngsild_test_suite_context}
    Check Response Status Code    200    ${response_query.status_code}
    Should Be Empty    ${response_query.json()}
+0 −18
Original line number Diff line number Diff line
{
    "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID",
    "type": "ContextSourceRegistration",
    "information": [
        {
        "entities": [
            {
            "type": "Vehicle"
            }
        ]
        }
    ],
    "endpoint": "http://my.csource.org:1026",
    "mode": "auxiliary",
    "@context": [
        "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
    ]
}
 No newline at end of file
+0 −24
Original line number Diff line number Diff line
{
    "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID",
    "type": "ContextSourceRegistration",
    "information": [
      {
        "entities": [
          {
            "type": "Vehicle"
          }
        ],
        "propertyNames": [
          "brandName"
        ],
        "relationshipNames": [
          "isParked"
        ]
      }
    ],
    "endpoint": "http://my.csource.org:1026",
    "mode": "redirect",
    "@context": [
      "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
    ]
  }  
 No newline at end of file
Loading