Skip to content

Commit

Permalink
updated PICS
Browse files Browse the repository at this point in the history
  • Loading branch information
sumaky committed Aug 28, 2024
1 parent 835df50 commit 1a27981
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/python_testing/TC_DRLK_2_9.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ async def send_clear_aliro_reader_config_cmd(self, expected_status: Status = Sta
except InteractionModelError as e:
asserts.assert_equal(e.status, expected_status, f"Unexpected error returned: {e}")

async def send_set_aliro_reader_config_cmd(self, use_group_resolving_key: bool,
expected_status: Status = Status.Success):
async def send_set_aliro_reader_config_cmd(self, expected_status: Status = Status.Success):
try:

signingKey = bytes.fromhex("89d085fc302ca53e279bfcdecdf3c4adb2f5d9bc9ea6c49e9566d144367df3ff")
Expand Down Expand Up @@ -635,15 +634,17 @@ async def test_TC_DRLK_2_9(self):
await self.send_clear_aliro_reader_config_cmd()

self.step("23b")
await self.send_set_aliro_reader_config_cmd(use_group_resolving_key=False, expected_status=Status.Success)
await self.send_set_aliro_reader_config_cmd(expected_status=Status.Success)

self.step("24")
await self.set_credential_cmd(credentialData=aliroevictableendpointkey,
operationType=drlkcluster.Enums.DataOperationTypeEnum.kAdd,
credential_enum=drlkcluster.Enums.CredentialTypeEnum.kAliroEvictableEndpointKey,
credentialIndex=credentialIndex_1, userIndex=userIndex_1, userStatus=NullValue, userType=NullValue, statuscode=Status.Success)
if self.pics_guard(self.check_pics("DRLK.S.F0d") and self.check_pics("DRLK.S.F08")
and self.check_pics("DRLK.S.C22.Rsp") and self.check_pics("DRLK.S.C23.Tx")):
await self.set_credential_cmd(credentialData=aliroevictableendpointkey,
operationType=drlkcluster.Enums.DataOperationTypeEnum.kAdd,
credential_enum=drlkcluster.Enums.CredentialTypeEnum.kAliroEvictableEndpointKey,
credentialIndex=credentialIndex_1, userIndex=userIndex_1, userStatus=NullValue, userType=NullValue, statuscode=Status.Success)
self.step("25")
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.F01") and self.check_pics("DRLK.S.C1b.Rsp")):
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.F0d") and self.check_pics("DRLK.S.C1b.Rsp")):

credentiallist: list[drlkcluster.Structs.CredentialStruct]
credentiallist = [drlkcluster.Structs.CredentialStruct(credentialIndex=credentialIndex_1,
Expand All @@ -652,15 +653,14 @@ async def test_TC_DRLK_2_9(self):
credentialType=drlkcluster.Enums.CredentialTypeEnum.kAliroEvictableEndpointKey)]
await self.get_user(userIndex_1, user_name, user_unique_id1, credentiallist, Status.Success)
self.step("26")
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.F08")
and self.check_pics("DRLK.S.C22.Rsp") and self.check_pics("DRLK.S.C23.Tx")):
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.C22.Rsp") and self.check_pics("DRLK.S.C23.Tx")):
await self.set_credential_cmd(credentialData=self.pin_code2,
operationType=drlkcluster.Enums.DataOperationTypeEnum.kModify,
credential_enum=drlkcluster.Enums.CredentialTypeEnum.kPin,
credentialIndex=credentialIndex_1, userIndex=userIndex_1, userStatus=NullValue, userType=NullValue, statuscode=Status.Success)

self.step("27")
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.F01") and self.check_pics("DRLK.S.C1b.Rsp")):
if self.pics_guard(self.check_pics("DRLK.S.F00") and self.check_pics("DRLK.S.F0d") and self.check_pics("DRLK.S.C1b.Rsp")):

credentiallist: list[drlkcluster.Structs.CredentialStruct]
credentiallist = [drlkcluster.Structs.CredentialStruct(credentialIndex=credentialIndex_1,
Expand All @@ -670,7 +670,7 @@ async def test_TC_DRLK_2_9(self):
await self.get_user(userIndex_1, user_name, user_unique_id1, credentiallist, Status.Success)

self.step("28")
if self.pics_guard(self.check_pics("DRLK.S.F08") and self.check_pics("DRLK.S.C26.Rsp")):
if self.pics_guard(self.check_pics("DRLK.S.C26.Rsp")):
await self.clear_credentials_cmd(credential=NullValue)

self.step("29")
Expand Down

0 comments on commit 1a27981

Please sign in to comment.