Skip to content

Commit 9966613

Browse files
Update DRLK feature PICS to correct format (#22249)
* Update DRLK feature PICS to correct format - TC-DRLK-XX use wrong values for two pics (see #22248) This PR renames the PICS and also properly implement TC-DRLK-1.1 feature bits check to match test plan Fixes #22248 Testing done: - Tests in CI still pass after regen * Fix CI PICS values to match existing application
1 parent 6329339 commit 9966613

File tree

8 files changed

+764
-297
lines changed

8 files changed

+764
-297
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4165,12 +4165,12 @@ PICS:
41654165
- label:
41664166
"Does the DUT(server) support the 'Lock supports yearday access
41674167
schedules' feature?"
4168-
id: DRLK.S.F10
4168+
id: DRLK.S.F0a
41694169

41704170
- label:
41714171
"Does the DUT(server) support the 'Lock supports holiday access
41724172
schedules' feature?"
4173-
id: DRLK.S.F11
4173+
id: DRLK.S.F0b
41744174

41754175
- label:
41764176
"Does the DUT(server) support the 'PIN codes over the-air supported

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

+97-19
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,103 @@ tests:
4444
PICS:
4545
" !DRLK.S.F00 && !DRLK.S.F01 && !DRLK.S.F02 && !DRLK.S.F04 &&
4646
!DRLK.S.F05 && !DRLK.S.F06 && !DRLK.S.F07 && !DRLK.S.F08 &&
47-
!DRLK.S.F10 && !DRLK.S.F11 "
47+
!DRLK.S.F0a && !DRLK.S.F0b "
4848
command: "readAttribute"
4949
attribute: "FeatureMap"
5050
response:
5151
value: 0
5252
constraints:
5353
type: bitmap32
5454

55-
- label: "TH reads the FeatureMap from DUT"
56-
PICS:
57-
DRLK.S.F00 || DRLK.S.F01 || DRLK.S.F02 || DRLK.S.F04 || DRLK.S.F05 ||
58-
DRLK.S.F06 || DRLK.S.F07 || DRLK.S.F08 || DRLK.S.F10 || DRLK.S.F11
55+
- label: "Given DRLK.S.F00(PIN) ensure featuremap has the correct bit set"
56+
PICS: DRLK.S.F00
57+
command: "readAttribute"
58+
attribute: "FeatureMap"
59+
response:
60+
constraints:
61+
type: bitmap32
62+
hasMasksSet: [0x1]
63+
64+
- label: "Given DRLK.S.F01(RID) ensure featuremap has the correct bit set"
65+
PICS: DRLK.S.F01
66+
command: "readAttribute"
67+
attribute: "FeatureMap"
68+
response:
69+
constraints:
70+
type: bitmap32
71+
hasMasksSet: [0x2]
72+
73+
- label: "Given DRLK.S.F02(FGP) ensure featuremap has the correct bit set"
74+
PICS: DRLK.S.F02
75+
command: "readAttribute"
76+
attribute: "FeatureMap"
77+
response:
78+
constraints:
79+
type: bitmap32
80+
hasMasksSet: [0x4]
81+
82+
- label: "Given DRLK.S.F04(WDSCH) ensure featuremap has the correct bit set"
83+
PICS: DRLK.S.F04
84+
command: "readAttribute"
85+
attribute: "FeatureMap"
86+
response:
87+
constraints:
88+
type: bitmap32
89+
hasMasksSet: [0x10]
90+
91+
- label: "Given DRLK.S.F05(DPS) ensure featuremap has the correct bit set"
92+
PICS: DRLK.S.F05
93+
command: "readAttribute"
94+
attribute: "FeatureMap"
95+
response:
96+
constraints:
97+
type: bitmap32
98+
hasMasksSet: [0x20]
99+
100+
- label: "Given DRLK.S.F06(FACE) ensure featuremap has the correct bit set"
101+
PICS: DRLK.S.F06
102+
command: "readAttribute"
103+
attribute: "FeatureMap"
104+
response:
105+
constraints:
106+
type: bitmap32
107+
hasMasksSet: [0x40]
108+
109+
- label: "Given DRLK.S.F07(COTA) ensure featuremap has the correct bit set"
110+
PICS: DRLK.S.F07
111+
command: "readAttribute"
112+
attribute: "FeatureMap"
113+
response:
114+
constraints:
115+
type: bitmap32
116+
hasMasksSet: [0x80]
117+
118+
- label: "Given DRLK.S.F08(USR) ensure featuremap has the correct bit set"
119+
PICS: DRLK.S.F08
120+
command: "readAttribute"
121+
attribute: "FeatureMap"
122+
response:
123+
constraints:
124+
type: bitmap32
125+
hasMasksSet: [0x100]
126+
127+
- label: "Given DRLK.S.F0a(YDSCH) ensure featuremap has the correct bit set"
128+
PICS: DRLK.S.F0a
129+
command: "readAttribute"
130+
attribute: "FeatureMap"
131+
response:
132+
constraints:
133+
type: bitmap32
134+
hasMasksSet: [0x400]
135+
136+
- label: "Given DRLK.S.F0b(HDSCH) ensure featuremap has the correct bit set"
137+
PICS: DRLK.S.F0b
59138
command: "readAttribute"
60139
attribute: "FeatureMap"
61140
response:
62141
constraints:
63142
type: bitmap32
64-
minValue: 1
65-
maxValue: 4095
143+
hasMasksSet: [0x800]
66144

67145
- label: "TH reads AttributeList from DUT"
68146
command: "readAttribute"
@@ -111,17 +189,17 @@ tests:
111189
type: list
112190
contains: [20]
113191

114-
- label: "TH reads Feature dependent(DRLK.S.F10) attribute in AttributeList"
115-
PICS: DRLK.S.F10
192+
- label: "TH reads Feature dependent(DRLK.S.F0a) attribute in AttributeList"
193+
PICS: DRLK.S.F0a
116194
command: "readAttribute"
117195
attribute: "AttributeList"
118196
response:
119197
constraints:
120198
type: list
121199
contains: [21]
122200

123-
- label: "TH reads Feature dependent(DRLK.S.F11) attribute in AttributeList"
124-
PICS: DRLK.S.F11
201+
- label: "TH reads Feature dependent(DRLK.S.F0b) attribute in AttributeList"
202+
PICS: DRLK.S.F0b
125203
command: "readAttribute"
126204
attribute: "AttributeList"
127205
response:
@@ -269,9 +347,9 @@ tests:
269347
contains: [11, 12, 13]
270348

271349
- label:
272-
"TH reads Feature dependent commands(DRLK.S.F10) in
350+
"TH reads Feature dependent commands(DRLK.S.F0a) in
273351
AcceptedCommandList"
274-
PICS: DRLK.S.F10
352+
PICS: DRLK.S.F0a
275353
command: "readAttribute"
276354
attribute: "AcceptedCommandList"
277355
response:
@@ -280,9 +358,9 @@ tests:
280358
contains: [14, 15, 16]
281359

282360
- label:
283-
"TH reads Feature dependent commands(DRLK.S.F11) in
361+
"TH reads Feature dependent commands(DRLK.S.F0b) in
284362
AcceptedCommandList"
285-
PICS: DRLK.S.F11
363+
PICS: DRLK.S.F0b
286364
command: "readAttribute"
287365
attribute: "AcceptedCommandList"
288366
response:
@@ -322,9 +400,9 @@ tests:
322400
contains: [12]
323401

324402
- label:
325-
"TH reads Feature dependent command(DRLK.S.F10) in
403+
"TH reads Feature dependent command(DRLK.S.F0a) in
326404
GeneratedCommandList"
327-
PICS: DRLK.S.F10
405+
PICS: DRLK.S.F0a
328406
command: "readAttribute"
329407
attribute: "GeneratedCommandList"
330408
response:
@@ -333,9 +411,9 @@ tests:
333411
contains: [15]
334412

335413
- label:
336-
"TH reads Feature dependent command(DRLK.S.F11) in
414+
"TH reads Feature dependent command(DRLK.S.F0b) in
337415
GeneratedCommandList"
338-
PICS: DRLK.S.F11
416+
PICS: DRLK.S.F0b
339417
command: "readAttribute"
340418
attribute: "GeneratedCommandList"
341419
response:

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ tests:
683683

684684
- label:
685685
"TH reads NumberOfYearDay SchedulesSupportedPeruser attribute from DUT"
686-
PICS: DRLK.S.F10 && DRLK.S.A0015
686+
PICS: DRLK.S.F0a && DRLK.S.A0015
687687
verification: |
688688
./chip-tool doorlock read number-of-year-day-schedules-supported-per-user 1 1
689689
@@ -729,7 +729,7 @@ tests:
729729
disabled: true
730730

731731
- label: "TH reads NumberOfHoliDay SchedulesSupported attribute from DUT"
732-
PICS: DRLK.S.F11 && DRLK.S.A0016
732+
PICS: DRLK.S.F0b && DRLK.S.A0016
733733
verification: |
734734
./chip-tool doorlock read number-of-holiday-schedules-supported 1 1
735735

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tests:
3434

3535
- label:
3636
"TH reads NumberOfHoliday SchedulesSupported and saves for future use."
37-
PICS: DRLK.S.F11 && DRLK.S.A0016
37+
PICS: DRLK.S.F0b && DRLK.S.A0016
3838
verification: |
3939
./chip-tool doorlock read number-of-holiday-schedules-supported 1 1
4040
Verify " NumberOfHoliDay SchedulesSuppored" on the TH(Chip-tool) Log:
@@ -51,7 +51,7 @@ tests:
5151
"TH sends Set Holiday Schedule Command to DUT with the following
5252
values: HolidayIndex as 1 LocalStartTime as 20 Seconds LocalEndTime as
5353
30 Seconds OperatingMode as 0"
54-
PICS: DRLK.S.F11 && DRLK.S.C11.Rsp
54+
PICS: DRLK.S.F0b && DRLK.S.C11.Rsp
5555
verification: |
5656
./chip-tool doorlock set-holiday-schedule 1 20 30 0 1 1
5757
Verify " DUT send SUCCESS response." on the TH(Chip-tool) Log:
@@ -73,7 +73,7 @@ tests:
7373

7474
- label:
7575
"TH sends Get Holiday Schedule Command to DUT with HolidayIndex as 1"
76-
PICS: DRLK.S.F11 && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
76+
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
7777
verification: |
7878
./chip-tool doorlock get-holiday-schedule 1 1 1
7979
Verify " DUT responds with Get Holiday Schedule Response" on the TH(Chip-tool) Log:
@@ -131,7 +131,7 @@ tests:
131131
- label:
132132
"TH sends Get Holiday Schedule Command to DUT with Invalid
133133
HolidayIndex as 15."
134-
PICS: DRLK.S.F11 && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
134+
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
135135
verification: |
136136
./chip-tool doorlock get-holiday-schedule 15 1 1
137137
Verify " DUT sends INVALID_COMMAND response" on the TH(Chip-tool) Log:
@@ -153,7 +153,7 @@ tests:
153153
"TH sends Get Holiday Schedule Command to DUT with the HolidayIndex as
154154
10 (value is in the the range of step 1 but Holiday Schedule entry not
155155
available)"
156-
PICS: DRLK.S.F11 && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
156+
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
157157
verification: |
158158
./chip-tool doorlock get-holiday-schedule 10 1 1
159159
Verify " DUT sends a NOT_FOUND status" on the TH(Chip-tool) Log:
@@ -169,7 +169,7 @@ tests:
169169

170170
- label:
171171
"TH send Clear Holiday Schedule Command to DUT with HolidayIndex as 1"
172-
PICS: DRLK.S.F11 && DRLK.S.C13.Rsp
172+
PICS: DRLK.S.F0b && DRLK.S.C13.Rsp
173173
verification: |
174174
./chip-tool doorlock clear-holiday-schedule 1 1 1
175175
Verify " DUT sends SUCCESS response" on the TH(Chip-tool) Log:
@@ -191,7 +191,7 @@ tests:
191191

192192
- label:
193193
"TH sends Get Holiday Schedule Command to DUT with HolidayIndex as 1."
194-
PICS: DRLK.S.F11 && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
194+
PICS: DRLK.S.F0b && DRLK.S.C12.Rsp && DRLK.S.C12.Tx
195195
verification: |
196196
./chip-tool doorlock get-holiday-schedule 1 1 1
197197
Verify " DUT sends a NOT_FOUND status" on the TH(Chip-tool) Log:

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

+9-9
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ tests:
8484
value: null
8585

8686
- label: "TH reads NumberOfYearDay SchedulesSupportedPerUser attribute"
87-
PICS: DRLK.S.F10 && DRLK.S.A0015
87+
PICS: DRLK.S.F0a && DRLK.S.A0015
8888
command: "readAttribute"
8989
attribute: "NumberOfYearDaySchedulesSupportedPerUser"
9090
response:
@@ -104,7 +104,7 @@ tests:
104104
maxValue: 65534
105105

106106
- label: "TH sends Set Year Day Schedule Command to DUT"
107-
PICS: DRLK.S.F10 && DRLK.S.C0e.Rsp
107+
PICS: DRLK.S.F0a && DRLK.S.C0e.Rsp
108108
command: "SetYearDaySchedule"
109109
arguments:
110110
values:
@@ -119,7 +119,7 @@ tests:
119119

120120
#issue #18591
121121
- label: "TH sends Get Year Day Schedule Command to DUT"
122-
PICS: DRLK.S.F10 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
122+
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
123123
command: "GetYearDaySchedule"
124124
arguments:
125125
values:
@@ -159,7 +159,7 @@ tests:
159159
error: INVALID_COMMAND
160160

161161
- label: "TH sends Get Year Day Schedule Command to DUT"
162-
PICS: DRLK.S.F10 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
162+
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
163163
command: "GetYearDaySchedule"
164164
arguments:
165165
values:
@@ -203,7 +203,7 @@ tests:
203203
value: 0
204204

205205
- label: "TH sends Get Year Day Schedule Command to DUT"
206-
PICS: DRLK.S.F10 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
206+
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
207207
command: "GetYearDaySchedule"
208208
arguments:
209209
values:
@@ -237,7 +237,7 @@ tests:
237237
value: 1
238238

239239
- label: "TH sends Get Year Day Schedule Command to DUT"
240-
PICS: DRLK.S.F10 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx && DRLK.S.C10.Rsp
240+
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx && DRLK.S.C10.Rsp
241241
command: "GetYearDaySchedule"
242242
arguments:
243243
values:
@@ -275,7 +275,7 @@ tests:
275275
value: 2100
276276

277277
- label: "TH sends Get Year Day Schedule Command to DUT"
278-
PICS: DRLK.S.F10 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
278+
PICS: DRLK.S.F0a && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
279279
command: "GetYearDaySchedule"
280280
arguments:
281281
values:
@@ -299,7 +299,7 @@ tests:
299299
minValue: 1081
300300

301301
- label: "TH sends Clear Year Day Schedule to DUT"
302-
PICS: DRLK.S.F10 && DRLK.S.C10.Rsp
302+
PICS: DRLK.S.F0a && DRLK.S.C10.Rsp
303303
command: "ClearYearDaySchedule"
304304
arguments:
305305
values:
@@ -311,7 +311,7 @@ tests:
311311
error: INVALID_COMMAND
312312

313313
- label: "Clear a year day schedule for the first user"
314-
PICS: DRLK.S.F10 && DRLK.S.C10.Rsp
314+
PICS: DRLK.S.F0a && DRLK.S.C10.Rsp
315315
command: "ClearYearDaySchedule"
316316
arguments:
317317
values:

0 commit comments

Comments
 (0)