Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DRLK-2.5 and DRLK-2.9 python script #35201

Merged
merged 25 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ebd79a3
added drlkcluster variable
sumaky Aug 22, 2024
ab64785
Merge branch 'project-chip:master' into master
sumaky Aug 26, 2024
7075ee3
Delete src/python_testing/TC_DRLK_2_9.py
sumaky Aug 26, 2024
2690d4d
added DRLK_2.5 python script
sumaky Aug 26, 2024
36b1d00
Added Script DRLK_2.9
sumaky Aug 26, 2024
9348edf
removed DRLK_2_5 yaml file
sumaky Aug 26, 2024
175640c
removed DRLK_2.9.yaml file
sumaky Aug 26, 2024
8b1656a
updated DLOG_2_1.yaml
sumaky Aug 26, 2024
c43c857
removed redefined command clear user
sumaky Aug 26, 2024
489ea54
removed unsed var
sumaky Aug 26, 2024
971daa9
removed unused var
sumaky Aug 26, 2024
89eb946
Updated TC_DRLK_2_4.yaml script as per test plan
sumaky Aug 27, 2024
d2b4c32
Updated the TC to include PIN, Aliro combination and do Modify creden…
sumaky Aug 28, 2024
835df50
Restyled by autopep8
restyled-commits Aug 28, 2024
1a27981
updated PICS
sumaky Aug 28, 2024
124f306
Appended steps to check modify of both PIN and Aliro credentiaType is…
sumaky Aug 29, 2024
9d88e83
Updated DRLK-2.5 test case as per PR comment
sumaky Sep 17, 2024
534f77b
Updated DRLK-2.9
sumaky Sep 17, 2024
e0755e5
Added nextcredentialIndex check in get_credential_status function
sumaky Sep 17, 2024
4eed013
fixed code-lints error
sumaky Sep 17, 2024
48bb705
Added generate_max_pincode_len for generating valid pin code of Max p…
sumaky Sep 17, 2024
df6c4cb
Restyled by isort
restyled-commits Sep 17, 2024
7779420
added a check in get_user funtion that length of given Credential lis…
sumaky Sep 17, 2024
9ee695b
PR review -Init the pin and rid variables
sumaky Sep 18, 2024
98c6049
fixed lint error
sumaky Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/python_testing/TC_DRLK_2_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ def steps_TC_DRLK_2_5(self) -> list[TestStep]:
TestStep("3", "TH sends GetWeekDaySchedule Command to DUT.",
"Verify that the DUT sends GetWeekDayScheduleResponse command with expected values."),
TestStep("4", "TH sends SetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND."),
"Verify that the DUT responds with INVALID_COMMAND."),
TestStep("5", "TH sends SetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND."),
"Verify that the DUT responds with INVALID_COMMAND."),
TestStep("6", "TH sends SetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND."),
"Verify that the DUT responds with INVALID_COMMAND."),
TestStep("7", "TH sends SetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND."),
"Verify that the DUT responds with INVALID_COMMAND."),
TestStep("8", "TH sends GetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status INVALID_COMMAND."),
"Verify that the DUT responds with with INVALID_COMMAND."),
TestStep("9", "TH sends GetWeekDaySchedule Command to DUT.",
"Verify that the DUT responds with SetCredentialResponse command with Status NOT_FOUND."),
"Verify that the DUT responds with GetWeekDayScheduleResponse command with Status NOT_FOUND."),
TestStep("10a", "TH sends ClearWeekDaySchedule Command to DUT.", "Verify that the DUT sends SUCCESS response."),
TestStep("10b", "TH sends ClearWeekDaySchedule Command to DUT.", "Verify that the DUT sends INVALID_COMMAND response."),
TestStep("10c", "TH sends ClearWeekDaySchedule Command to DUT.", "Verify that the DUT sends INVALID_COMMAND response."),
Expand Down Expand Up @@ -192,6 +192,8 @@ async def test_TC_DRLK_2_5(self):
cluster=drlkcluster,
attribute=Clusters.DoorLock.Attributes.NumberOfWeekDaySchedulesSupportedPerUser)
logging.info("NumberOfWeekDaySchedulesSupportedPerUser %s" % (number_week_day_schedules_supported_per_user))
asserts.assert_in(number_week_day_schedules_supported_per_user, range(
0, 255), "NumberOfWeekDaySchedulesSupportedPerUser value is out of range")
self.step("2a")
if self.pics_guard(self.check_pics("DRLK.S.F08") and self.check_pics("DRLK.S.C1a.Rsp")):
try:
Expand Down Expand Up @@ -267,8 +269,8 @@ async def test_TC_DRLK_2_5(self):
Status.InvalidCommand)
self.step("5")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 0 # invalid value
day_mask_map_index = 2 # valid value
week_day_index = 1 # Valid value
day_mask_map_index = 0 # invalid value
await self.set_week_days_schedule_cmd(
week_day_index,
user_index,
Expand All @@ -281,7 +283,7 @@ async def test_TC_DRLK_2_5(self):
self.step("6")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0b.Rsp")):
week_day_index = 1 # valid value
day_mask_map_index = 0 # invalid value
day_mask_map_index = 128 # invalid value
await self.set_week_days_schedule_cmd(
week_day_index,
user_index,
Expand Down Expand Up @@ -332,7 +334,7 @@ async def test_TC_DRLK_2_5(self):
start_Minute,
end_Hour,
end_Minute,
Status.InvalidCommand)
Status.NotFound)
self.step("10a")
if self.pics_guard(self.check_pics("DRLK.S.F04") and self.check_pics("DRLK.S.C0d.Rsp")):
week_day_index = 1
Expand Down
Loading
Loading