Skip to content

Commit 740b218

Browse files
jmartinez-silabsrestyled-commitsrcasallas-silabs
authored
[Groupcast]Update The Yaml tests that are not automated and are disabled from CI (project-chip#43676)
* Update The Yaml tests that are not automated and, are disabled from CI and only describe the steps and validation textually with examples * Restyled by prettier-yaml * Addres comment * Apply suggestions from code review Co-authored-by: Ricardo Casallas <77841255+rcasallas-silabs@users.noreply.github.com> * Restyled by prettier-yaml --------- Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Ricardo Casallas <77841255+rcasallas-silabs@users.noreply.github.com>
1 parent 8a631a1 commit 740b218

6 files changed

Lines changed: 207 additions & 89 deletions

File tree

src/app/tests/suites/certification/Test_TC_BIND_2_2.yaml

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,23 @@ tests:
7676
disabled: true
7777

7878
- label:
79-
"Step 5: DUT generates fabric-unique GroupID, GroupName, random key,
80-
EpochKey0 and GroupKeySetID."
79+
"Step 5: If the Groupcast cluster is enabled on the RootNode endpoint,
80+
skip to step 9a. Otherwise, DUT generates random key, EpochKey0."
8181
verification: |
8282
As Admin generates it is not necessary to verify
8383
disabled: true
8484

8585
- label:
86-
"Step 6: DUT sends KeySetWrite command to GroupKeyManagement cluster
87-
to TH2 on Endpoint 0."
86+
"Step 6: DUT sends KeySetWrite command to GroupKeyManagement cluster,
87+
to TH2 on Endpoint 0 with GroupKeySetID 1, and the randomly generated
88+
key and EpochKey0."
8889
PICS: GRPKEY.C.C00.Tx
8990
verification: |
9091
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
9192
92-
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42,
93+
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 1,
9394
"groupKeySecurityPolicy": 0, "epochKey0":
94-
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1":
95-
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2":
96-
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002,
95+
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,
9796
"groupKeyMulticastPolicy": 0}' 74 0
9897
9998
On TH1(Chip-tool), Verify the success response for KeySetWrite
@@ -131,11 +130,9 @@ tests:
131130
132131
Run this command for lighting app in chip-tool:
133132
134-
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42,
133+
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 1,
135134
"groupKeySecurityPolicy": 0, "epochKey0":
136-
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1":
137-
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2":
138-
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002,
135+
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,
139136
"groupKeyMulticastPolicy": 0}' 2 0
140137
141138
On TH1(Chip-tool), Verify the success response for KeySetWrite
@@ -174,13 +171,13 @@ tests:
174171
disabled: true
175172

176173
- label:
177-
"Step 7: DUT binds GroupId with GroupKeySetID in the GroupKeyMap
178-
attribute list on GroupKeyManagement cluster to TH2 on Endpoint 0"
174+
"Step 7: DUT binds GroupId 1 with GroupKeySetID 1, in the GroupKeyMap
175+
attribute on GroupKeyManagement cluster, to TH2 on Endpoint 0"
179176
PICS: GRPKEY.C.A0000
180177
verification: |
181178
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
182179
183-
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 74 0
180+
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 1, "fabricIndex": 1}]' 74 0
184181
185182
On TH1(Chip-tool), Verify the success response for GroupKeySetID
186183
@@ -193,7 +190,7 @@ tests:
193190
194191
Run this cmmd for lighting app in chip-tool:
195192
196-
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 2 0
193+
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 1, "fabricIndex": 1}]' 2 0
197194
198195
On TH1(Chip-tool), Verify the success response for GroupKeySetID
199196
@@ -237,9 +234,9 @@ tests:
237234
238235
./chip-tool groupsettings add-group grp1 0x0001
239236
240-
./chip-tool groupsettings add-keysets 0x0042 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
237+
./chip-tool groupsettings add-keysets 0x0001 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
241238
242-
./chip-tool groupsettings bind-keyset 0x0001 0x0042
239+
./chip-tool groupsettings bind-keyset 0x0001 0x0001
243240
244241
./chip-tool groupsettings show-groups
245242
@@ -249,12 +246,28 @@ tests:
249246
| Group Id | KeySet Id | Group Name |
250247
| 0x101 0x1a1 Group #1 |
251248
| 0x102 0x1a2 Group #2 |
252-
| 0x1 0x42 grp1 |
249+
| 0x1 0x1 grp1 |
253250
+-------------------------------------------------------------------------------------+"
254251
disabled: true
255252

256253
- label:
257-
"Step 9: TH1 writes Binding entry into DUT with Entry 1: Group = The
254+
"Step 9a: If the Groupcast cluster is NOT enabled on the RootNode
255+
endpoint, skip to step 10. Otherwise, TH1 reads the DUT Groupcast
256+
featuremap attribute."
257+
verification: |
258+
TH1 receives the featuremap attribute and verify that Sender feature (bit 1) is set.
259+
disabled: true
260+
261+
- label:
262+
"Step 9b: DUT sends Groupcast JoinGroup command with GroupID=1,
263+
Endpoints=[EP1], KeySetID=1, Key=(randomly generated) key to TH2
264+
endpoint 0."
265+
verification: |
266+
TH2 responds with SUCCESS
267+
disabled: true
268+
269+
- label:
270+
"Step 10: TH1 writes Binding entry into DUT with Entry 1: Group = The
258271
Group ID in the AddGroup command sent from DUT to TH2"
259272
verification: |
260273
Before write the binding entries run the ACL Commands:
@@ -293,14 +306,14 @@ tests:
293306
disabled: true
294307

295308
- label:
296-
"Step 10a: DUT is triggered to send Multicast message On command to
297-
its binding entries"
309+
"Step 11a: DUT is triggered to send Multicast On command to its
310+
binding entries"
298311
PICS: OO.C.C01.Tx
299312
verification: |
300313
Press button no.2 on [ nRF52840-DK ]thread board
301314
disabled: true
302315

303-
- label: "Step 10b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
316+
- label: "Step 11b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
304317
PICS: OO.C.C01.Tx
305318
verification: |
306319
Run this cmmd for lighting app in chip-tool:
@@ -313,7 +326,7 @@ tests:
313326
[1657717900.832890][4381:4386] CHIP:TOO: OnOff: TRUE
314327
disabled: true
315328

316-
- label: "Step 11: TH1 removes all the binding entries from DUT"
329+
- label: "Step 12: TH1 removes all the binding entries from DUT"
317330
verification: |
318331
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
319332
@@ -328,14 +341,14 @@ tests:
328341
disabled: true
329342

330343
- label:
331-
"Step 12a: DUT is triggered to send Multicast message off command to
344+
"Step 13a: DUT is triggered to send Multicast message off command to
332345
its binding entries"
333346
PICS: OO.C.C00.Tx
334347
verification: |
335348
Press button no.2 on [ nRF52840-DK ] thread board
336349
disabled: true
337350

338-
- label: "Step 12b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
351+
- label: "Step 13b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
339352
PICS: OO.C.C01.Tx
340353
verification: |
341354
Run this command for lighting app in chip-tool:

src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml

Lines changed: 66 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,22 @@ tests:
7676
disabled: true
7777

7878
- label:
79-
"Step 5: TH1 generates fabric-unique GroupID, GroupName, random key,
80-
EpochKey0 and GroupKeySetID."
79+
'Step 5: If the Groupcast cluster is enabled on the RootNode endpoint,
80+
skip to step 9a. Otherwise, TH1 generates a random key (Key1) and
81+
EpochKey0 and uses GroupID 1, GroupName "", and GroupKeySetID 0x01a1.'
8182
verification: |
8283
As Admin generates it is not required to verify
8384
disabled: true
8485

8586
- label:
8687
"Step 6: TH1 sends KeySetWrite command to GroupKeyManagement cluster
87-
to TH2 on Endpoint 0."
88+
to TH2 on Endpoint 0 with GroupKeySetID 0x01a1, Key1, and EpochKey0."
8889
verification: |
8990
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
9091
91-
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42,
92+
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 417,
9293
"groupKeySecurityPolicy": 0, "epochKey0":
93-
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1":
94-
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2":
95-
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002,
94+
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,
9695
"groupKeyMulticastPolicy": 0}' 74 0
9796
9897
On TH1(Chip-tool), Verify the success response for KeySetWrite
@@ -129,20 +128,21 @@ tests:
129128
130129
Run this command for lighting app in chip-tool:
131130
132-
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 42, "groupKeySecurityPolicy": 0, "epochKey0": "d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": "d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2": "d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002, "groupKeyMulticastPolicy": 0 }' 2 0
131+
./chip-tool groupkeymanagement key-set-write '{"groupKeySetID": 417, "groupKeySecurityPolicy": 0, "epochKey0": "d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1": "d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001, "groupKeyMulticastPolicy": 0 }' 2 0
133132
134133
On TH1, Verify the success response for KeySetWrite
135134
136135
[1657719041.075743][4541:4546] CHIP:DMG: status = 0x00 (SUCCESS),
137136
disabled: true
138137

139138
- label:
140-
"Step 7: TH1 binds GroupId with GroupKeySetID in the GroupKeyMap
141-
attribute list on GroupKeyManagement cluster to TH2 on Endpoint 0"
139+
"Step 7: TH1 binds GroupId 1 with GroupKeySetID 0x01a1 in the
140+
GroupKeyMap attribute list on GroupKeyManagement cluster to TH2 on
141+
Endpoint 0"
142142
verification: |
143143
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
144144
145-
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 74 0
145+
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 417, "fabricIndex": 1}]' 74 0
146146
147147
On TH1(Chip-tool), Verify the success response for GroupKeySetID
148148
@@ -153,7 +153,7 @@ tests:
153153
[1657719130.464342][4557:4562] CHIP:DMG:
154154
155155
Run this command for lighting app in chip-tool:
156-
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]' 2 0
156+
./chip-tool groupkeymanagement write group-key-map '[{"groupId": 1, "groupKeySetID": 417, "fabricIndex": 1}]' 2 0
157157
158158
On TH1(Chip-tool), Verify the success response for GroupKeySetID
159159
@@ -165,8 +165,8 @@ tests:
165165
disabled: true
166166

167167
- label:
168-
"Step 8: TH1 sends AddGroup( Group Name and Group-ID) Command to TH2
169-
on Endpoint 1."
168+
"Step 8: TH1 sends AddGroup with GroupID 1 (Group Name, Group-ID)
169+
Command to TH2 on Endpoint 1."
170170
verification: |
171171
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
172172
@@ -198,24 +198,37 @@ tests:
198198
199199
./chip-tool groupsettings add-group grp1 0x0001
200200
201-
./chip-tool groupsettings add-keysets 0x0042 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
201+
./chip-tool groupsettings add-keysets 0x01a1 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf
202202
203-
./chip-tool groupsettings bind-keyset 0x0001 0x0042
203+
./chip-tool groupsettings bind-keyset 0x0001 0x01a1
204204
205205
./chip-tool groupsettings show-groups
206206
207207
+-------------------------------------------------------------------------------------+
208208
| Available Groups : |
209209
+-------------------------------------------------------------------------------------+
210210
| Group Id | KeySet Id | Group Name |
211-
| 0x101 0x1a1 Group #1 |
212-
| 0x102 0x1a2 Group #2 |
213-
| 0x1 0x42 grp1 |
211+
| 0x1 0x1a1 Group #1 |
214212
+-------------------------------------------------------------------------------------+"
215213
disabled: true
216214

217215
- label:
218-
"Step 9: TH1 writes Binding entry into DUT with Entry 1: Group = The
216+
"Step 9a: If the Groupcast cluster is NOT enabled on the RootNode
217+
endpoint, skip to step 10. Otherwise, TH1 reads the DUT Groupcast
218+
featuremap attribute."
219+
verification: |
220+
221+
disabled: true
222+
223+
- label:
224+
"Step 9b: TH1 sends Groupcast JoinGroup command with GroupID=1,
225+
Endpoints=[EP1], KeySetID=0x01a1, Key=Key1 to TH2 endpoint 0."
226+
verification: |
227+
228+
disabled: true
229+
230+
- label:
231+
"Step 10: TH1 writes Binding entry into DUT with Entry 1: Group = The
219232
Group ID in the AddGroup command sent from TH1 to TH2"
220233
verification: |
221234
Before write the binding entries run the ACL Commands:
@@ -253,20 +266,47 @@ tests:
253266
[1657719251.763440][4597:4602] CHIP:DMG: },
254267
disabled: true
255268

256-
- label: "Step 10: TH1 sets up group settings on DUT"
269+
- label:
270+
"Step 11: If the Groupcast cluster is enabled on the RootNode
271+
endpoint, skip this step. Otherwise, TH1 sets up group settings on DUT"
257272
verification: |
258273
259274
disabled: true
260275

261276
- label:
262-
"Step 11a: DUT is triggered to send Multicast message On command to
277+
"Step 12: If the Groupcast cluster is NOT enabled on the RootNode
278+
endpoint, skip this step. Otherwise, TH1 sends Groupcast JoinGroup
279+
command with GroupID=1, Endpoints=[], KeySetID=0x01a1, Key=Key1 to DUT
280+
endpoint 0."
281+
verification: |
282+
283+
disabled: true
284+
285+
- label: "Step 13a: TH1 sends a unicast Off command to TH2 (Endpoint 1)"
286+
verification: |
287+
Example:
288+
289+
./chip-tool onoff off 2 1
290+
disabled: true
291+
292+
- label: "Step 13b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
293+
verification: |
294+
Run this command for lighting app in chip-tool:
295+
296+
./chip-tool onoff read on-off 2 1
297+
298+
On TH1(Chip-tool), verify that OnOff value is OFF (FALSE).
299+
disabled: true
300+
301+
- label:
302+
"Step 14a: DUT is triggered to send Multicast message On command to
263303
its binding entries"
264304
PICS: OO.C.C01.Tx
265305
verification: |
266306
Press button no.2 on nrf52840 DK thread board
267307
disabled: true
268308

269-
- label: "Step 11b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
309+
- label: "Step 14b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
270310
PICS: OO.C.C01.Tx
271311
verification: |
272312
Run this command for lighting app in chip-tool:
@@ -279,7 +319,7 @@ tests:
279319
[1657719363.799380][4615:4620] CHIP:TOO: OnOff: TRUE
280320
disabled: true
281321

282-
- label: "Step 12: TH1 removes all the binding entries from DUT"
322+
- label: "Step 15: TH1 removes all the binding entries from DUT"
283323
verification: |
284324
Run this command for [ nRF52840-DK ]Thread device in chip-tool:
285325
@@ -294,14 +334,14 @@ tests:
294334
disabled: true
295335

296336
- label:
297-
"Step 13a: DUT is triggered to send Multicast message off command to
337+
"Step 16a: DUT is triggered to send Multicast message off command to
298338
its binding entries"
299339
PICS: OO.C.C00.Tx
300340
verification: |
301341
Press button no.2 on nrf52840 DK thread board
302342
disabled: true
303343

304-
- label: "Step 13b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
344+
- label: "Step 16b: TH1 reads OnOff attribute from TH2 (Endpoint 1)"
305345
PICS: OO.C.C01.Tx
306346
verification: |
307347
Run this command for lighting app in chip-tool:

0 commit comments

Comments
 (0)