Skip to content
044_02.json 1.86 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CB/HTTP/044_02",
  "test_objective": "Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.4",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "6.3.4"
  ],
  "pics_selection": "",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT containing an initial Subscription ${subscription} \n        with an id set to ${subscription_id} \n}",
  "test_cases": [
    {
lopezaguilar's avatar
lopezaguilar committed
      "name": "044_02_01 Endpoint /subscriptions/{subscriptionId}",
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/044_02_01",
      "doc": "Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
      "tags": [
        "6_3_4",
lopezaguilar's avatar
lopezaguilar committed
        "sub-update"
lopezaguilar's avatar
lopezaguilar committed
      "setup": "Create Initial Subscription",
      "teardown": "Delete Initial Subscription",
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operation:\n        Update Subscription with Response Status Code set to 204\n}",
lopezaguilar's avatar
lopezaguilar committed
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n        method set to 'PATCH'\n        Request Update Subscription and \nHeader['Link'] contain the context 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\nHeader['Content-Type'] set to 'application/merge-patch+json' and\nPayload defined in file 'subscriptions/fragments/subscription-update-sample.json'\n}",
      "http_verb": "PATCH",
      "endpoint": "subscriptions/{subscription_id}"
lopezaguilar's avatar
lopezaguilar committed
  "permutations": [],
  "robotpath": "CommonBehaviours/CommonResponses/VerifyMergePatchJson",
  "robotfile": "044_02"