@@ -198,7 +198,8 @@ async def _run_write_access_test_for_cluster_privilege(self, endpoint_id, cluste
198
198
await self .TH2 .WriteAttribute (nodeid = self .dut_node_id , attributes = [(endpoint_id , attribute (val ))])
199
199
200
200
async def run_access_test (self , test_type : AccessTestType ):
201
- # Step 1 and 2 are handled in the class setup, but need to be marked for every test
201
+ # Step precondition, 1 and 2 are handled in the class setup, but need to be marked for every test
202
+ self .step ("precondition" )
202
203
self .step (1 )
203
204
self .step (2 )
204
205
# Read all the attributes on TH2 using admin access
@@ -234,7 +235,8 @@ async def run_access_test(self, test_type: AccessTestType):
234
235
self .fail_current_test ("One or more access violations was found" )
235
236
236
237
def steps_TC_ACE_2_1 (self ):
237
- steps = [TestStep (1 , "TH_commissioner performs a wildcard read" ),
238
+ steps = [TestStep ("precondition" , "DUT is commissioned" , is_commissioning = True ),
239
+ TestStep (1 , "TH_commissioner performs a wildcard read" ),
238
240
TestStep (2 , "TH_commissioner reads the ACL attribute" ),
239
241
TestStep (3 , "Repeat steps 3a and 3b for each permission level" )]
240
242
enum = Clusters .AccessControl .Enums .AccessControlEntryPrivilegeEnum
@@ -254,7 +256,8 @@ async def test_TC_ACE_2_1(self):
254
256
await self .run_access_test (AccessTestType .READ )
255
257
256
258
def steps_TC_ACE_2_2 (self ):
257
- steps = [TestStep (1 , "TH_commissioner performs a wildcard read" ),
259
+ steps = [TestStep ("precondition" , "DUT is commissioned" , is_commissioning = True ),
260
+ TestStep (1 , "TH_commissioner performs a wildcard read" ),
258
261
TestStep (2 , "TH_commissioner reads the ACL attribute" ),
259
262
TestStep (3 , "TH_commissioner grants TH_second_controller admin permission" ),
260
263
TestStep (4 , "TH_second_controller performs a wildcard read" ),
0 commit comments