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
{
"tp_id": "TP/NGSI-LD/CI/SUB/046_16_01",
"test_objective": "If a subscription defines an entity type selection query, a notification shall be sent whenever an entity matches the query.",
"reference": "ETSI GS CIM 009 V1.5.1 [], clause 5.8.6",
"config_id": "",
"parent_release": "v1.5.1",
"clauses": [
"5.8.6"
],
"pics_selection": "",
"keywords": [
"Setup Initial Subscription",
"Before Test",
"After Test"
],
"teardown": "After Test",
"initial_condition": "with {\n the SUT containing an initial state\n}",
"test_cases": [
{
"name": "046_16_01 Check that a notification is sent with entity matching the entity type selection",
"permutation_tp_id": "TP/NGSI-LD/CI/SUB/046_16_01",
"doc": "If a subscription defines an entity type selection query, a notification shall be sent whenever an entity matches the query.",
"tags": [
"5_8_6",
"since_v1.5.1",
"sub-notification"
],
"setup": null,
"teardown": null,
"template": null,
"then": "then {\n the client at '${endpoint}' receives a valid Notification containing:\n Notification received After waiting '5' seconds and\n Notification received Notification data: '${notification}[subscriptionId]' equal to '${subscription_id}' and\n Notification received Notification data: '${notification}[data][0][id]' equal to '${entity_id}' and\n Notification received The dictionary `${notification}' should contain the key 'data' and\n Notification received The variable `${notification}[data]' should not be '${EMPTY}'\n}",
"when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'building-simple-attributes-sample.jsonld'\n}",
"http_verb": "POST",
"endpoint": "entities/"
}
],
"permutations": [],
"robotpath": "ContextInformation/Subscription/SubscriptionNotificationBehaviour",
"robotfile": "046_16_01"
}