Skip to content
041_04.json 3.88 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CS/REGSUB/041_04",
  "test_objective": "Check that you cannot query context source registration subscriptions with invalid page and limit parameters",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.11.5",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_11_5",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "041_04_01 Invalid Limit",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/041_04_01",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot query context source registration subscriptions with invalid page and limit parameters",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_11_5",
        "csrsub-query"
      ],
      "setup": null,
      "teardown": null,
      "template": "Query Context Source Registration Subscriptions With Invalid Limit And Page Parameters",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceSubscriptions'\n        method set to 'GET'\n        Query Context Source Registration Subscriptions and\n    Query Parameter: limit set to '${-5}' and\n    Query Parameter: page set to '${2}'\n}",
      "http_verb": "GET",
      "endpoint": "csourceSubscriptions"
    },
    {
      "name": "041_04_02 Invalid Page",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/041_04_02",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot query context source registration subscriptions with invalid page and limit parameters",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_11_5",
        "csrsub-query"
      ],
      "setup": null,
      "teardown": null,
      "template": "Query Context Source Registration Subscriptions With Invalid Limit And Page Parameters",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceSubscriptions'\n        method set to 'GET'\n        Query Context Source Registration Subscriptions and\n    Query Parameter: limit set to '${2}' and\n    Query Parameter: page set to '${-3}'\n}",
      "http_verb": "GET",
      "endpoint": "csourceSubscriptions"
    },
    {
      "name": "041_04_03 Invalid Limit And Page",
      "permutation_tp_id": "TP/NGSI-LD/CS/REGSUB/041_04_03",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot query context source registration subscriptions with invalid page and limit parameters",
lopezaguilar's avatar
lopezaguilar committed
      "tags": [
        "5_11_5",
        "csrsub-query"
      ],
      "setup": null,
      "teardown": null,
      "template": "Query Context Source Registration Subscriptions With Invalid Limit And Page Parameters",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceSubscriptions'\n        method set to 'GET'\n        Query Context Source Registration Subscriptions and\n    Query Parameter: limit set to '${0}' and\n    Query Parameter: page set to '${0}'\n}",
      "http_verb": "GET",
      "endpoint": "csourceSubscriptions"
    }
  ],
  "permutations": [
    "when"
  ],
  "robotpath": "ContextSource/RegistrationSubscription/QueryContextSourceRegistrationSubscriptions",
  "robotfile": "041_04"
}