Skip to content

Commit 1033854

Browse files
manjunath-grlrestyled-commits
authored andcommitted
Fixes testplan changes for SC-5.3 & 6.1 (#26836)
* Fixes issue 2524 TC-SC-5.3 TC-SC-6.1 * Restyled by whitespace * Added new manual testcase TC-ACE-1.6 Modified test TC-ACE-1.5 * Restyled by whitespace * Restyled by prettier-json --------- Co-authored-by: Restyled.io <[email protected]>
1 parent 2912b12 commit 1033854

File tree

7 files changed

+1389
-165
lines changed

7 files changed

+1389
-165
lines changed

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

+125-11
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,25 @@ tests:
5353
saveAs: th1FabricIndex
5454

5555
- label:
56-
"Step 3 & 4: TH1 puts DUT into commissioning mode, TH2 commissions DUT
56+
"Step 2 & 3: TH1 puts DUT into commissioning mode, TH2 commissions DUT
5757
using admin node ID N2"
5858
verification: |
59-
Open a commissioning window On TH1(Chiptool)using below command
59+
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
6060
61-
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
61+
On TH1(chip-tool) note the manual pairing code for commissioning the TH2
6262
63-
[1657186324.710951][10820:10825] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x0
64-
[1657186324.710980][10820:10825] CHIP:CTL: Successfully opened pairing window On TH(Chiptool)e device
65-
[1657186324.711048][10820:10825] CHIP:CTL: Manual pairing code: [36253605617]
66-
[1657186324.711108][10820:10825] CHIP:CTL: SetupQRCode: [MT:-24J0IRV01A7TB7E700]
63+
[1684416077.831754][118314:118316] CHIP:CTL: Successfully opened pairing window on the device
64+
[1684416077.831763][118314:118316] CHIP:CTL: Manual pairing code: [36283142515]
65+
[1684416077.831771][118314:118316] CHIP:CTL: SetupQRCode: [MT:-24J0IRV010UJE7ZH10]
66+
[1684416077.831791][118314:118316] CHIP:DMG: ICR moving to [AwaitingDe]
6767
68+
./chip-tool pairing code 2 36283142515 --commissioner-name beta
6869
69-
Commission TH2(Chiptool) to DUT using manualcode generated in TH1 using open commission window
70+
On TH2 (chip-tool) verify the commissioning completed with success
7071
71-
./chip-tool pairing code 2 36253605617 --commissioner-name beta --commissioner-nodeid 223344
72-
[1657186359.584672][3509:3514] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
73-
[1657186359.584743][3509:3514] CHIP:TOO: Device commissioning completed with success
72+
[1684416247.482777][118352:118354] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
73+
[1684416247.482789][118352:118354] CHIP:TOO: Device commissioning completed with success
74+
[1684416247.482823][118352:118354] CHIP:DMG: ICR moving to [AwaitingDe]
7475
cluster: "LogCommands"
7576
command: "UserPrompt"
7677
PICS: PICS_SKIP_SAMPLE_APP
@@ -132,12 +133,33 @@ tests:
132133

133134
- label: "TH2 reads the fabric index"
134135
identity: "beta"
136+
PICS: PICS_SDK_CI_ONLY
135137
cluster: "Operational Credentials"
136138
command: "readAttribute"
137139
attribute: "CurrentFabricIndex"
138140
response:
139141
saveAs: th2FabricIndex
140142

143+
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
144+
- label: "TH2 reads the fabric index"
145+
verification: |
146+
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta
147+
148+
On TH2 (chip-tool) note the CurrentFabricIndex for the further use
149+
150+
[1684416368.885484][118383:118385] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 3654336520
151+
[1684416368.885511][118383:118385] CHIP:TOO: CurrentFabricIndex: 2
152+
[1684416368.885577][118383:118385] CHIP:EM: <<< [E:65212i S:18077 M:83303022 (Ack:184536262)] (S) Msg TX to 2:0000000000000002 [C33E] --- Type 0000:10 (SecureChannel:StandaloneAck)
153+
cluster: "LogCommands"
154+
command: "UserPrompt"
155+
PICS: PICS_SKIP_SAMPLE_APP
156+
arguments:
157+
values:
158+
- name: "message"
159+
value: "Enter 'y' after success"
160+
- name: "expectedValue"
161+
value: "y"
162+
141163
- label: "Read the commissioner node ID from the alpha fabric"
142164
identity: "alpha"
143165
cluster: "CommissionerCommands"
@@ -171,6 +193,7 @@ tests:
171193
]
172194

173195
- label: "Read the commissioner node ID from the beta fabric"
196+
PICS: PICS_SDK_CI_ONLY
174197
identity: "beta"
175198
cluster: "CommissionerCommands"
176199
command: "GetCommissionerNodeId"
@@ -181,6 +204,7 @@ tests:
181204

182205
- label: "TH2 writes ACL giving view privilge for basic cluster"
183206
identity: beta
207+
PICS: PICS_SDK_CI_ONLY
184208
command: "writeAttribute"
185209
attribute: "ACL"
186210
arguments:
@@ -203,6 +227,28 @@ tests:
203227
},
204228
]
205229

230+
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
231+
- label: "TH2 writes ACL giving view privilge for basic cluster"
232+
verification: |
233+
./chip-tool accesscontrol write acl '[{"fabricIndex": 2, "privilege": 5, "authMode": 2, "subjects": [223344], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]}, {"fabricIndex": 2, "privilege": 1, "authMode": 2, "subjects": null, "targets": [{ "cluster": 40, "endpoint": 0, "deviceType": null }]}]' 2 0 --commissioner-name beta
234+
235+
On TH2 (chip-tool) verify the success response for the write function
236+
237+
[1684416510.660175][118418:118420] CHIP:DMG: StatusIB =
238+
[1684416510.660184][118418:118420] CHIP:DMG: {
239+
[1684416510.660192][118418:118420] CHIP:DMG: status = 0x00 (SUCCESS),
240+
[1684416510.660201][118418:118420] CHIP:DMG: },
241+
[1684416510.660211][118418:118420] CHIP:DMG:
242+
cluster: "LogCommands"
243+
command: "UserPrompt"
244+
PICS: PICS_SKIP_SAMPLE_APP
245+
arguments:
246+
values:
247+
- name: "message"
248+
value: "Enter 'y' after success"
249+
- name: "expectedValue"
250+
value: "y"
251+
206252
- label: "TH1 reads descriptor cluster - expect SUCCESS"
207253
command: "readAttribute"
208254
cluster: "Descriptor"
@@ -217,18 +263,61 @@ tests:
217263

218264
- label: "TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
219265
identity: "beta"
266+
PICS: PICS_SDK_CI_ONLY
220267
command: "readAttribute"
221268
cluster: "Descriptor"
222269
attribute: "DeviceTypeList"
223270
response:
224271
error: UNSUPPORTED_ACCESS
225272

273+
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
274+
- label: "TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
275+
verification: |
276+
./chip-tool descriptor read device-type-list 2 0 --commissioner-name beta
277+
278+
On TH2(chip-tool) verify the UNSUPPORTED_ACCESS (0x7e) response
279+
280+
[1684416700.274460][118482:118484] CHIP:DMG: StatusIB =
281+
[1684416700.274467][118482:118484] CHIP:DMG: {
282+
[1684416700.274475][118482:118484] CHIP:DMG: status = 0x7e (UNSUPPORTED_ACCESS),
283+
[1684416700.274482][118482:118484] CHIP:DMG: },
284+
cluster: "LogCommands"
285+
command: "UserPrompt"
286+
PICS: PICS_SKIP_SAMPLE_APP
287+
arguments:
288+
values:
289+
- name: "message"
290+
value: "Enter 'y' after success"
291+
- name: "expectedValue"
292+
value: "y"
293+
226294
- label: "TH2 reads basic cluster - expect SUCCESS"
227295
identity: "beta"
296+
PICS: PICS_SDK_CI_ONLY
228297
command: "readAttribute"
229298
cluster: "Basic Information"
230299
attribute: "VendorID"
231300

301+
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
302+
- label: "TH2 writes Extension attribute value as empty list"
303+
verification: |
304+
./chip-tool basicinformation read vendor-id 2 0 --commissioner-name beta
305+
306+
On TH2(chip-tool) verify the success with the Vendor-id
307+
308+
[1684416789.682243][118505:118507] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Attribute 0x0000_0002 DataVersion: 2033462723
309+
[1684416789.682271][118505:118507] CHIP:TOO: VendorID: 65521
310+
[1684416789.682327][118505:118507] CHIP:EM: <<< [E:11340i S:29188 M:208193949 (Ack:232576417)] (S) Msg TX to 2:0000000000000002 [C33E] --- Type 0000:10 (SecureChannel:StandaloneAck)
311+
cluster: "LogCommands"
312+
command: "UserPrompt"
313+
PICS: PICS_SKIP_SAMPLE_APP
314+
arguments:
315+
values:
316+
- name: "message"
317+
value: "Enter 'y' after success"
318+
- name: "expectedValue"
319+
value: "y"
320+
232321
- label: "TH1 resets ACL to default"
233322
command: "writeAttribute"
234323
attribute: "ACL"
@@ -245,8 +334,33 @@ tests:
245334

246335
- label: "TH1 sends RemoveFabric command for TH2"
247336
cluster: "Operational Credentials"
337+
PICS: PICS_SDK_CI_ONLY
248338
command: "RemoveFabric"
249339
arguments:
250340
values:
251341
- name: "FabricIndex"
252342
value: th2FabricIndex
343+
344+
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
345+
- label: "TH1 sends RemoveFabric command for TH2"
346+
verification: |
347+
./chip-tool operationalcredentials remove-fabric 2 1 0
348+
349+
On TH1(chip-tool) verify the success with the nocresponse with statuscode is success(0)
350+
351+
[1684416866.004187][118527:118529] CHIP:DMG: Received Command Response Data, Endpoint=0 Cluster=0x0000_003E Command=0x0000_0008
352+
[1684416866.004214][118527:118529] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Command 0x0000_0008
353+
[1684416866.004236][118527:118529] CHIP:TOO: NOCResponse: {
354+
[1684416866.004250][118527:118529] CHIP:TOO: statusCode: 0
355+
[1684416866.004255][118527:118529] CHIP:TOO: fabricIndex: 2
356+
[1684416866.004259][118527:118529] CHIP:TOO: }
357+
[1684416866.004270][118527:118529] CHIP:DMG: ICR moving to [AwaitingDe]
358+
cluster: "LogCommands"
359+
command: "UserPrompt"
360+
PICS: PICS_SKIP_SAMPLE_APP
361+
arguments:
362+
values:
363+
- name: "message"
364+
value: "Enter 'y' after success"
365+
- name: "expectedValue"
366+
value: "y"

0 commit comments

Comments
 (0)