Skip to content

Commit b5313a7

Browse files
juandediosgandy31415cecillerestyled-commits
authored
Update YAML file Test_TC_OPCREDS_3_7 (#36871)
* Draft: Update YAML file Test_TC_OPCREDS_3_7 * Updated YAML steps to match changes in Test Plan * Reorder steps and sequence * Label steps description update * Update src/app/tests/suites/certification/Test_TC_OPCREDS_3_7.yaml Co-authored-by: C Freeman <cecille@google.com> * Update src/app/tests/suites/certification/Test_TC_OPCREDS_3_7.yaml Co-authored-by: C Freeman <cecille@google.com> * Update src/app/tests/suites/certification/Test_TC_OPCREDS_3_7.yaml Co-authored-by: C Freeman <cecille@google.com> * Update src/app/tests/suites/certification/Test_TC_OPCREDS_3_7.yaml Co-authored-by: C Freeman <cecille@google.com> * Restyled by whitespace * Restyled by prettier-yaml --------- Co-authored-by: Andrei Litvin <andy314@gmail.com> Co-authored-by: C Freeman <cecille@google.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 775d86b commit b5313a7

File tree

1 file changed

+33
-53
lines changed

1 file changed

+33
-53
lines changed

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

+33-53
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,7 @@ tests:
3737
value: nodeId
3838

3939
- label:
40-
"Step 1: Factory Reset DUT (to ensure NOC list is empty at the
41-
beginning of the following steps)"
42-
# verification: ""
43-
# Disabling this step, because the test starts with a DUT device that has just been commissioned by the TH1 commissioner
44-
disabled: true
45-
46-
- label:
47-
"Step 2: Start the commissioning process of DUT by TH1 on the first
48-
Fabric."
49-
# PICS: ""
50-
# verification: "Verify that TH1 successfully completes commissioning, including establishing a CASE session on the operational network and issuing a CommissioningComplete command."
51-
# Disabling this step, because the test starts with a DUT device that has just been commissioned by the TH1 commissioner
52-
53-
disabled: true
54-
55-
- label:
56-
"Step 3.1: Save the FabricIndex for TH1 as TH1_Fabric_Index for future
40+
"Step 1.1: Save the FabricIndex for TH1 as TH1_Fabric_Index for future
5741
use."
5842
identity: "alpha"
5943
command: "readAttribute"
@@ -63,7 +47,7 @@ tests:
6347
saveAs: TH1_Fabric_Index
6448

6549
- label:
66-
"Step 3.2: TH1 does a fabric-filtered read of the Fabrics attribute
50+
"Step 1.2: TH1 does a fabric-filtered read of the Fabrics attribute
6751
from the Node Operational Credentials cluster. Save the FabricIndex
6852
for TH1 as TH1_Fabric_Index for future use."
6953
identity: "alpha"
@@ -78,7 +62,7 @@ tests:
7862

7963
# verification: "Verify that there is a single entry in the list and the FabricIndex for that entry matches TH1_Fabric_Index."
8064
- label:
81-
"Step 4: TH1 sends ArmFailSafe command to the DUT with the
65+
"Step 2: TH1 sends ArmFailSafe command to the DUT with the
8266
ExpiryLengthSeconds field set to 60 seconds"
8367
identity: "alpha"
8468
cluster: "General Commissioning"
@@ -95,7 +79,7 @@ tests:
9579
value: 0 # OK
9680

9781
# verification: "Verify that the DUT sends ArmFailSafeResponse command to TH1 with field ErrorCode as OK(0)"
98-
- label: "Step 5: TH1 Sends CSRRequest command with a random 32-byte nonce."
82+
- label: "Step 3: TH1 Sends CSRRequest command with a random 32-byte nonce."
9983
identity: "alpha"
10084
command: "CSRRequest"
10185
cluster: "Operational Credentials"
@@ -110,23 +94,10 @@ tests:
11094
- name: "AttestationSignature"
11195
saveAs: attestationSignature
11296

113-
# verification: "Step 5: Verify that the DUT responds with the CSRResponse command."
114-
- label:
115-
"Step 6.1: Read the commissioner root certificate from TH2's fabric.
116-
Save RCAC as Root_CA_Certificate_TH2"
117-
identity: "beta"
118-
cluster: "CommissionerCommands"
119-
command: "GetCommissionerRootCertificate"
120-
response:
121-
values:
122-
- name: "RCAC"
123-
saveAs: Root_CA_Certificate_TH2
124-
125-
# verification: ""
12697
- label:
127-
"Step 6.2: TH2 generates the NOC, the Root CA Certificate and ICAC
128-
using the CSR elements from Step 5 and selects an IPK, all for use by
129-
TH2. Save ICAC as Intermediate_Certificate_TH2. Save NOC as
98+
"Step 4: TH2 generates the NOC, the Root CA Certificate and ICAC using
99+
the CSR elements from Step 3. Save ICAC as
100+
Intermediate_Certificate_TH2. Save NOC as
130101
Node_Operational_Certificate_TH2. Save IPK as IPK_TH2. Extract the
131102
RCAC public key and save as Root_Public_Key_TH2."
132103
identity: "beta"
@@ -147,20 +118,20 @@ tests:
147118
- name: "IPK"
148119
saveAs: IPK_TH2
149120

150-
# verification: ""
151-
- label: "Step 7.1: Read the commissioner node ID from TH2"
121+
- label:
122+
"StepN 5: Retrieve the the commissioner root certificate from TH2.
123+
Save RCAC as Root_CA_Certificate_TH2"
152124
identity: "beta"
153125
cluster: "CommissionerCommands"
154-
command: "GetCommissionerNodeId"
126+
command: "GetCommissionerRootCertificate"
155127
response:
156128
values:
157-
- name: "nodeId"
158-
saveAs: Commissioner_Node_Id_TH2
129+
- name: "RCAC"
130+
saveAs: Root_CA_Certificate_TH2
159131

160-
# verification: ""
161132
- label:
162-
"Step 7.2: TH1 sends AddTrustedRootCertificate command to DUT with
163-
RootCACertificate set to Root_CA_Certificate_TH2"
133+
"Step 5.1: TH1 sends TH2 root certificate to DUT in the
134+
AddTrustedRootCertificate chain."
164135
identity: "alpha"
165136
command: "AddTrustedRootCertificate"
166137
cluster: "Operational Credentials"
@@ -169,9 +140,18 @@ tests:
169140
- name: "RootCACertificate"
170141
value: Root_CA_Certificate_TH2
171142

172-
# verification: "Verify that AddTrustedRootCertificate command succeeds by sending the status code as SUCCESS"
143+
- label: "Step 6: Retrieve the commissioner node ID from TH2"
144+
identity: "beta"
145+
cluster: "CommissionerCommands"
146+
command: "GetCommissionerNodeId"
147+
response:
148+
values:
149+
- name: "nodeId"
150+
saveAs: Commissioner_Node_Id_TH2
151+
152+
# verification: "Verify AddNOC command is sent to DUT with the correct NOC, ICAC, and IPK certificates. Verify status code is 0 (OK)"
173153
- label:
174-
"Step 8: TH1 sends the AddNOC command to DUT with the following
154+
"Step 6.1: TH1 sends the AddNOC command to DUT with the following
175155
fields: NOCValue as Node_Operational_Certificate_TH2. ICACValue as
176156
Intermediate_Certificate_TH2. IpkValue as IPK_TH2. CaseAdminSubject as
177157
the NodeID of TH2. AdminVendorId as the Vendor ID of TH2."
@@ -196,13 +176,13 @@ tests:
196176
value: 0
197177

198178
# verification: "Verify that DUT responds with NOCResponse with status code OK"
199-
- label: "Step 9: TH2 starts discovery of DUT using Operational Discovery"
179+
- label: "Step 7: TH2 starts discovery of DUT using Operational Discovery"
200180
# verification: ""
201181
# Disabling this step as this occurs from the AddNOC command being run
202182
disabled: true
203183

204184
- label:
205-
"Step 10: TH2 opens a CASE session with DUT over operational network."
185+
"Step 8: TH2 opens a CASE session with DUT over operational network."
206186
identity: "beta"
207187
cluster: "DelayCommands"
208188
command: "WaitForCommissionee"
@@ -212,7 +192,7 @@ tests:
212192
value: 0x43211234
213193

214194
# verification: "DUT is able to open the CASE session with TH2"
215-
- label: "Step 11: TH2 sends CommissioningComplete command"
195+
- label: "Step 9: TH2 sends CommissioningComplete command"
216196
nodeId: 0x43211234
217197
identity: "beta"
218198
cluster: "General Commissioning"
@@ -224,7 +204,7 @@ tests:
224204

225205
# verification: "DUT respond with SUCCESS at CommissioningComplete command sent by TH2"
226206
- label:
227-
"Step 12: TH2 reads the Current Fabric Index attribute from the Node
207+
"Step 10: TH2 reads the Current Fabric Index attribute from the Node
228208
Operational Credentials cluster. Save the FabricIndex for TH2 as
229209
TH2_Fabric_Index."
230210
identity: "beta"
@@ -237,7 +217,7 @@ tests:
237217

238218
# verification: ""
239219
- label:
240-
"Step 13a: TH1 does a fabric-filtered read of the Fabrics attribute
220+
"Step 11a: TH1 does a fabric-filtered read of the Fabrics attribute
241221
from the Node Operational Credentials cluster"
242222
nodeId: 0x43211234
243223
command: "readAttribute"
@@ -251,7 +231,7 @@ tests:
251231

252232
# verification: ""
253233
- label:
254-
"Step 13b: TH2 does a fabric-filtered read of the Fabrics attribute
234+
"Step 11b: TH2 does a fabric-filtered read of the Fabrics attribute
255235
from the Node Operational Credentials cluster"
256236
identity: "beta"
257237
nodeId: 0x43211234
@@ -266,7 +246,7 @@ tests:
266246

267247
# verification: "Verify that there are 2 entries in the list where one entry matches TH1_Fabric_Index and the other matches TH2_Fabric_Index."
268248
- label:
269-
"Step 14: TH1 sends RemoveFabric command to DUT with the FabricIndex
249+
"Step 12: TH1 sends RemoveFabric command to DUT with the FabricIndex
270250
field set to TH2_Fabric_Index."
271251
identity: "alpha"
272252
command: "RemoveFabric"

0 commit comments

Comments
 (0)