Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"tp_id": "TP/NGSI-LD/CI/Cons/TE/020_11",
"test_objective": "Check that you can retrieve the temporal evolution of an entity with the aggregated temporal representation",
"reference": "ETSI GS CIM 009 V1.4.1 [], clauses 4.5.19, 5.7.3",
"config_id": "",
"parent_release": "v1.4.1",
"clauses": [
"4.5.19",
"5.7.3"
],
"pics_selection": "",
"keywords": [
"Retrieve the temporal evolution of an entity with the aggregated temporal representation",
"Create Temporal Entity",
"Delete Initial Temporal Entity"
],
"teardown": "Delete Initial Temporal Entity",
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "020_11_01 One aggregate method aggregated by one hour duration",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/020_11_01",
"doc": "Check that you can retrieve the temporal evolution of an entity with the aggregated temporal representation",
"tags": [
"4_5_19",
"5_7_3",
"since_v1.4.1",
"te-retrieve"
],
"setup": null,
"teardown": null,
"template": "Retrieve the temporal evolution of an entity with the aggregated temporal representation",
"then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Temporal Representation Of Entity with Response Status Code set to 200 and\n Retrieve Temporal Representation Of Entity with Response Body containing EntityTemporal element containing attribute instances in the time range specified by the NGSI-LD temporal query:\n * the payload is defined in the file set to 'vehicle-temporal-representation-020-11-01-expectation.json'\n * the id was changed to '${temporal_entity_representation_id}'\n * response body to be checked set to '${response.json()}'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_representation_id}'\n method set to 'GET'\n Retrieve Temporal Representation of Entity and\n Query Parameter: id set to '${temporal_entity_representation_id}' and\n Query Parameter: attrs set to '${EMPTY}' and\n Query Parameter: options set to '${options}' and\n Query Parameter: aggrMethods set to 'avg' and\n Query Parameter: aggrPeriodDuration set to 'PT1H' 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": "temporal/entities/{temporal_entity_representation_id}"
},
{
"name": "020_11_02 One aggregate method aggregated by one hour duration asking for one attribute",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/020_11_02",
"doc": "Check that you can retrieve the temporal evolution of an entity with the aggregated temporal representation",
"tags": [
"4_5_19",
"5_7_3",
"since_v1.4.1",
"te-retrieve"
],
"setup": null,
"teardown": null,
"template": "Retrieve the temporal evolution of an entity with the aggregated temporal representation",
"then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Temporal Representation Of Entity with Response Status Code set to 200 and\n Retrieve Temporal Representation Of Entity with Response Body containing EntityTemporal element containing attribute instances in the time range specified by the NGSI-LD temporal query:\n * the payload is defined in the file set to 'vehicle-temporal-representation-020-11-02-expectation.json'\n * the id was changed to '${temporal_entity_representation_id}'\n * response body to be checked set to '${response.json()}'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_representation_id}'\n method set to 'GET'\n Retrieve Temporal Representation of Entity and\n Query Parameter: id set to '${temporal_entity_representation_id}' and\n Query Parameter: attrs set to 'fuelLevel' and\n Query Parameter: options set to '${options}' and\n Query Parameter: aggrMethods set to 'avg' and\n Query Parameter: aggrPeriodDuration set to 'PT1H' 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": "temporal/entities/{temporal_entity_representation_id}"
},
{
"name": "020_11_03 Multiple aggregate methods aggregated by one hour duration",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/020_11_03",
"doc": "Check that you can retrieve the temporal evolution of an entity with the aggregated temporal representation",
"tags": [
"4_5_19",
"5_7_3",
"since_v1.4.1",
"te-retrieve"
],
"setup": null,
"teardown": null,
"template": "Retrieve the temporal evolution of an entity with the aggregated temporal representation",
"then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Temporal Representation Of Entity with Response Status Code set to 200 and\n Retrieve Temporal Representation Of Entity with Response Body containing EntityTemporal element containing attribute instances in the time range specified by the NGSI-LD temporal query:\n * the payload is defined in the file set to 'vehicle-temporal-representation-020-11-03-expectation.json'\n * the id was changed to '${temporal_entity_representation_id}'\n * response body to be checked set to '${response.json()}'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_representation_id}'\n method set to 'GET'\n Retrieve Temporal Representation of Entity and\n Query Parameter: id set to '${temporal_entity_representation_id}' and\n Query Parameter: attrs set to '${EMPTY}' and\n Query Parameter: options set to '${options}' and\n Query Parameter: aggrMethods set to 'avg,max' and\n Query Parameter: aggrPeriodDuration set to 'PT1H' 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": "temporal/entities/{temporal_entity_representation_id}"
},
{
"name": "020_11_04 Multiple aggregate methods aggregated by one day duration",
"permutation_tp_id": "TP/NGSI-LD/CI/Cons/TE/020_11_04",
"doc": "Check that you can retrieve the temporal evolution of an entity with the aggregated temporal representation",
"tags": [
"4_5_19",
"5_7_3",
"since_v1.4.1",
"te-retrieve"
],
"setup": null,
"teardown": null,
"template": "Retrieve the temporal evolution of an entity with the aggregated temporal representation",
"then": "then {\n the SUT sends a valid Response for the operations:\n Retrieve Temporal Representation Of Entity with Response Status Code set to 200 and\n Retrieve Temporal Representation Of Entity with Response Body containing EntityTemporal element containing attribute instances in the time range specified by the NGSI-LD temporal query:\n * the payload is defined in the file set to 'vehicle-temporal-representation-020-11-04-expectation.json'\n * the id was changed to '${temporal_entity_representation_id}'\n * response body to be checked set to '${response.json()}'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_representation_id}'\n method set to 'GET'\n Retrieve Temporal Representation of Entity and\n Query Parameter: id set to '${temporal_entity_representation_id}' and\n Query Parameter: attrs set to '${EMPTY}' and\n Query Parameter: options set to '${options}' and\n Query Parameter: aggrMethods set to 'min,max' and\n Query Parameter: aggrPeriodDuration set to 'P1D' 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": "temporal/entities/{temporal_entity_representation_id}"
}
],
"permutations": [
"then",
"when"
],
"robotpath": "ContextInformation/Consumption/TemporalEntity/RetrieveTemporalEvolutionOfEntity",
"robotfile": "020_11"
}