{ "tp_id": "TP/NGSI-LD/CS/CSR/033_10", "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", "pics_selection": "PICS_6_3_5", "keywords": [], "teardown": "None", "initial_condition": "with {\n the SUT in the \"initial state\"\n}", "test_cases": [ { "name": "033_10_01 Create a context source registration with a different data structure than CsourRegistration data type", "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_10_01", "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 containing:\n Response Header: Location containing ${registration_id} 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/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", "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_10_02", "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 containing:\n Response Header: Location containing ${registration_id} 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/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", "robotfile": "033_10" }