Skip to content

Commit c056962

Browse files
committedJul 2, 2024·
Removes redundant acl restore lines
1 parent 2359bfc commit c056962

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed
 

‎src/python_testing/TC_IDM_4_2.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ async def test_TC_IDM_4_2(self):
310310
targets=[Clusters.AccessControl.Structs.AccessControlTargetStruct(cluster=Clusters.BasicInformation.id)],
311311
subjects=[CR2_nodeid])
312312

313-
# Restore original DUT ACL
314-
await self.write_dut_acl(CR1, dut_acl_original)
315-
316313
# Add limited ACE
317314
await self.add_ace_to_dut_acl(CR1, CR2_limited_ace, dut_acl_original)
318315

@@ -350,9 +347,6 @@ async def test_TC_IDM_4_2(self):
350347
cluster=Clusters.Descriptor.id)],
351348
subjects=[CR2_nodeid])
352349

353-
# Restore original DUT ACL
354-
await self.write_dut_acl(CR1, dut_acl_original)
355-
356350
# Add limited ACE
357351
await self.add_ace_to_dut_acl(CR1, CR2_limited_ace, dut_acl_original)
358352

@@ -396,9 +390,6 @@ async def test_TC_IDM_4_2(self):
396390
targets=[Clusters.AccessControl.Structs.AccessControlTargetStruct(endpoint=endpoint)],
397391
subjects=[CR2_nodeid])
398392

399-
# Restore original DUT ACL
400-
await self.write_dut_acl(CR1, dut_acl_original)
401-
402393
# Add limited ACE
403394
await self.add_ace_to_dut_acl(CR1, CR2_limited_ace, dut_acl_original)
404395

@@ -427,7 +418,7 @@ async def test_TC_IDM_4_2(self):
427418
self.step(6)
428419

429420
# Skip setting an ACE for controller 2 so the DUT node rejects subscribing to it
430-
421+
431422
# Restore original DUT ACL
432423
await self.write_dut_acl(CR1, dut_acl_original)
433424

0 commit comments

Comments
 (0)
Please sign in to comment.