forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest_TC_DD_3_14.yaml
More file actions
376 lines (348 loc) · 19.5 KB
/
Copy pathTest_TC_DD_3_14.yaml
File metadata and controls
376 lines (348 loc) · 19.5 KB
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
# 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:
7.3.14. [TC-DD-3.14] Commissioning Flow - Manual Pairing Code - Negative
scenario [DUT - Commissioner]
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"If (PICS_11_MANUAL_PC), Provide the 11 digit manual pairing code from
the Commissionee to the DUT in any format supported by DUT"
verification:
"Device TH: ./out/all-clusters-app/chip-all-clusters-app ...
[1645845935.798806][8925:8925] CHIP:DL: Device Configuration:
[1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN
[1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001)
[1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0
[1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021
[1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840
(0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date:
(not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535
(0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode:
[MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR:
Copy/paste the below URL in a browser to see the QR Code:
[1645845935.799164][8925:8925] CHIP:SVR:
https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00
[1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code:
[34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual
pairing code: [749701123365521327694]"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide the 21 digit manual pairing code from
the Commissionee to the DUT in any format supported by DUT"
verification:
"Device TH: ./out/all-clusters-app/chip-all-clusters-app ...
[1645845935.798806][8925:8925] CHIP:DL: Device Configuration:
[1645845935.798853][8925:8925] CHIP:DL: Serial Number: TEST_SN
[1645845935.798875][8925:8925] CHIP:DL: Vendor Id: 65521 (0xFFF1)
[1645845935.798904][8925:8925] CHIP:DL: Product Id: 32769 (0x8001)
[1645845935.798929][8925:8925] CHIP:DL: Hardware Version: 0
[1645845935.798960][8925:8925] CHIP:DL: Setup Pin Code: 20202021
[1645845935.798984][8925:8925] CHIP:DL: Setup Discriminator: 3840
(0xF00) [1645845935.799008][8925:8925] CHIP:DL: Manufacturing Date:
(not set) [1645845935.799038][8925:8925] CHIP:DL: Device Type: 65535
(0xFFFF) [1645845935.799106][8925:8925] CHIP:SVR: SetupQRCode:
[MT:-24J042C00KA0648G00] [1645845935.799135][8925:8925] CHIP:SVR:
Copy/paste the below URL in a browser to see the QR Code:
[1645845935.799164][8925:8925] CHIP:SVR:
https://dhrishi.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00
[1645845935.799195][8925:8925] CHIP:SVR: Manual pairing code:
[34970112332] [1645845935.799236][8925:8925] CHIP:SVR: Long manual
pairing code: [749701123365521327694]"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), VERSION: Using the manual code from Step 1.a,
generate a new manual code but substituting out the current VERSION
with an invalid VERSION: 1"
verification:
"BLOCKED chip-device-ctrl BUG: Generated pairing code does not change
when Version String is changed from 0 to, assuming it should
chip-device-ctrl > setup-payload generate -vr 1 -vi 65521 -pi 32769
-cf 0 -dc 2 -dv 3840 -ps 20202021 2022-03-03 01:09:59 matter-te-6
chip.SPL[333678] INFO Manual pairing code: [34970112332] 2022-03-03
01:09:59 matter-te-6 chip.SPL[333678] INFO SetupQRCode:
[MT:.24J042C00KA0648G00]"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"BLOCKED chip-device-ctrl BUG: Generated pairing code does not change
when Version String is changed from 0 to, assuming it should"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), VERSION: Using the manual code from Step 1.b,
generate a new manual code but substituting out the current VERSION
with an invalid VERSION: 1"
verification: ""
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing manualcode 1234 10054912339 ... Device TH:
./out/all-clusters-app/chip-all-clusters-app ..."
disabled: true
- label:
"If (PICS_11_MANUAL_PC), VID_PID_PRESENT: Using the manual code from
Step 1.a, generate a new manual code but substituting out the current
VID_PID_PRESENT with an invalid VID_PID_PRESENT set to 1"
verification:
"NEED SUPPORT: Unable to generate this manual code with
chip-device-ctrl: does not allow the option"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"NEED SUPPORT: Unable to generate manual code in previous step"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), VID_PID_PRESENT: Using the manual code from
Step 1.b, generate a new manual code but substituting out the current
VID_PID_PRESENT with an invalid VID_PID_PRESENT set to 0"
verification:
"NEED SUPPORT: Unable to generate this manual code with
chip-device-ctrl: does not allow the option"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"NEED SUPPORT: Unable to generate manual code in previous step"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), SHORT DISCRIMINATOR: Using the manual code
from Step 1.a, generate a new manual code but substituting out the
current SHORT DISCRIMINATOR string with one set to an invalid one
(i.e. Any different SHORT DISCRIMINATOR than the commissionees SHORT
DISCRIMINATOR while following section 5.1.1.5. 'Discriminator value')"
verification:
"chip-device-ctrl > setup-payload generate -vr 0 -vi 65521 -pi 32769
-cf 0 -dc 2 -dv 1111 -ps 20202021 2022-03-03 01:56:46 matter-te-6
chip.SPL[381013] INFO Manual pairing code: [10054912339] 2022-03-03
01:56:46 matter-te-6 chip.SPL[381013] INFO SetupQRCode:
[MT:-24J0MBW17K10648G00]"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing manualcode 1234 10054912339 ... [1646273075122]
[54299:29491292] CHIP: [BLE] NewConnection [1646273075150]
[54299:29491292] CHIP: [BLE] CBManagerState: ON [1646273075152]
[54299:29491293] CHIP: [BLE] CBManagerState: RESETTING [1646273076351]
[54299:29491293] CHIP: [BLE] CBManagerState: ON Illegal instruction: 4
Device TH: ./out/all-clusters-app/chip-all-clusters-app ... DUT does
not commission the TH to the Matter network"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), SHORT DISCRIMINATOR: Using the manual code
from Step 1.b, generate a new manual code but substituting out the
current SHORT DISCRIMINATOR string with one set to an invalid one
(i.e. Any different SHORT DISCRIMINATOR than the commissionees SHORT
DISCRIMINATOR while following section 5.1.1.5. Discriminator value)"
verification:
"NEED SUPPORT: Unable to generate this manual code with
chip-device-ctrl: does not generate 21-digit codes for every input"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"NEED SUPPORT: Unable to generate manual code in previous step"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Passcode: Using the manual code from Step
1.a, generate a new manual code using all the same Onboarding Payload
components except for the Passcode. For each Passcode in the following
list, set the Passcode component to one of the invalid Passcode and
generate a new manual code using all the same Onboarding Payload
components and one Passcode from the list: 00000000, 11111111,
22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888,
99999999, 12345678, 87654321"
verification:
"NEED SUPPORT: Unable to generate false manual codes with
chip-device-ctrl chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 00000000 2022-03-03 00:11:58
matter-te-6 chip.SPL[22108] ERROR Failed encoding invalid payload Chip
Stack Error 47 00000000: 11111111: 22222222: 33333333: 44444444:
55555555: 66666666: 77777777: 88888888: 99999999: 12345678: 87654321"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide each of the manual pairing codes,
generated in the previous step, to the DUT in any format supported by
the DUT"
verification:
"NEED SUPPORT: Unable to generate manual code in previous step"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Passcode: Using the manual code from Step
1.b, generate a new manual code using all the same Onboarding Payload
components except for the Passcode. For each Passcode in the following
list, set the Passcode component to one of the invalid Passcode and
generate a new manual code using all the same Onboarding Payload
components and one Passcode from the list: 00000000, 11111111,
22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888,
99999999, 12345678, 87654321"
verification:
"NEED SUPPORT: Unable to generate false manual codes with
chip-device-ctrl chip-device-ctrl > setup-payload generate -vr 0 -vi
65521 -pi 32769 -cf 1 -dc 4 -dv 3840 -ps 00000000 2022-03-03 00:11:58
matter-te-6 chip.SPL[22108] ERROR Failed encoding invalid payload Chip
Stack Error 47 00000000: 11111111: 22222222: 33333333: 44444444:
55555555: 66666666: 77777777: 88888888: 99999999: 12345678: 87654321"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide each of the manual pairing codes,
generated in the previous step, to the DUT in any format supported by
the DUT"
verification:
"NEED SUPPORT: Unable to generate manual code in previous step"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), VENDOR_ID: Using the manual code from Step
1.b, generate a new manual code using all the same Onboarding Payload
components except for the VENDOR_ID. For each VENDOR_ID in the
following list, set the VENDOR_ID component to one of the invalid Test
VENDOR_IDs and generate a new manual code using all the same
Onboarding Payload components and one Test VENDOR_ID from the list:
0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4"
verification:
"16-MacBook-Pro:connectedhomeip liam$ sudo
./examples/chip-tool/out/debug/chip-tool payload verhoeff-generate
74970112336552132769 [1646274552600] [54458:29507435] CHIP: [SPL]
Generating Character for: 74970112336552132769 [1646274552601]
[54458:29507435] CHIP: [SPL] Generated Char: 4 0xFFF1:
749701123365521327694 0xFFF2: 749701123365522327692 0xFFF3:
749701123365523327697 0xFFF4: 749701123365524327693"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide each of the manual pairing codes,
generated in the previous step, to the DUT in any format supported by
the DUT"
verification:
"NOTE: chip-tool as a commissioner is meant to support these invalid
manual pairing codes but other commissioners SHALL NOT support them
without understanding the risks. chip-tool cannot be used as a
'negative' case example for invalid Version ID manual codes. Run each
of the invalid manual codes in the previous step with the command
listed below 'DUT Commissioner' DUT Commissioner: sudo
./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234
749701123365521327694 ... Device TH:
./out/all-clusters-app/chip-all-clusters-app ..."
disabled: true
- label:
"If (PICS_21_MANUAL_PC), PRODUCT_ID: Using the manual code from Step
1.b, generate a new manual code but substituting out the current
PRODUCT_ID with an invalid PRODUCT_ID of 0x0000(i.e. While following
section 2.5.3. Product Identifier)"
verification:
"16-MacBook-Pro:connectedhomeip liam$ sudo
./examples/chip-tool/out/debug/chip-tool payload verhoeff-generate
74970112336552100000 Password: [1646274432948] [54452:29506141] CHIP:
[SPL] Generating Character for: 74970112336552100000 [1646274432949]
[54452:29506141] CHIP: [SPL] Generated Char: 6 Manual Pairing code:
749701123365521000006"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"BLOCKED chip-tool BUG: chip-tool is allowing the Product ID to be
'00000' when this should not be allowed. However, this check may not
be handled during the commissionning process. DUT Commissioner: sudo
./examples/chip-tool/out/debug/chip-tool pairing manualcode 1234
749701123365521000006 ... [1646275242410] [54535:29515978] CHIP: [CTL]
Received CommissioningComplete response [1646275242410]
[54535:29515978] CHIP: [CTL] Rendezvous cleanup [1646275242410]
[54535:29515978] CHIP: [TOO] Device commissioning completed with
success Device TH: ./out/all-clusters-app/chip-all-clusters-app ...
[1646275242.549708][29139:29139] CHIP:SVR: Commissioning completed
successfully"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), CHECK_DIGIT: Using the manual code from Step
1.a, generate a new manual code but substituting out the current
CHECK_DIGIT with an invalid CHECK_DIGIT (i.e. Any different
CHECK_DIGIT than the commissionees CHECK_DIGIT while following Table
38. Encoding Method without Vendor and Product IDs (VID_PID_Present ==
0))"
verification:
"16-MacBook-Pro:connectedhomeip liam$ sudo
./examples/chip-tool/out/debug/chip-tool payload verhoeff-verify
34970112331 10 [1646275789088] [54629:29523682] CHIP: [SPL] Verifying
Manual Code: 3497011233 [1646275789088] [54629:29523682] CHIP: [SPL]
34970112331 is INVALID at position 10 Manual Pairing code: 3497011233"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing manualcode 1234 749701123365521327693 ... [1646275837642]
[54631:29524424] CHIP: [-]
../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49:
CHIP Error 0x00000013: Integrity check failed at
../../commands/common/CHIPCommand.cpp:62 [1646275837642]
[54631:29524424] CHIP: [TOO] Run command failure:
../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49:
CHIP Error 0x00000013: Integrity check failed [1646275837649]
[54631:29524424] CHIP: [SPT] VerifyOrDie failure at
../../third_party/connectedhomeip/src/lib/support/Pool.h:311:
Allocated() == 0 Abort trap: 6 Device TH:
./out/all-clusters-app/chip-all-clusters-app ... DUT has not
commissioned the TH to the Matter network"
disabled: true
- label:
"If (PICS_21_MANUAL_PC), Check Digit: Using the manual code from Step
1.b, generate a new manual code but substituting out the current
CHECK_DIGIT with an invalid CHECK_DIGIT (i.e. Any different
CHECK_DIGIT than the commissionees CHECK_DIGIT while following Table
39. Encoding Method with Vendor and Product IDs included
(VID_PID_Present == 1))"
verification:
"16-MacBook-Pro:connectedhomeip liam$ sudo
./examples/chip-tool/out/debug/chip-tool payload verhoeff-verify
749701123365521327693 20 [1646275504257] [54540:29518920] CHIP: [SPL]
Verifying Manual Code: 74970112336552132769 [1646275504258]
[54540:29518920] CHIP: [SPL] 749701123365521327693 is INVALID at
position 20 Manual Pairing code: 749701123365521327693"
disabled: true
- label:
"If (PICS_11_MANUAL_PC), Provide the manual pairing code, generated in
the previous step, to the DUT in any format supported by the DUT"
verification:
"DUT Commissioner: sudo ./examples/chip-tool/out/debug/chip-tool
pairing manualcode 1234 749701123365521327693 ... [1646275557755]
[54545:29519511] CHIP: [-]
../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49:
CHIP Error 0x00000013: Integrity check failed at
../../commands/common/CHIPCommand.cpp:62 [1646275557755]
[54545:29519511] CHIP: [TOO] Run command failure:
../../third_party/connectedhomeip/src/setup_payload/ManualSetupPayloadParser.cpp:49:
CHIP Error 0x00000013: Integrity check failed [1646275557761]
[54545:29519511] CHIP: [SPT] VerifyOrDie failure at
../../third_party/connectedhomeip/src/lib/support/Pool.h:311:
Allocated() == 0 Abort trap: 6 Device TH:
./out/all-clusters-app/chip-all-clusters-app ... DUT has not
commissioned the TH to the Matter network"
disabled: true