Skip to content

Commit

Permalink
chore(TC_OPCREDS_3.2): print some status values
Browse files Browse the repository at this point in the history
  • Loading branch information
gvargas-csa committed Feb 26, 2024
1 parent 8367f6e commit a01f9ad
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/python_testing/TC_OPCREDS_3_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class TC_OPCREDS_3_2(MatterBaseTest):
@async_test_body
async def test_TC_OPCREDS_3_2(self):



# It is not necessary implement factory reset to DUT
self.print_step(1, "Step 1: Factory Reset DUT")

Expand All @@ -51,6 +53,16 @@ async def test_TC_OPCREDS_3_2(self):
# CommissioningBuildingBlocks just return a boolean. I need to get the NOC Response
# so I just I will add a new step for now update the fabric label just to get the NOC response.
opcreds = Clusters.OperationalCredentials


nocResponse = await self.read_single_attribute_check_success(
dev_ctrl=th1_new_admin_ctrl, node_id=th1_dut_nodeid, cluster=opcreds, attribute=opcreds.Attributes.NOCs, fabric_filtered=False)
)

print("Here is NOCResponse below")
print(nocResponse)
print("Here is NOCResponse")

cmd = opcreds.Commands.UpdateFabricLabel(label="Label1")
resp = await self.send_single_cmd(cmd=cmd, dev_ctrl=th1_new_admin_ctrl, node_id=th1_dut_nodeid)
self.print_step(3, "When DUT sends NOC response save FabricIndex as FabricIndex_TH1")
Expand All @@ -63,8 +75,5 @@ async def test_TC_OPCREDS_3_2(self):
self.print_step(5, "From TH1 read the CurrentFabricIndex")
print(TH1_CurrentFabricIndex)




if __name__ == "__main__":
default_matter_test_main()

0 comments on commit a01f9ad

Please sign in to comment.