Commit 668d7cde authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

Fixed some documentation generation error and generated all documentation for dist-ops

parent a544eae6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ class GenerateRobotData:

        index = test_case.find(response_to_check)
        aux = test_case[index:].split('\n')
        aux = [x for x in aux if x != '']
        aux = [x for x in aux if x != '' and x != '    ']

        params = list()
        request = list()
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class ParseApiUtilsFile:

                if match:
                    verb = match.groups()[0]
            elif 'url' in item:
            if 'url' in item:
                url, query_param = self.get_url_request(url=item)

        return verb, url, query_param
+38 −0
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/063_01_Inc",
  "test_objective": "Verify that, when one has an inclusive registration on a Context Broker and an entity only on a Context Source, if one retrieves entity from the Context Broker the request gets forwarded to the Context Source correctly",
  "reference": "ETSI GS CIM 009 V1.6.1 [], clause 5.7.1",
  "config_id": "",
  "parent_release": "v1.6.1",
  "clauses": [
    "5.7.1"
  ],
  "pics_selection": "",
  "keywords": [
    "Setup Entity On Remote And Registration",
    "Delete Created Entity And Registration"
  ],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT containing an initial Entity ${entity} on the Context Source\n        with an id set to ${entity_id}\n        and payload set to ${entity_payload_filename}\n    and the SUT containing a Context Source Registration \n        with id equal to ${registration_id}\n        and payload set to ${registration_payload_file_path}\n}",
  "test_cases": [
    {
      "name": "063_01_inc Retrieve entity on a Context Source from the Context Broker",
      "permutation_tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/063_01_inc",
      "doc": "Check that if one retrieves entity living on a Context Source from a Context Broker, entity gets returned",
      "tags": [
        "5_7_1",
        "additive-inclusive",
        "dist-ops",
        "since_v1.6.1"
      ],
      "setup": "Setup Entity On Remote And Registration",
      "teardown": "Delete Created Entity And Registration",
      "template": null,
      "http_verb": "GET",
      "endpoint": "entities/{id}"
    }
  ],
  "permutations": [],
  "robotpath": "DistributedOperations/Consumption/Entity/RetrieveEntity",
  "robotfile": "063_01_inc"
}
 No newline at end of file
+38 −0
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/063_02_Inc",
  "test_objective": "Verify that, when one has an inclusive registration on a Context Broker and an entity only on a Context Source, if one retrieves entity from the Context Broker with local flag entity not found error is raised",
  "reference": "ETSI GS CIM 009 V1.6.1 [], clause 5.7.1",
  "config_id": "",
  "parent_release": "v1.6.1",
  "clauses": [
    "5.7.1"
  ],
  "pics_selection": "",
  "keywords": [
    "Setup Entity On Remote And Registration",
    "Delete Created Entity And Registration"
  ],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT containing an initial Entity ${entity} on the Context Source\n        with an id set to ${entity_id}\n        and payload set to ${entity_payload_filename}\n    and the SUT containing a Context Source Registration \n        with id equal to ${registration_id}\n        and payload set to ${registration_payload_file_path}\n}",
  "test_cases": [
    {
      "name": "063_02_inc Retrieve entity on a Context Source from the Context Broker with local flag",
      "permutation_tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/063_02_inc",
      "doc": "Check that if one retrieves entity living on a Context Source from a Context Broker with local flag, entity not found error is raised",
      "tags": [
        "5_7_1",
        "additive-inclusive",
        "dist-ops",
        "since_v1.6.1"
      ],
      "setup": "Setup Entity On Remote And Registration",
      "teardown": "Delete Created Entity And Registration",
      "template": null,
      "http_verb": "GET",
      "endpoint": "entities/{id}"
    }
  ],
  "permutations": [],
  "robotpath": "DistributedOperations/Consumption/Entity/RetrieveEntity",
  "robotfile": "063_02_inc"
}
 No newline at end of file
+38 −0
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/064_01_01_Inc",
  "test_objective": "Verify that, when one has an inclusive registration on a Context Broker and an entity only on a Context Source, if one queries the Context Broker the query gets forwarded to the Context Source correctly",
  "reference": "ETSI GS CIM 009 V1.6.1 [], clause 5.7.2",
  "config_id": "",
  "parent_release": "v1.6.1",
  "clauses": [
    "5.7.2"
  ],
  "pics_selection": "",
  "keywords": [
    "Setup Entity On Remote And Registration",
    "Delete Created Entity And Registration"
  ],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT containing an initial Entity ${entity} on the Context Source\n        with an id set to ${entity_id}\n        and payload set to ${entity_payload_filename}\n    and the SUT containing a Context Source Registration \n        with id equal to ${registration_id}\n        and payload set to ${registration_payload_file_path}\n}",
  "test_cases": [
    {
      "name": "064_01_01_inc Query The Context Broker With Type",
      "permutation_tp_id": "TP/NGSI-LD/DistributedOperations/Cons/E/064_01_01_inc",
      "doc": "Check that if one queries the Context Broker for type, entity with matching type on a Context Source gets returned",
      "tags": [
        "5_7_2",
        "additive-inclusive",
        "dist-ops",
        "since_v1.6.1"
      ],
      "setup": "Setup Entity On Remote And Registration",
      "teardown": "Delete Created Entity And Registration",
      "template": null,
      "http_verb": "GET",
      "endpoint": "entities/"
    }
  ],
  "permutations": [],
  "robotpath": "DistributedOperations/Consumption/Entity/QueryEntities",
  "robotfile": "064_01_01_inc"
}
 No newline at end of file
Loading