Commit 995aeb74 authored by thomas Bousselin's avatar thomas Bousselin
Browse files

fix: missing 033_01.json

parent 6faadc57
Loading
Loading
Loading
Loading
+87 −0
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/CS/CSR/033_01",
  "test_objective": "Check that one can create a context source registration with specific ID and expiration date",
  "reference": "ETSI GS CIM 009 V1.6.1 [], clause 5.9.2",
  "config_id": "",
  "parent_release": "v1.6.1",
  "clauses": [
    "5.9.2"
  ],
  "pics_selection": "",
  "keywords": [
    "Create Context Source Registration",
    "Delete Created Context Source Registrations"
  ],
  "teardown": "Delete Created Context Source Registrations",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
  "test_cases": [
    {
      "name": "033_01_01 Create Context Source Registration Without Mode And Operation",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_01",
      "doc": "Check that one can create a context source registration with specific ID and expiration date",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": "Create Context Source Registration",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Context Source Registration With Return with Response Status Code set to 201     and\n        Delete Context Source Registration With Return with Response Header: Location containing $${registration_id}     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations/{registration_id}'\n        method set to 'DELETE'\n        Create Context Source Registration with payload set to '${registration_payload}'\n}",
      "http_verb": "DELETE",
      "endpoint": "csourceRegistrations/{registration_id}"
    },
    {
      "name": "033_01_02 Create Context Source Registration With Non Default Mode And Operations",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_02",
      "doc": "Check that one can create a context source registration with specific ID and expiration date",
      "tags": [
        "5_9_2",
        "csr-create",
        "since_v1.6.1"
      ],
      "setup": null,
      "teardown": null,
      "template": "Create Context Source Registration",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Context Source Registration With Return with Response Status Code set to 201     and\n        Delete Context Source Registration With Return with Response Header: Location containing $${registration_id}     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations/{registration_id}'\n        method set to 'DELETE'\n        Create Context Source Registration with payload set to '${registration_payload}'\n}",
      "http_verb": "DELETE",
      "endpoint": "csourceRegistrations/{registration_id}"
    },
    {
      "name": "033_01_03 Create Context Source Registration With Location",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_03",
      "doc": "Check that one can create a context source registration with specific ID and expiration date",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": "Create Context Source Registration",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Context Source Registration With Return with Response Status Code set to 201     and\n        Delete Context Source Registration With Return with Response Header: Location containing $${registration_id}     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations/{registration_id}'\n        method set to 'DELETE'\n        Create Context Source Registration with payload set to '${registration_payload}'\n}",
      "http_verb": "DELETE",
      "endpoint": "csourceRegistrations/{registration_id}"
    },
    {
      "name": "033_01_04 Create Context Source Registration With Specific Date Expiration Date",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_04",
      "doc": "Check that one can create a context source registration with specific ID and expiration date",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": "Create Context Source Registration",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Context Source Registration With Return with Response Status Code set to 201     and\n        Delete Context Source Registration With Return with Response Header: Location containing $${registration_id}     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations/{registration_id}'\n        method set to 'DELETE'\n        Create Context Source Registration with payload set to '${registration_payload}'\n}",
      "http_verb": "DELETE",
      "endpoint": "csourceRegistrations/{registration_id}"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/Registration/RegisterContextSource",
  "robotfile": "033_01"
}
 No newline at end of file
+0 −37
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/CS/CSR/033_01_01",
  "test_objective": "Check that you can create a context source registration with specific ID and expiration date",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.9.2",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.9.2"
  ],
  "pics_selection": "",
  "keywords": [
    "Delete Created Context Source Registrations"
  ],
  "teardown": "Delete Created Context Source Registrations",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
  "test_cases": [
    {
      "name": "033_01_01 Create Context Source Registration With Specific Date Expiration Date",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_01",
      "doc": "Check that you can create a context source registration with specific ID and expiration date",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Create Context Source Registration With Return with Response Status Code set to 201     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations'\n        method set to 'POST'\n        Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${registration_payload}'\n}",
      "http_verb": "POST",
      "endpoint": "csourceRegistrations"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/Registration/RegisterContextSource",
  "robotfile": "033_01_01"
}
 No newline at end of file
+0 −37
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/CS/CSR/033_01_02",
  "test_objective": "Check that you can create a context source registration that never expires",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.9.2",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.9.2"
  ],
  "pics_selection": "",
  "keywords": [
    "Delete Created Context Source Registrations"
  ],
  "teardown": "Delete Created Context Source Registrations",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
  "test_cases": [
    {
      "name": "033_01_02 Create Context Source Registration That Never Expires",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_02",
      "doc": "Check that you can create a context source registration that never expires",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Create Context Source Registration With Return with Response Status Code set to 201     and\n        Create Context Source Registration With Return with Response Header: Location containing $${registration_id}     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations'\n        method set to 'POST'\n        Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${registration_payload}'\n}",
      "http_verb": "POST",
      "endpoint": "csourceRegistrations"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/Registration/RegisterContextSource",
  "robotfile": "033_01_02"
}
 No newline at end of file
+0 −37
Original line number Diff line number Diff line
{
  "tp_id": "TP/NGSI-LD/CS/CSR/033_01_03",
  "test_objective": "Check that you can create a context source registration without specifying an ID",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.9.2",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.9.2"
  ],
  "pics_selection": "",
  "keywords": [
    "Delete Created Context Source Registrations"
  ],
  "teardown": "Delete Created Context Source Registrations",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
  "test_cases": [
    {
      "name": "033_01_03 Create Context Source Registration Without Specifying an ID",
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_01_03",
      "doc": "Check that you can create a context source registration without specifying an ID",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Create Context Source Registration With Return with Response Status Code set to 201     and\n        Retrieve Context Source Registration with Check Created Resource Set To and\n            Query Parameter: 'ignored_keys' set to '${None}' list of keys\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations'\n        method set to 'POST'\n        Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${payload}'\n}",
      "http_verb": "POST",
      "endpoint": "csourceRegistrations"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/Registration/RegisterContextSource",
  "robotfile": "033_01_03"
}
 No newline at end of file
+4 −18
Original line number Diff line number Diff line
@@ -42,24 +42,10 @@ class TestCSRegistration(TestCase):

            assert False, f'They are some difference between the expected and obtained dictionaries: \n {result}'

    def test_033_01_01(self):
        robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_01.robot'
        expected_value = f'{self.folder_test_suites}/doc/files/ContextSource/Registration/033_01_01.json'
        difference_file = f'{self.folder_test_suites}/doc/results/out_033_01_01.json'

        self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)

    def test_033_01_02(self):
        robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_02.robot'
        expected_value = f'{self.folder_test_suites}/doc/files/ContextSource/Registration/033_01_02.json'
        difference_file = f'{self.folder_test_suites}/doc/results/out_033_01_02.json'

        self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)

    def test_033_01_03(self):
        robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01_03.robot'
        expected_value = f'{self.folder_test_suites}/doc/files/ContextSource/Registration/033_01_03.json'
        difference_file = f'{self.folder_test_suites}/doc/results/out_033_01_03.json'
    def test_033_01(self):
        robot_file = f'{self.folder_test_suites}/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01.robot'
        expected_value = f'{self.folder_test_suites}/doc/files/ContextSource/Registration/033_01.json'
        difference_file = f'{self.folder_test_suites}/doc/results/out_033_01.json'

        self.common_function(robot_file=robot_file, expected_value=expected_value, difference_file=difference_file)