You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/app/tests/suites/certification/Test_TC_OPCREDS_3_7.yaml
+33-53
Original file line number
Diff line number
Diff line change
@@ -37,23 +37,7 @@ tests:
37
37
value: nodeId
38
38
39
39
- 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
57
41
use."
58
42
identity: "alpha"
59
43
command: "readAttribute"
@@ -63,7 +47,7 @@ tests:
63
47
saveAs: TH1_Fabric_Index
64
48
65
49
- 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
67
51
from the Node Operational Credentials cluster. Save the FabricIndex
68
52
for TH1 as TH1_Fabric_Index for future use."
69
53
identity: "alpha"
@@ -78,7 +62,7 @@ tests:
78
62
79
63
# verification: "Verify that there is a single entry in the list and the FabricIndex for that entry matches TH1_Fabric_Index."
80
64
- 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
82
66
ExpiryLengthSeconds field set to 60 seconds"
83
67
identity: "alpha"
84
68
cluster: "General Commissioning"
@@ -95,7 +79,7 @@ tests:
95
79
value: 0# OK
96
80
97
81
# 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."
99
83
identity: "alpha"
100
84
command: "CSRRequest"
101
85
cluster: "Operational Credentials"
@@ -110,23 +94,10 @@ tests:
110
94
- name: "AttestationSignature"
111
95
saveAs: attestationSignature
112
96
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: ""
126
97
- 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
130
101
Node_Operational_Certificate_TH2. Save IPK as IPK_TH2. Extract the
131
102
RCAC public key and save as Root_Public_Key_TH2."
132
103
identity: "beta"
@@ -147,20 +118,20 @@ tests:
147
118
- name: "IPK"
148
119
saveAs: IPK_TH2
149
120
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"
152
124
identity: "beta"
153
125
cluster: "CommissionerCommands"
154
-
command: "GetCommissionerNodeId"
126
+
command: "GetCommissionerRootCertificate"
155
127
response:
156
128
values:
157
-
- name: "nodeId"
158
-
saveAs: Commissioner_Node_Id_TH2
129
+
- name: "RCAC"
130
+
saveAs: Root_CA_Certificate_TH2
159
131
160
-
# verification: ""
161
132
- 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."
164
135
identity: "alpha"
165
136
command: "AddTrustedRootCertificate"
166
137
cluster: "Operational Credentials"
@@ -169,9 +140,18 @@ tests:
169
140
- name: "RootCACertificate"
170
141
value: Root_CA_Certificate_TH2
171
142
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)"
173
153
- 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
175
155
fields: NOCValue as Node_Operational_Certificate_TH2. ICACValue as
176
156
Intermediate_Certificate_TH2. IpkValue as IPK_TH2. CaseAdminSubject as
177
157
the NodeID of TH2. AdminVendorId as the Vendor ID of TH2."
@@ -196,13 +176,13 @@ tests:
196
176
value: 0
197
177
198
178
# 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"
200
180
# verification: ""
201
181
# Disabling this step as this occurs from the AddNOC command being run
202
182
disabled: true
203
183
204
184
- 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."
206
186
identity: "beta"
207
187
cluster: "DelayCommands"
208
188
command: "WaitForCommissionee"
@@ -212,7 +192,7 @@ tests:
212
192
value: 0x43211234
213
193
214
194
# verification: "DUT is able to open the CASE session with TH2"
0 commit comments