Newer
Older
"test_objective": "Check that you cannot create a context source with invalid content",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 6.3.5",
"config_id": "",
"parent_release": "v1.3.1",
"clauses": [
"6.3.5"
],
"pics_selection": "",
lopezaguilar
committed
"initial_condition": "with {\n the SUT containing an initial state\n}",
lopezaguilar
committed
"name": "033_10_01 Create a context source registration with a different data structure than CSourceRegistration data type",
"doc": "Check that you cannot create a context source with invalid content",
"tags": [
"csr-create",
"6_3_5"
],
"setup": null,
"teardown": null,
"template": "Create Context Source With Invalid Content",
"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 400 and\n Create Context Source Registration With Return with Response Header: Location containing $${registration_id}\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: '${updated_payload}'\n}",
"http_verb": "POST",
"endpoint": "csourceRegistrations"
},
{
"name": "033_10_02 Create a context source registration with a date in the past",
"doc": "Check that you cannot create a context source with invalid content",
"tags": [
"csr-create",
"6_3_5"
],
"setup": null,
"teardown": null,
"template": "Create Context Source With Invalid Content",
"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 400 and\n Create Context Source Registration With Return with Response Header: Location containing $${registration_id}\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: '${updated_payload}'\n}",
"http_verb": "POST",
"endpoint": "csourceRegistrations"
}
],
"permutations": [],
"robotpath": "ContextSource/Registration/RegisterContextSource",