forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_TC_ACL_2_7.yaml
403 lines (368 loc) · 17.4 KB
/
Test_TC_ACL_2_7.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name: 133.2.3. [TC-ACL-2.7] Extension multi-fabric
PICS:
- ACL.S
config:
nodeId: 0x12344321
cluster: "Access Control"
endpoint: 0
nodeId2:
type: node_id
defaultValue: 0xCAFE
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
waitAfterCommissioning:
type: int16u
defaultValue: 5000
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
D_OK_EMPTY:
type: octet_string
defaultValue: "hex:1718"
D_OK_SINGLE:
type: octet_string
defaultValue: "hex:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
tests:
- label: "Step 1:Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Read the TH1 commissioner node ID"
cluster: "CommissionerCommands"
command: "GetCommissionerNodeId"
response:
values:
- name: "nodeId"
saveAs: TH1CommissionerNodeId
- label:
"Step 2:TH1 reads OperationalCredentials cluster CurrentFabricIndex
attribute"
command: "readAttribute"
cluster: "Operational Credentials"
attribute: "CurrentFabricIndex"
response:
saveAs: TH1FabricIndex
- label: "Step 3:TH1 puts DUT into commissioning mode"
cluster: "Administrator Commissioning"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
PICS: CADMIN.S.C00.Rsp && PICS_SDK_CI_ONLY
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"
#Issue https://github.com/project-chip/connectedhomeip/issues/26127
- label:
"Step 3 & 4: TH1 puts DUT into commissioning mode, TH2 commissions DUT
using admin node ID N2"
verification: |
Open a commissioning window On TH1(Chiptool)using below command
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
[1657186324.710951][10820:10825] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x0
[1657186324.710980][10820:10825] CHIP:CTL: Successfully opened pairing window On TH(Chiptool)e device
[1657186324.711048][10820:10825] CHIP:CTL: Manual pairing code: [36253605617]
[1657186324.711108][10820:10825] CHIP:CTL: SetupQRCode: [MT:-24J0IRV01A7TB7E700]
Commission TH2(Chiptool) to DUT using manualcode generated in TH1 using open commission window
./chip-tool pairing code 2 36253605617 --commissioner-name beta --commissioner-nodeid 223344
[1657186359.584672][3509:3514] CHIP:CTL: Successfully finished commissioning step 'Cleanup'
[1657186359.584743][3509:3514] CHIP:TOO: Device commissioning completed with success
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && CADMIN.S.C00.Rsp
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "Waiting after opening commissioning window"
PICS: CADMIN.S.C00.Rsp && PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: waitAfterCommissioning
- label: "Step 4:TH2 starts a commissioning process with DUT"
identity: "beta"
PICS: PICS_SDK_CI_ONLY
cluster: "CommissionerCommands"
command: "PairWithCode"
arguments:
values:
- name: "nodeId"
value: nodeId2
- name: "payload"
value: payload
- label: "DUT is commissioned by TH2 on Fabric ID2 "
identity: "beta"
PICS: PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId2
- label: "Read the TH2 commissioner node ID"
PICS: PICS_SDK_CI_ONLY
identity: "beta"
cluster: "CommissionerCommands"
command: "GetCommissionerNodeId"
response:
values:
- name: "nodeId"
saveAs: TH2CommissionerNodeId
- label:
"Step 5:TH2 reads OperationalCredentials cluster CurrentFabricIndex
attribute"
identity: "beta"
PICS: PICS_SDK_CI_ONLY
command: "readAttribute"
cluster: "Operational Credentials"
attribute: "CurrentFabricIndex"
response:
saveAs: TH2FabricIndex
- label:
"Step 5:TH2 reads OperationalCredentials cluster CurrentFabricIndex
attribute"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool), verify CurrentFabricIndex attribute of operationalCredential cluster as 2
[1657186956.724761][3910:3915] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 3161849734
[1657186956.731658][3910:3915] CHIP:TOO: CurrentFabricIndex: 2
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 6:TH1 writes DUT Endpoint 0 AccessControl cluster Extension
attribute, value is list of AccessControlExtensionStruct containing 1
element"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_OK_EMPTY, FabricIndex: TH1FabricIndex }]
- label:
"Step 7:TH2 writes DUT Endpoint 0 AccessControl cluster Extension
attribute, value is list of AccessControlExtensionStruct containing 1
element"
PICS: ACL.S.A0001 && PICS_SDK_CI_ONLY
identity: "beta"
command: "writeAttribute"
attribute: "Extension"
arguments:
value: [{ Data: D_OK_SINGLE, FabricIndex: TH2FabricIndex }]
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label:
"Step 7:TH2 writes DUT Endpoint 0 AccessControl cluster Extension
attribute, value is list of AccessControlExtensionStruct containing 1
element"
verification: |
./chip-tool accesscontrol write extension '[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]' 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool),Verify Successfully to extension attribute list containg one element .
1657894672.479983][2433:2438] CHIP:DMG: WriteClient moving to [ResponseRe]
[1657894672.480057][2433:2438] CHIP:DMG: WriteResponseMessage =
[1657894672.480092][2433:2438] CHIP:DMG: {
[1657894672.480124][2433:2438] CHIP:DMG: AttributeStatusIBs =
[1657894672.480175][2433:2438] CHIP:DMG: [
[1657894672.480211][2433:2438] CHIP:DMG: AttributeStatusIB =
[1657894672.480251][2433:2438] CHIP:DMG: {
[1657894672.480288][2433:2438] CHIP:DMG: AttributePathIB =
[1657894672.480333][2433:2438] CHIP:DMG: {
[1657894672.480379][2433:2438] CHIP:DMG: Endpoint = 0x0,
[1657894672.480427][2433:2438] CHIP:DMG: Cluster = 0x1f,
[1657894672.480476][2433:2438] CHIP:DMG: Attribute = 0x0000_0001,
[1657894672.480521][2433:2438] CHIP:DMG: }
[1657894672.480570][2433:2438] CHIP:DMG:
[1657894672.480612][2433:2438] CHIP:DMG: StatusIB =
[1657894672.480657][2433:2438] CHIP:DMG: {
[1657894672.480700][2433:2438] CHIP:DMG: status = 0x00 (SUCCESS),
[1657894672.480745][2433:2438] CHIP:DMG: },
[1657894672.480789][2433:2438] CHIP:DMG:
[1657894672.480826][2433:2438] CHIP:DMG: },
[1657894672.480877][2433:2438] CHIP:DMG:
[1657894672.480911][2433:2438] CHIP:DMG: AttributeStatusIB =
[1657894672.480949][2433:2438] CHIP:DMG: {
[1657894672.480986][2433:2438] CHIP:DMG: AttributePathIB =
[1657894672.481028][2433:2438] CHIP:DMG: {
[1657894672.481072][2433:2438] CHIP:DMG: Endpoint = 0x0,
[1657894672.481120][2433:2438] CHIP:DMG: Cluster = 0x1f,
[1657894672.481168][2433:2438] CHIP:DMG: Attribute = 0x0000_0001,
[1657894672.481214][2433:2438] CHIP:DMG: ListIndex = Null,
[1657894672.481258][2433:2438] CHIP:DMG: }
[1657894672.481306][2433:2438] CHIP:DMG:
[1657894672.481347][2433:2438] CHIP:DMG: StatusIB =
[1657894672.481390][2433:2438] CHIP:DMG: {
[1657894672.481433][2433:2438] CHIP:DMG: status = 0x00 (SUCCESS),
[1657894672.481482][2433:2438] CHIP:DMG: },
[1657894672.481526][2433:2438] CHIP:DMG:
[1657894672.481562][2433:2438] CHIP:DMG: },
[1657894672.481605][2433:2438] CHIP:DMG:
[1657894672.481639][2433:2438] CHIP:DMG: ],
[1657894672.481686][2433:2438] CHIP:DMG:
[1657894672.481720][2433:2438] CHIP:DMG: InteractionModelRevision = 1
[1657894672.481754][2433:2438] CHIP:DMG: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && ACL.S.A0001
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "Step 8:TH1 reads AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_EMPTY, FabricIndex: TH1FabricIndex }]
- label: "Step 9:TH2 reads AccessControl cluster Extension attribute"
PICS: ACL.S.A0001 && PICS_SDK_CI_ONLY
identity: "beta"
command: "readAttribute"
attribute: "Extension"
response:
value: [{ Data: D_OK_SINGLE, FabricIndex: TH2FabricIndex }]
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "Step 9:TH2 reads AccessControl cluster Extension attribute"
verification: |
./chip-tool accesscontrol read extension 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool), Verify AccessControlExtensionStruct containing 1 element, and MUST NOT contain an element with FabricIndex F1
[1658327214.683199][2749:2754] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_0001 DataVersion: 2953114587
[1658327214.683283][2749:2754] CHIP:TOO: Extension: 1 entries
[1658327214.683348][2749:2754] CHIP:TOO: [1]: {
[1658327214.683388][2749:2754] CHIP:TOO: Data: 17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018
[1658327214.683423][2749:2754] CHIP:TOO: FabricIndex: 2
[1658327214.683454][2749:2754] CHIP:TOO: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && ACL.S.A0001
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label:
"Step 10:TH1 reads DUT Endpoint 0 AccessControl cluster
AccessControlExtensionChanged event"
PICS: ACL.S.E01
command: "readEvent"
event: "AccessControlExtensionChanged"
response:
value:
{
AdminNodeID: TH1CommissionerNodeId,
AdminPasscodeID: null,
ChangeType: 1,
LatestValue:
{ Data: D_OK_EMPTY, FabricIndex: TH1FabricIndex },
FabricIndex: TH1FabricIndex,
}
- label:
"Step 11:TH2 reads DUT Endpoint 0 AccessControl cluster
AccessControlExtensionChanged event"
PICS: ACL.S.E01 && PICS_SDK_CI_ONLY
identity: "beta"
command: "readEvent"
event: "AccessControlExtensionChanged"
response:
value:
{
AdminNodeID: TH2CommissionerNodeId,
AdminPasscodeID: null,
ChangeType: 1,
LatestValue:
{ Data: D_OK_SINGLE, FabricIndex: TH2FabricIndex },
FabricIndex: TH2FabricIndex,
}
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label:
"Step 11:TH2 reads DUT Endpoint 0 AccessControl cluster
AccessControlExtensionChanged event"
verification: |
./chip-tool accesscontrol read-event access-control-extension-changed 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool) , Verify AccessControlExtensionChanged containing 1 element, and MUST NOT contain an element with FabricIndex F1
[1663242753.957097][4264:4270] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0001
[1663242753.957400][4264:4270] CHIP:TOO: Event number: 8
[1663242753.957459][4264:4270] CHIP:TOO: Priority: Info
[1663242753.957507][4264:4270] CHIP:TOO: Timestamp: 20785045
[1663242753.957708][4264:4270] CHIP:TOO: AccessControlExtensionChanged: {
[1663242753.957801][4264:4270] CHIP:TOO: AdminNodeID: 223344
[1663242753.957867][4264:4270] CHIP:TOO: AdminPasscodeID: null
[1663242753.957931][4264:4270] CHIP:TOO: ChangeType: 1
[1663242753.957991][4264:4270] CHIP:TOO: LatestValue: {
[1663242753.958055][4264:4270] CHIP:TOO: Data: 17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018
[1663242753.958118][4264:4270] CHIP:TOO: FabricIndex: 2
[1663242753.958183][4264:4270] CHIP:TOO: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && ACL.S.E01
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "TH1 writes Extension attribute value as empty list"
PICS: ACL.S.A0001
command: "writeAttribute"
attribute: "Extension"
arguments:
value: []
- label: "TH2 writes Extension attribute value as empty list"
identity: "beta"
PICS: ACL.S.A0001 && PICS_SDK_CI_ONLY
command: "writeAttribute"
attribute: "Extension"
arguments:
value: []
#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH2 writes Extension attribute value as empty list"
verification: |
./chip-tool accesscontrol write extension '[{}]' 2 0 --commissioner-name beta --commissioner-nodeid 223344
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP && ACL.S.A0001
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"