Newer
Older
"tp_id": "TP/NGSI-LD/CI/Cons/DISC/025_01",
"test_objective": "Check that you can retrieve a list of NGSI-LD attributes",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.7.8",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_7_8",
"keywords": [],
"teardown": "None",
"initial_condition": "with {\n the SUT in the \"initial state\"\n}",
"test_cases": [
{
"name": "025_01_01 WithoutJsonLdContext",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/025_01_01",
"doc": "Check that you can retrieve a list of NGSI-LD attributes",
"tags": [
"5_7_8",
"ed-attrs"
],
"setup": "Setup Initial Entities",
"teardown": "Delete Initial Entities",
"template": "Retrieve 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 Attribute List element\n * with filename set to 'types/expectations/attribute-list-025-01-01-expectation.json'\n * response 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}'\n}",
"http_verb": "GET",
"endpoint": "attributes"
},
{
"name": "025_01_02 WithJsonLdContext",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/DISC/025_01_02",
"doc": "Check that you can retrieve a list of NGSI-LD attributes",
"tags": [
"5_7_8",
"ed-attrs"
],
"setup": "Setup Initial Entities",
"teardown": "Delete Initial Entities",
"template": "Retrieve 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 Attribute List element\n * with filename set to 'types/expectations/attribute-list-025-01-02-expectation.json'\n * response 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'\n}",
"http_verb": "GET",
"endpoint": "attributes"
}
],
"permutations": [
"then",
"when"
],
"robotpath": "ContextInformation/Consumption/Discovery/RetrieveAvailableAttributes",
"robotfile": "025_01"
}