@@ -53,17 +53,17 @@ def steps_TC_DRLK_2_5(self) -> list[TestStep]:
53
53
TestStep ("3" , "TH sends GetWeekDaySchedule Command to DUT." ,
54
54
"Verify that the DUT sends GetWeekDayScheduleResponse command with expected values." ),
55
55
TestStep ("4" , "TH sends SetWeekDaySchedule Command to DUT." ,
56
- "Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND." ),
56
+ "Verify that the DUT responds with INVALID_COMMAND." ),
57
57
TestStep ("5" , "TH sends SetWeekDaySchedule Command to DUT." ,
58
- "Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND." ),
58
+ "Verify that the DUT responds with INVALID_COMMAND." ),
59
59
TestStep ("6" , "TH sends SetWeekDaySchedule Command to DUT." ,
60
- "Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND." ),
60
+ "Verify that the DUT responds with INVALID_COMMAND." ),
61
61
TestStep ("7" , "TH sends SetWeekDaySchedule Command to DUT." ,
62
- "Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND." ),
62
+ "Verify that the DUT responds with INVALID_COMMAND." ),
63
63
TestStep ("8" , "TH sends GetWeekDaySchedule Command to DUT." ,
64
- "Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND." ),
64
+ "Verify that the DUT responds with with INVALID_COMMAND." ),
65
65
TestStep ("9" , "TH sends GetWeekDaySchedule Command to DUT." ,
66
- "Verify that the DUT responds with SetCredentialResponse command with Status NOT_FOUND." ),
66
+ "Verify that the DUT responds with GetWeekDayScheduleResponse command with Status NOT_FOUND." ),
67
67
TestStep ("10a" , "TH sends ClearWeekDaySchedule Command to DUT." , "Verify that the DUT sends SUCCESS response." ),
68
68
TestStep ("10b" , "TH sends ClearWeekDaySchedule Command to DUT." , "Verify that the DUT sends INVALID_COMMAND response." ),
69
69
TestStep ("10c" , "TH sends ClearWeekDaySchedule Command to DUT." , "Verify that the DUT sends INVALID_COMMAND response." ),
@@ -192,6 +192,8 @@ async def test_TC_DRLK_2_5(self):
192
192
cluster = drlkcluster ,
193
193
attribute = Clusters .DoorLock .Attributes .NumberOfWeekDaySchedulesSupportedPerUser )
194
194
logging .info ("NumberOfWeekDaySchedulesSupportedPerUser %s" % (number_week_day_schedules_supported_per_user ))
195
+ asserts .assert_in (number_week_day_schedules_supported_per_user , range (
196
+ 0 , 255 ), "NumberOfWeekDaySchedulesSupportedPerUser value is out of range" )
195
197
self .step ("2a" )
196
198
if self .pics_guard (self .check_pics ("DRLK.S.F08" ) and self .check_pics ("DRLK.S.C1a.Rsp" )):
197
199
try :
@@ -267,8 +269,8 @@ async def test_TC_DRLK_2_5(self):
267
269
Status .InvalidCommand )
268
270
self .step ("5" )
269
271
if self .pics_guard (self .check_pics ("DRLK.S.F04" ) and self .check_pics ("DRLK.S.C0b.Rsp" )):
270
- week_day_index = 0 # invalid value
271
- day_mask_map_index = 2 # valid value
272
+ week_day_index = 1 # Valid value
273
+ day_mask_map_index = 0 # invalid value
272
274
await self .set_week_days_schedule_cmd (
273
275
week_day_index ,
274
276
user_index ,
@@ -281,7 +283,7 @@ async def test_TC_DRLK_2_5(self):
281
283
self .step ("6" )
282
284
if self .pics_guard (self .check_pics ("DRLK.S.F04" ) and self .check_pics ("DRLK.S.C0b.Rsp" )):
283
285
week_day_index = 1 # valid value
284
- day_mask_map_index = 0 # invalid value
286
+ day_mask_map_index = 128 # invalid value
285
287
await self .set_week_days_schedule_cmd (
286
288
week_day_index ,
287
289
user_index ,
@@ -332,7 +334,7 @@ async def test_TC_DRLK_2_5(self):
332
334
start_Minute ,
333
335
end_Hour ,
334
336
end_Minute ,
335
- Status .InvalidCommand )
337
+ Status .NotFound )
336
338
self .step ("10a" )
337
339
if self .pics_guard (self .check_pics ("DRLK.S.F04" ) and self .check_pics ("DRLK.S.C0d.Rsp" )):
338
340
week_day_index = 1
0 commit comments