Skip to content

Commit

Permalink
chore(TC_ACE-1.5): fix error using Restyled path
Browse files Browse the repository at this point in the history
  • Loading branch information
gvargas-csa committed Dec 13, 2023
1 parent 451df93 commit 549f5cb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/python_testing/TC_ACE_1_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
import time

import chip.clusters as Clusters
from mobly import asserts
from chip import ChipDeviceCtrl
from chip.interaction_model import Status
from chip.ChipDeviceCtrl import CommissioningParameters
from chip.interaction_model import Status
from matter_testing_support import MatterBaseTest, async_test_body, default_matter_test_main
from mobly import asserts


class TC_ACE_1_5(MatterBaseTest):
Expand Down Expand Up @@ -100,7 +100,8 @@ async def test_TC_ACE_1_5(self):
self.print_step(4, "TH2 reads its fabric index from the Operational Credentials cluster CurrentFabricIndex attribute")
th2FabricIndex = await self.read_currentfabricindex_expected_success(self.th2)

self.print_step(5, "TH1 writes DUT Endpoint 0 AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing 2 elements")
self.print_step(
5, "TH1 writes DUT Endpoint 0 ACL cluster ACL attribute, value is list of ACLEntryStruct containing 2 elements")
admin_acl = Clusters.AccessControl.Structs.AccessControlEntryStruct(
privilege=Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister,
authMode=Clusters.AccessControl.Enums.AccessControlEntryAuthModeEnum.kCase,
Expand All @@ -114,7 +115,8 @@ async def test_TC_ACE_1_5(self):
acl = [admin_acl, descriptor_view]
await self.write_acl(acl, self.th1)

self.print_step(6, "TH2 writes DUT Endpoint 0 AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing 2 elements")
self.print_step(
6, "TH2 writes DUT Endpoint 0 ACL cluster ACL attribute, value is list of ACLEntryStruct containing 2 elements")
admin_acl = Clusters.AccessControl.Structs.AccessControlEntryStruct(
fabricIndex=th2FabricIndex,
privilege=Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kAdminister,
Expand Down Expand Up @@ -152,7 +154,8 @@ async def test_TC_ACE_1_5(self):
acl = [full_acl]
await self.write_acl(acl, self.th1)

self.print_step(12, "TH1 removes the TH2 fabric by sending the RemoveFabric command to the DUT with the FabricIndex set to th2FabricIndex")
self.print_step(
12, "TH1 removes the TH2 fabric by sending the RemoveFabric command to the DUT with the FabricIndex set to th2FabricIndex")
removeFabricCmd = Clusters.OperationalCredentials.Commands.RemoveFabric(th2FabricIndex)
await self.th1.SendCommand(nodeid=self.dut_node_id, endpoint=0, payload=removeFabricCmd)

Expand Down

0 comments on commit 549f5cb

Please sign in to comment.