Skip to content

Commit d66a584

Browse files
Modified tests (#29883)
TC-CADMIN-1.4 TC-CADMIN-1.6 TC-CADMIN-1.10 TC-CADMIN-1.16 TC-CADMIN-1.21 TC-CADMIN-1.22 TC-CADMIN-1.23 TC-CADMIN-1.24
1 parent 2a7c214 commit d66a584

8 files changed

+202
-117
lines changed

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

+22-20
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ config:
4242
incorrectSetupCodePayload:
4343
type: char_string
4444
defaultValue: "MT:-24J0AFN00I.0648G00"
45+
PIXIT.CADMIN.CwDuration:
46+
type: int16u
47+
defaultValue: 180
4548

4649
tests:
4750
- label: "Precondition: Reset Devices to factory defaults"
@@ -63,6 +66,17 @@ tests:
6366
value: "y"
6467

6568
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
69+
cluster: "CommissionerCommands"
70+
command: "PairWithCode"
71+
PICS: CADMIN.S
72+
arguments:
73+
values:
74+
- name: "nodeId"
75+
value: nodeId
76+
- name: "payload"
77+
value: correctPayload
78+
79+
- label: "Step 1a: TH_CR1 commissioned with DUT_CE"
6680
cluster: "DelayCommands"
6781
command: "WaitForCommissionee"
6882
PICS: CADMIN.S
@@ -79,37 +93,25 @@ tests:
7993
arguments:
8094
values:
8195
- name: "CommissioningTimeout"
82-
value: 900
96+
value: PIXIT.CADMIN.CwDuration
8397

8498
- label: "Step 2a: Waiting after opening commissioning window"
99+
PICS: CADMIN.S.C01.Rsp
85100
cluster: "DelayCommands"
86101
command: "WaitForMs"
87102
arguments:
88103
values:
89104
- name: "ms"
90105
value: waitAfterCommissioning
91106

92-
#Check for DNS-SD advertisement CM is not possible in YAML
93107
- label: "Step 3: Verify that the DNS-SD advertisement shows CM=1"
94-
verification: |
95-
On TH_CR1 send the below command
96-
97-
ubuntu@ubuntu:~/may16_cntrl/connectedhomeip/examples/chip-tool/out/debug$ avahi-browse -rt _matterc._udp
98-
+ eth0 IPv6 2664ED6939FC373C _matterc._udp local
99-
= eth0 IPv6 2664ED6939FC373C _matterc._udp local
100-
hostname = [E45F010F27530000.local]
101-
address = [fe80::e65f:1ff:fe0f:2753]
102-
port = [5540]
103-
txt = ["PI=" "PH=36" "CM=1" "D=3840" "T=1" "SAI=300" "SII=5000" "VP=65521+32769"]
104-
cluster: "LogCommands"
105-
command: "UserPrompt"
106-
PICS: PICS_SKIP_SAMPLE_APP
107-
arguments:
108+
PICS: CADMIN.S.C01.Rsp
109+
cluster: "DiscoveryCommands"
110+
command: "FindCommissionable"
111+
response:
108112
values:
109-
- name: "message"
110-
value: "enter 'y' after success"
111-
- name: "expectedValue"
112-
value: "y"
113+
- name: "commissioningMode"
114+
value: 1
113115

114116
#As per issue https://github.com/CHIP-Specifications/chip-test-scripts/issues/495 adding --discover-once flag
115117
- label:

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

+39-34
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ config:
3535
payload:
3636
type: char_string
3737
defaultValue: "MT:-24J0AFN00KA0648G00"
38+
PIXIT.CADMIN.CwDuration:
39+
type: int16u
40+
defaultValue: 180
3841

3942
tests:
4043
- label: "Precondition: Reset Devices to factory defaults"
@@ -56,6 +59,18 @@ tests:
5659
value: "y"
5760

5861
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
62+
identity: "alpha"
63+
cluster: "CommissionerCommands"
64+
command: "PairWithCode"
65+
PICS: CADMIN.S
66+
arguments:
67+
values:
68+
- name: "nodeId"
69+
value: nodeId
70+
- name: "payload"
71+
value: payload
72+
73+
- label: "Step 1: TH_CR1 commissioned with DUT_CE"
5974
identity: "alpha"
6075
cluster: "DelayCommands"
6176
command: "WaitForCommissionee"
@@ -74,9 +89,10 @@ tests:
7489
arguments:
7590
values:
7691
- name: "CommissioningTimeout"
77-
value: 180
92+
value: PIXIT.CADMIN.CwDuration
7893

7994
- label: "Step 2a: Waiting after opening commissioning window"
95+
PICS: CADMIN.S.C01.Rsp
8096
cluster: "DelayCommands"
8197
command: "WaitForMs"
8298
arguments:
@@ -115,9 +131,10 @@ tests:
115131
arguments:
116132
values:
117133
- name: "CommissioningTimeout"
118-
value: 180
134+
value: PIXIT.CADMIN.CwDuration
119135

120136
- label: "Step 4a: Waiting after opening commissioning window"
137+
PICS: CADMIN.S.C01.Rsp
121138
cluster: "DelayCommands"
122139
command: "WaitForMs"
123140
arguments:
@@ -200,29 +217,16 @@ tests:
200217
response:
201218
error: FAILURE
202219

203-
#Issue https://github.com/project-chip/connectedhomeip/issues/21999
204220
- label:
205221
"Step 8b: TH_CR2 reads the Basic Information Clusters NodeLabel
206222
mandatory attribute of DUT_CE"
207-
PICS: BINFO.S.A0005 && PICS_USER_PROMPT
208-
verification: |
209-
Using TH_CR2 read attribute
210-
211-
Verify read command fail as expected since the DUT_CE is no longer on the network on TH_CR2 (chip-tool) log
212-
213-
./chip-tool basicinformation read node-label 2 0 --commissioner-name beta
214-
215-
[1678876803.495007][714337:714339] CHIP:SC: Received error (protocol code 1) during pairing process: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1727: CHIP Error 0x000000C9: No shared trusted root
216-
[1678876803.495018][714337:714339] CHIP:IN: SecureSession[0x7f2764026220]: Released - Type:2 LSID:16528
217-
[1678876803.495040][714337:714339] CHIP:-: ../../third_party/connectedhomeip/src/protocols/secure_channel/CASESession.cpp:1727: CHIP Error 0x000000C9: No shared trusted root at ../../commands/clusters/ModelCommand.cpp:62
218-
cluster: "LogCommands"
219-
command: "UserPrompt"
220-
arguments:
221-
values:
222-
- name: "message"
223-
value: "Please enter 'y' for success"
224-
- name: "expectedValue"
225-
value: "y"
223+
PICS: BINFO.S.A0005
224+
identity: "beta"
225+
command: "readAttribute"
226+
cluster: "Basic Information"
227+
attribute: "NodeLabel"
228+
response:
229+
error: FAILURE
226230

227231
- label: "Step 9: TH_CR1 reads the list of Fabrics on DUT_CE"
228232
identity: "alpha"
@@ -232,13 +236,13 @@ tests:
232236
attribute: "Fabrics"
233237
fabricFiltered: false
234238
response:
235-
value:
236-
[
237-
{ Label: "", FabricIndex: 1, NodeID: nodeId },
238-
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
239-
]
240239
constraints:
241240
type: list
241+
contains:
242+
[
243+
{ Label: "", FabricIndex: 1, NodeID: nodeId },
244+
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
245+
]
242246

243247
- label: "Step 11: TH_CR1 opens a commissioning window on DUT_CE using BCM"
244248
identity: "alpha"
@@ -249,9 +253,10 @@ tests:
249253
arguments:
250254
values:
251255
- name: "CommissioningTimeout"
252-
value: 180
256+
value: PIXIT.CADMIN.CwDuration
253257

254258
- label: "Step 11a: Waiting after opening commissioning window"
259+
PICS: CADMIN.S.C01.Rsp
255260
cluster: "DelayCommands"
256261
command: "WaitForMs"
257262
arguments:
@@ -299,14 +304,14 @@ tests:
299304
attribute: "Fabrics"
300305
fabricFiltered: false
301306
response:
302-
value:
303-
[
304-
{ Label: "", FabricIndex: 1, NodeID: nodeId },
305-
{ Label: "", FabricIndex: 4, NodeID: nodeId2 },
306-
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
307-
]
308307
constraints:
309308
type: list
309+
contains:
310+
[
311+
{ Label: "", FabricIndex: 1, NodeID: nodeId },
312+
{ Label: "", FabricIndex: 4, NodeID: nodeId2 },
313+
{ Label: "", FabricIndex: 3, NodeID: nodeId3 },
314+
]
310315

311316
- label: "Step 13a: Remove TH2 FabricIndex"
312317
PICS: OPCREDS.S.C0a.Rsp && CADMIN.S

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

+15
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config:
2424
nodeId: 0x12344321
2525
timeout: 950
2626
endpoint: 0
27+
payload:
28+
type: char_string
29+
defaultValue: "MT:-24J0AFN00KA0648G00"
2730

2831
tests:
2932
- label: "Precondition: Reset Devices to factory defaults"
@@ -45,6 +48,17 @@ tests:
4548
value: "y"
4649

4750
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
51+
cluster: "CommissionerCommands"
52+
command: "PairWithCode"
53+
PICS: CADMIN.S
54+
arguments:
55+
values:
56+
- name: "nodeId"
57+
value: nodeId
58+
- name: "payload"
59+
value: payload
60+
61+
- label: "Step 1: TH_CR1 commissioned with DUT_CE"
4862
cluster: "DelayCommands"
4963
command: "WaitForCommissionee"
5064
PICS: CADMIN.S
@@ -66,6 +80,7 @@ tests:
6680
value: 900
6781

6882
- label: "Step 3: Wait 901 seconds for commissioning Window to be closed"
83+
PICS: CADMIN.S.C01.Rsp
6984
cluster: "DelayCommands"
7085
command: "WaitForMs"
7186
arguments:

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

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ config:
2323
nodeId: 0x12344321
2424
timeout: 950
2525
endpoint: 0
26+
payload:
27+
type: char_string
28+
defaultValue: "MT:-24J0AFN00KA0648G00"
2629
discriminator:
2730
type: int16u
2831
defaultValue: 3840
@@ -50,6 +53,17 @@ tests:
5053
value: "y"
5154

5255
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
56+
cluster: "CommissionerCommands"
57+
command: "PairWithCode"
58+
PICS: CADMIN.S
59+
arguments:
60+
values:
61+
- name: "nodeId"
62+
value: nodeId
63+
- name: "payload"
64+
value: payload
65+
66+
- label: "Step 1: TH_CR1 commissioned with DUT_CE"
5367
cluster: "DelayCommands"
5468
command: "WaitForCommissionee"
5569
PICS: CADMIN.S.C00.Rsp
@@ -110,6 +124,7 @@ tests:
110124
value: "SPAKE2P Key Salt"
111125

112126
- label: "Step 3: Wait for commissioning Window to 901 seconds"
127+
PICS: CADMIN.S.C00.Rsp
113128
cluster: "DelayCommands"
114129
command: "WaitForMs"
115130
arguments:

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

+15
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config:
2424
nodeId: 0x12344321
2525
timeout: 200
2626
endpoint: 0
27+
payload:
28+
type: char_string
29+
defaultValue: "MT:-24J0AFN00KA0648G00"
2730

2831
tests:
2932
- label: "Precondition: Reset Devices to factory defaults"
@@ -45,6 +48,17 @@ tests:
4548
value: "y"
4649

4750
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
51+
cluster: "CommissionerCommands"
52+
command: "PairWithCode"
53+
PICS: CADMIN.S
54+
arguments:
55+
values:
56+
- name: "nodeId"
57+
value: nodeId
58+
- name: "payload"
59+
value: payload
60+
61+
- label: "Step 1: TH_CR1 commissioned with DUT_CE"
4862
cluster: "DelayCommands"
4963
command: "WaitForCommissionee"
5064
PICS: CADMIN.S.C01.Rsp
@@ -67,6 +81,7 @@ tests:
6781

6882
- label:
6983
"Step 3: Wait for 181 seconds for commissioning Window to be closed"
84+
PICS: CADMIN.S.C01.Rsp
7085
cluster: "DelayCommands"
7186
command: "WaitForMs"
7287
arguments:

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

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ config:
2323
nodeId: 0x12344321
2424
timeout: 200
2525
endpoint: 0
26+
payload:
27+
type: char_string
28+
defaultValue: "MT:-24J0AFN00KA0648G00"
2629
discriminator:
2730
type: int16u
2831
defaultValue: 3840
@@ -50,6 +53,17 @@ tests:
5053
value: "y"
5154

5255
- label: "Step 1: TH_CR1 starts a commissioning process with DUT_CE"
56+
cluster: "CommissionerCommands"
57+
command: "PairWithCode"
58+
PICS: CADMIN.S
59+
arguments:
60+
values:
61+
- name: "nodeId"
62+
value: nodeId
63+
- name: "payload"
64+
value: payload
65+
66+
- label: "Step 1: TH_CR1 commissioned with DUT_CE"
5367
cluster: "DelayCommands"
5468
command: "WaitForCommissionee"
5569
PICS: CADMIN.S.C00.Rsp
@@ -110,6 +124,7 @@ tests:
110124
value: "SPAKE2P Key Salt"
111125

112126
- label: "Step 3: Wait for commissioning Window to 181 seconds"
127+
PICS: CADMIN.S.C00.Rsp
113128
cluster: "DelayCommands"
114129
command: "WaitForMs"
115130
arguments:

0 commit comments

Comments
 (0)