Skip to content

Commit 9d1aabd

Browse files
Test added sep2 (#22370)
* Added Updated Scripts * Added Auto genearted Files * Restyled by clang-format * Restyled by prettier-yaml Co-authored-by: Restyled.io <[email protected]>
1 parent 05172d2 commit 9d1aabd

29 files changed

+348
-300
lines changed

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

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ PICS:
3030
- label: "Does the device support manufacturing date"
3131
id: MANF_DATE
3232

33-
- label: "Does the device support part number"
34-
id: PART_NUM
35-
3633
- label: "Does the device support Intermediate CA Certificate"
3734
id: DM_ICACERT
3835

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ tests:
6464
6565
6666
67-
./chip-tool actions read endpoint-list 1 1
67+
./chip-tool actions read endpoint-lists 1 1
6868
6969
Verify read command is received on TH(all-clusters-app
7070
)
@@ -157,7 +157,7 @@ tests:
157157
[1658393025.603258][13481:13486] CHIP:EM: Sending Standalone Ack for MessageCounter:114510707 on exchange 23501i
158158
159159
160-
./chip-tool bridgedactions read action-list 1 1
160+
./chip-tool actions read action-list 1 1
161161
162162
Verify read command is received on TH(all-clusters-minimal-app) Log
163163
@@ -184,7 +184,7 @@ tests:
184184
185185
186186
187-
./chip-tool bridgedactions read endpoint-list 1 1
187+
./chip-tool actions read endpoint-lists 1 1
188188
189189
Verify read command is received on TH(all-clusters-minimal-app)
190190

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

+47-40
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,49 @@ tests:
3131

3232
- label:
3333
"Preparation: TH as server exposes an Actions server cluster on EP 1,
34-
with one action (supporting all possible commands) and corresponding
35-
ActionLists and EndpointLists attributes: ActionList: contains one
36-
list element (ActionListStruct): ActionIO = 0x1001 Name = some
37-
test Type = other EndpointListID = 0xE001 SupportedCommands =
38-
0x0fff // suppports all commands State = Inactive EndpointLists:
39-
contains one list element (EndpointListStruct): EndpointListID =
40-
0xE001 Name = test room Type = room Endpoints =
41-
[3] SetupURL: (empty string)"
34+
with one action (supporting all possible commands) and corresponding
35+
ActionLists and EndpointLists attributes: ActionList: contains one
36+
list element (ActionListStruct): ActionIO = 0x1001 Name = some
37+
test Type = other EndpointListID = 0xE001 SupportedCommands =
38+
0x0fff // suppports all commands State = Inactive EndpointLists:
39+
contains one list element (EndpointListStruct): EndpointListID =
40+
0xE001 Name = test room Type = room Endpoints = [3]
41+
SetupURL: (empty string)"
4242
verification: |
43-
verification step to be updated.
43+
pre-condition :
44+
Please use the below chip-tool commmands as example on how this TC can be performed using chip-tool. The DUT vendor to use commands per the DUT implemetnation
45+
46+
1. First read action-list by following command
47+
48+
./chip-tool actions read action-list 1 1
49+
50+
[1662053538.864044][37149:37154] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0025 Attribute 0x0000_0000 DataVersion: 3676955533
51+
[1662053538.864116][37149:37154] CHIP:TOO: ActionList: 2 entries
52+
[1662053538.864180][37149:37154] CHIP:TOO: [1]: {
53+
[1662053538.864202][37149:37154] CHIP:TOO: ActionID: 4097
54+
[1662053538.864221][37149:37154] CHIP:TOO: Name: Room 1 On
55+
[1662053538.864240][37149:37154] CHIP:TOO: Type: 3
56+
[1662053538.864259][37149:37154] CHIP:TOO: EndpointListID: 57345
57+
[1662053538.864276][37149:37154] CHIP:TOO: SupportedCommands: 1
58+
[1662053538.864295][37149:37154] CHIP:TOO: State: 0
59+
[1662053538.864313][37149:37154] CHIP:TOO: }
60+
[1662053538.864342][37149:37154] CHIP:TOO: [2]: {
61+
[1662053538.864360][37149:37154] CHIP:TOO: ActionID: 4098
62+
[1662053538.864377][37149:37154] CHIP:TOO: Name: Turn On Room 2
63+
[1662053538.864395][37149:37154] CHIP:TOO: Type: 3
64+
[1662053538.864413][37149:37154] CHIP:TOO: EndpointListID: 57346
65+
[1662053538.864431][37149:37154] CHIP:TOO: SupportedCommands: 1
66+
[1662053538.864449][37149:37154] CHIP:TOO: State: 0
67+
[1662053538.864466][37149:37154] CHIP:TOO: }
68+
69+
2. Use the above obtained ActionID to verify the following commands
70+
./chip-tool actions instant-action 4097 1 1
4471
disabled: true
4572

4673
- label: "DUT issues an InstantAction command to TH"
4774
PICS: ACT.C.C00.Tx
4875
verification: |
49-
./chip-tool actions instant-action 0xA001 1 1
76+
./chip-tool actions instant-action 4097 1 1
5077
5178
Verify command is successfully sent on TH(bridge-app)
5279
@@ -97,79 +124,59 @@ tests:
97124
- label: "DUT issues an StopAction command to TH"
98125
PICS: ACT.C.C04.Tx
99126
verification: |
100-
./chip-tool actions stop-action 0 1 1
101-
102-
Note: Message log similar as in step 1
127+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
103128
disabled: true
104129

105130
- label: "DUT issues an PauseAction command to TH"
106131
PICS: ACT.C.C05.Tx
107132
verification: |
108-
./chip-tool actions pause-action 0 1 1
109-
110-
Note: Message log similar as in step 1
133+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
111134
disabled: true
112135

113136
- label: "DUT issues an ResumeAction command to TH"
114137
PICS: ACT.C.C07.Tx
115138
verification: |
116-
./chip-tool actions resume-action 0 1 1
117-
118-
Note: Message log similar as in step 1
139+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
119140
disabled: true
120141

121142
- label: "DUT issues an EnableAction command to TH"
122143
PICS: ACT.C.C08.Tx
123144
verification: |
124-
./chip-tool actions enable-action 0 1 1
125-
126-
Note: Message log similar as in step 1
145+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
127146
disabled: true
128147

129148
- label: "DUT issues an DisableAction command to TH"
130149
PICS: ACT.C.C0a.Tx
131150
verification: |
132-
./chip-tool actions disable-action 0 1 1
133-
134-
Note: Message log similar as in step 1
151+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
135152
disabled: true
136153

137154
- label: "DUT issues an StartActionWithDuration command to TH"
138155
PICS: ACT.C.C03.Tx
139156
verification: |
140-
./chip-tool actions start-action-with-duration 0x1001 100 1 1
141-
142-
Note: Message log similar as in step 1
157+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
143158
disabled: true
144159

145160
- label: "DUT issues an PauseActionWithDuration command to TH"
146161
PICS: ACT.C.C06.Tx
147162
verification: |
148-
./chip-tool actions pause-action-with-duration 0x1001 200 1 1
149-
150-
Note: Message log similar as in step 1
163+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
151164
disabled: true
152165

153166
- label: "DUT issues an EnableActionWithDuration command to TH"
154167
PICS: ACT.C.C09.Tx
155168
verification: |
156-
./chip-tool actions enable-action-with-duration 0x1001 300 1 1
157-
158-
Note: Message log similar as in step 1
169+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
159170
disabled: true
160171

161172
- label: "DUT issues an DisableActionWithDuration command to TH"
162173
PICS: ACT.C.C0b.Tx
163174
verification: |
164-
./chip-tool actions disable-action-with-duration 0x1001 100 1 1
165-
166-
Note: Message log similar as in step 1
175+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
167176
disabled: true
168177

169178
- label: "DUT issues an InstantActionWithTransition command to TH"
170179
PICS: ACT.C.C01.Tx
171180
verification: |
172-
./chip-tool actions instant-action-with-transition 0x1001 400 1 1
173-
174-
Note: Message log similar as in step 1
181+
Out of scope for V1.0, The reference app doesn"t have implementation for this command
175182
disabled: true

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

+71
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,48 @@ tests:
8989
Endpoint 0."
9090
PICS: GRPKEY.C.C00.Tx
9191
verification: |
92+
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
93+
94+
95+
./chip-tool groupkeymanagement key-set-write "{"groupKeySetID": 42,
96+
"groupKeySecurityPolicy": 0, "epochKey0":
97+
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime0": 2220000,"epochKey1":
98+
"d1d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime1": 2220001,"epochKey2":
99+
"d2d1d2d3d4d5d6d7d8d9dadbdcdddedf", "epochStartTime2": 2220002 }" 74 0
100+
101+
On TH1(Chip-tool), Verify the success response for KeySetWrite
102+
103+
[1657719041.075123][4541:4546] CHIP:DMG: ICR moving to [ResponseRe]
104+
[1657719041.075174][4541:4546] CHIP:DMG: InvokeResponseMessage =
105+
[1657719041.075200][4541:4546] CHIP:DMG: {
106+
[1657719041.075224][4541:4546] CHIP:DMG: suppressResponse = false,
107+
[1657719041.075255][4541:4546] CHIP:DMG: InvokeResponseIBs =
108+
[1657719041.075287][4541:4546] CHIP:DMG: [
109+
[1657719041.075311][4541:4546] CHIP:DMG: InvokeResponseIB =
110+
[1657719041.075347][4541:4546] CHIP:DMG: {
111+
[1657719041.075376][4541:4546] CHIP:DMG: CommandStatusIB =
112+
[1657719041.075408][4541:4546] CHIP:DMG: {
113+
[1657719041.075439][4541:4546] CHIP:DMG: CommandPathIB =
114+
[1657719041.075473][4541:4546] CHIP:DMG: {
115+
[1657719041.075507][4541:4546] CHIP:DMG: EndpointId = 0x0,
116+
[1657719041.075542][4541:4546] CHIP:DMG: ClusterId = 0x3f,
117+
[1657719041.075577][4541:4546] CHIP:DMG: CommandId = 0x0,
118+
[1657719041.075609][4541:4546] CHIP:DMG: },
119+
[1657719041.075646][4541:4546] CHIP:DMG:
120+
[1657719041.075676][4541:4546] CHIP:DMG: StatusIB =
121+
[1657719041.075709][4541:4546] CHIP:DMG: {
122+
[1657719041.075743][4541:4546] CHIP:DMG: status = 0x00 (SUCCESS),
123+
[1657719041.075775][4541:4546] CHIP:DMG: },
124+
[1657719041.075809][4541:4546] CHIP:DMG:
125+
[1657719041.075840][4541:4546] CHIP:DMG: },
126+
[1657719041.075874][4541:4546] CHIP:DMG:
127+
[1657719041.075902][4541:4546] CHIP:DMG: },
128+
[1657719041.075935][4541:4546] CHIP:DMG:
129+
[1657719041.075959][4541:4546] CHIP:DMG: ],
130+
[1657719041.075988][4541:4546] CHIP:DMG:
131+
[1657719041.076012][4541:4546] CHIP:DMG: InteractionModelRevision = 1
132+
133+
92134
Run this cmmd for lighting app in chip-tool:
93135
94136
./chip-tool groupkeymanagement key-set-write "{"groupKeySetID": 42,
@@ -138,6 +180,19 @@ tests:
138180
list on GroupKeyManagement cluster to TH2 on Endpoint 0"
139181
PICS: GRPKEY.C.A0000
140182
verification: |
183+
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
184+
185+
./chip-tool groupkeymanagement write group-key-map "[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]" 74 0
186+
187+
On TH1(Chip-tool), Verify the success response for GroupKeySetID
188+
189+
[1657719130.464175][4557:4562] CHIP:DMG: StatusIB =
190+
[1657719130.464214][4557:4562] CHIP:DMG: {
191+
[1657719130.464256][4557:4562] CHIP:DMG: status = 0x00 (SUCCESS),
192+
[1657719130.464298][4557:4562] CHIP:DMG: },
193+
[1657719130.464342][4557:4562] CHIP:DMG:
194+
195+
141196
Run this cmmd for lighting app in chip-tool:
142197
143198
./chip-tool groupkeymanagement write group-key-map "[{"groupId": 1, "groupKeySetID": 42, "fabricIndex": 1}]" 2 0
@@ -155,6 +210,19 @@ tests:
155210
Endpoint 1."
156211
PICS: G.C.C00.Tx
157212
verification: |
213+
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
214+
215+
./chip-tool groups add-group 0x0001 grp1 74 1
216+
217+
On TH1(Chip-tool), Verify the success response for AddGroup
218+
219+
[1657719097.788236][4548:4554] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0004 Command 0x0000_0000
220+
[1657719097.788325][4548:4554] CHIP:TOO: AddGroupResponse: {
221+
[1657719097.788366][4548:4554] CHIP:TOO: status: 0
222+
[1657719097.788393][4548:4554] CHIP:TOO: groupId: 1
223+
[1657719097.788418][4548:4554] CHIP:TOO: }
224+
225+
158226
Run this cmmd for lighting app in chip-tool:
159227
160228
./chip-tool groups add-group 0x0001 grp1 2 1
@@ -168,6 +236,9 @@ tests:
168236
[1657717342.600054][3368:3373] CHIP:TOO: }
169237
[1657717342.600130][3368:3373] CHIP:DMG: ICR moving
170238
239+
240+
Run this commands for both Ligh-switch-app and Lighting-app:
241+
171242
./chip-tool groupsettings add-group grp1 0x0001
172243
173244
./chip-tool groupsettings add-keysets 0x0042 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf

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

+2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ tests:
202202
[1657719097.788418][4548:4554] CHIP:TOO: }
203203
204204
205+
Run this commands for both Ligh-switch-app and Lighting-app:
206+
205207
./chip-tool groupsettings add-group grp1 0x0001
206208
207209
./chip-tool groupsettings add-keysets 0x0042 0 0x000000000021dfe0 hex:d0d1d2d3d4d5d6d7d8d9dadbdcdddedf

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tests:
3232
- name: "nodeId"
3333
value: nodeId
3434

35-
#not supported in YAML
35+
#Saving the CountryCode during commissioning not supported in YAML
3636
- label:
3737
"During Commissioning, TH Saves the CountryCode Information from
3838
SetRegulatoryConfig command"
@@ -441,7 +441,7 @@ tests:
441441
value: ManufacturingDateValue
442442

443443
- label: "TH reads PartNumber from the DUT"
444-
PICS: BINFO.S.A000c && PART_NUM
444+
PICS: BINFO.S.A000c
445445
command: "readAttribute"
446446
attribute: "PartNumber"
447447
response:
@@ -460,7 +460,7 @@ tests:
460460
error: UNSUPPORTED_WRITE
461461

462462
- label: "TH reads PartNumber from the DUT"
463-
PICS: BINFO.S.A000c && PART_NUM
463+
PICS: BINFO.S.A000c
464464
command: "readAttribute"
465465
attribute: "PartNumber"
466466
response:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ tests:
122122
123123
Verify CommissionedFabrics=SupportedFabrics-1 on TH_CR1(chip-tool) log
124124
125-
./chip-tool operationalcredentials read commissioned-fabrics 1 0
125+
./chip-tool operationalcredentials read commissioned-fabrics 2 0 --commissioner-name beta
126126
127127
[1660907933.677983][33780:33785] CHIP:TOO: CommissionedFabrics: 15
128128
disabled: true

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ tests:
140140
CHIP:TOO: }
141141
CHIP:DMG: ICR moving to [AwaitingDe]
142142
143-
Verify CommissionedFabrics=SupportedFabrics-1 on TH_CR1(chip-tool) log
143+
Verify CommissionedFabrics=SupportedFabrics-1 on TH_CR2(chip-tool) log
144144
145-
./chip-tool operationalcredentials read commissioned-fabrics 1 0
145+
./chip-tool operationalcredentials read commissioned-fabrics 2 0 --commissioner-name beta
146146
147147
[1660907933.677983][33780:33785] CHIP:TOO: CommissionedFabrics: 15
148148
disabled: true

0 commit comments

Comments
 (0)