{ "tp_id": "TP/NGSI-LD/CI/Cons/DISC/026_01", "test_objective": "Check that you can retrieve a list with a detailed representation of NGSI-LD attributes", "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.9", "config_id": "", "parent_release": "v1.3.1", "pics_selection": "PICS_5_7_9", "keywords": [], "teardown": "None", "initial_condition": "with {\n the SUT in the \"initial state\"\n}", "test_cases": [ { "name": "026_01_01 WithoutJsonLdContext", "permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/026_01_01", "doc": "Check that you can retrieve a list with a detailed representation of NGSI-LD attributes", "tags": [ "5_7_9", "ed-attrs-details" ], "setup": "Setup Initial Entities", "teardown": "Delete Initial Entities", "template": "Retrieve Details Of Available Attributes", "then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Attributes with Response Status Code set to 200 and\n Retrieve Attributes with Response body containing an array of attributes\n * with the expected payload defined in the file 'types/expectations/attribute-026-01-01-expectation.json'\n * and response body set to '${response.json()}'\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/attributes'\n method set to 'GET'\n Retrieve attributes: and\n Query Parameter: context set to '${EMPTY}' and\n Query Parameter: details set to 'true'\n}", "http_verb": "GET", "endpoint": "attributes" }, { "name": "026_01_02 WithJsonLdContext", "permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/026_01_02", "doc": "Check that you can retrieve a list with a detailed representation of NGSI-LD attributes", "tags": [ "5_7_9", "ed-attrs-details" ], "setup": "Setup Initial Entities", "teardown": "Delete Initial Entities", "template": "Retrieve Details Of Available Attributes", "then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Attributes with Response Status Code set to 200 and\n Retrieve Attributes with Response body containing an array of attributes\n * with the expected payload defined in the file 'types/expectations/attribute-026-01-02-expectation.json'\n * and response body set to '${response.json()}'\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/attributes'\n method set to 'GET'\n Retrieve attributes: and\n Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld' and\n Query Parameter: details set to 'true'\n}", "http_verb": "GET", "endpoint": "attributes" } ], "permutations": [ "when", "then" ], "robotpath": "ContextInformation/Consumption/Discovery/RetrieveDetailsOfAvailableAttributes", "robotfile": "026_01" }