Commit 48721dda authored by Giuseppe Tropea's avatar Giuseppe Tropea
Browse files

Merge remote-tracking branch 'origin/testsuitedata' into parsespec

parents 6ee3aa6c aaa90a4e
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -43,17 +43,17 @@ Create Entity Scenarios
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
    ${created_entity}=    Load Test Sample    entities/${filename}    ${entity_id}
    ${created_entity}=    Load Test Sample    entities/${filename}    ${entity_id}
    IF    '${content_type}' == 'application/json'
    IF    '${content_type}' == 'application/json'
        ${created_entity}=    Retrieve Entity by Id
        ${check_entity}=    Retrieve Entity by Id
        ...    id=${entity_id}
        ...    id=${entity_id}
        ...    accept=${content_type}
        ...    accept=${content_type}
    END
    END
    IF    '${content_type}' == 'application/ld+json'
    IF    '${content_type}' == 'application/ld+json'
        ${created_entity}=    Retrieve Entity by Id
        ${check_entity}=    Retrieve Entity by Id
        ...    id=${entity_id}
        ...    id=${entity_id}
        ...    accept=${content_type}
        ...    accept=${content_type}
        ...    context=${ngsild_test_suite_context}
        ...    context=${ngsild_test_suite_context}
    END
    END
    Check Created Resource Set To    ${created_entity}    ${response.json()}
    Check Created Resource Set To    ${created_entity}    ${check_entity.json()}


Delete Initial Entity
Delete Initial Entity
    Delete Entity by Id    ${entity_id}
    Delete Entity by Id    ${entity_id}
+4 −6
Original line number Original line Diff line number Diff line
@@ -10,7 +10,7 @@
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
  "test_cases": [
    {
    {
      "name": "010_04_01 Append entity attributes",
      "name": "010_04_01 Append entity attributes and ignore existing multi-attribute instance",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_04_01",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_04_01",
      "doc": "Check that you can append entity attributes",
      "doc": "Check that you can append entity attributes",
      "tags": [
      "tags": [
@@ -20,13 +20,13 @@
      "setup": "Create Initial Entity",
      "setup": "Create Initial Entity",
      "teardown": "Delete Initial Entity",
      "teardown": "Delete Initial Entity",
      "template": "Append Attributes With Params",
      "template": "Append Attributes With Params",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Check Response Body Content and\n    Query Parameter: additional_ignored_path set to '${EMPTY}' and\n        Updated Entity set to ${entity} and\n        Response Status Code set to 207\n}",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Check Response Body Content and\n    Query Parameter: additional_ignored_path set to '${EMPTY}' and\n        Updated Entity set to ${entity} and\n        Response Status Code set to 204\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/entities/{id}'\n        method set to 'GET'\n        Request Retrieve Entity by Id and\n    Query Parameter: id set to '${entity_id}' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\n    Query Parameter: accept set to 'application/ld+json'\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/entities/{id}'\n        method set to 'GET'\n        Request Retrieve Entity by Id and\n    Query Parameter: id set to '${entity_id}' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\n    Query Parameter: accept set to 'application/ld+json'\n}",
      "http_verb": "GET",
      "http_verb": "GET",
      "endpoint": "entities/{id}"
      "endpoint": "entities/{id}"
    },
    },
    {
    {
      "name": "010_04_02 Append entity attributes",
      "name": "010_04_02 Append entity attributes with a new multi-attribute instance",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_04_02",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/010_04_02",
      "doc": "Check that you can append entity attributes",
      "doc": "Check that you can append entity attributes",
      "tags": [
      "tags": [
@@ -42,9 +42,7 @@
      "endpoint": "entities/{id}"
      "endpoint": "entities/{id}"
    }
    }
  ],
  ],
  "permutations": [
  "permutations": [],
    "then"
  ],
  "robotpath": "ContextInformation/Provision/EntityAttributes/AppendEntityAttributes",
  "robotpath": "ContextInformation/Provision/EntityAttributes/AppendEntityAttributes",
  "robotfile": "010_04"
  "robotfile": "010_04"
}
}
 No newline at end of file
+3 −5
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@
      "endpoint": "entities/{id}"
      "endpoint": "entities/{id}"
    },
    },
    {
    {
      "name": "011_01_03 Check that you can update only some attributes while others failed",
      "name": "011_01_03 Check that you can update only some attributes while unknown are ignored",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/011_01_03",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/011_01_03",
      "doc": "Check that you can update entity attributes",
      "doc": "Check that you can update entity attributes",
      "tags": [
      "tags": [
@@ -52,15 +52,13 @@
      "setup": "Initialize Test",
      "setup": "Initialize Test",
      "teardown": "Delete Initial Entities",
      "teardown": "Delete Initial Entities",
      "template": "Update Attributes",
      "template": "Update Attributes",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Check Response Body Content and\n    Query Parameter: additional_ignored_path set to '${EMPTY}' and\n        Updated Entity set to ${entity} and\n        Response Status Code set to 207\n}",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Check Response Body Content and\n    Query Parameter: additional_ignored_path set to '${EMPTY}' and\n        Updated Entity set to ${entity} and\n        Response Status Code set to 204\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/entities/{id}'\n        method set to 'GET'\n        Request Retrieve Entity by Id and\n    Query Parameter: id set to '${entity_id}' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\n    Query Parameter: accept set to 'application/ld+json'\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/entities/{id}'\n        method set to 'GET'\n        Request Retrieve Entity by Id and\n    Query Parameter: id set to '${entity_id}' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\n    Query Parameter: accept set to 'application/ld+json'\n}",
      "http_verb": "GET",
      "http_verb": "GET",
      "endpoint": "entities/{id}"
      "endpoint": "entities/{id}"
    }
    }
  ],
  ],
  "permutations": [
  "permutations": [],
    "then"
  ],
  "robotpath": "ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes",
  "robotpath": "ContextInformation/Provision/EntityAttributes/UpdateEntityAttributes",
  "robotfile": "011_01"
  "robotfile": "011_01"
}
}
 No newline at end of file