From 742260e3dd5d5a21eeeca2802dc92de5f403a184 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sat, 18 May 2024 14:15:01 +0200 Subject: [PATCH 1/2] Allow TC_IDM_1_2.py to pass when invoke response is supporessed --- src/python_testing/TC_IDM_1_2.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/python_testing/TC_IDM_1_2.py b/src/python_testing/TC_IDM_1_2.py index 8f329daca51101..fa2b61a364d9f9 100644 --- a/src/python_testing/TC_IDM_1_2.py +++ b/src/python_testing/TC_IDM_1_2.py @@ -236,9 +236,12 @@ async def test_TC_IDM_1_2(self): # Lucky candidate ArmFailSafe is at it again - command side effect is to set breadcrumb attribute cmd = Clusters.GeneralCommissioning.Commands.ArmFailSafe(expiryLengthSeconds=900, breadcrumb=2) - await self.default_controller.SendCommand(nodeid=self.dut_node_id, endpoint=0, payload=cmd, suppressResponse=True) - # TODO: Once the above issue is resolved, this needs a check to ensure that no response was received. - + try: + await self.default_controller.SendCommand(nodeid=self.dut_node_id, endpoint=0, payload=cmd, suppressResponse=True) + # TODO: Once the above issue is resolved, this needs a check to ensure that (always) no response was received. + except ChipStackError: + logging.info("DUT correctly supressed the response") + # Verify that the command had the correct side effect even if a response was sent breadcrumb = await self.read_single_attribute_check_success( cluster=Clusters.GeneralCommissioning, attribute=Clusters.GeneralCommissioning.Attributes.Breadcrumb, endpoint=0) From 218ddbc7c9ba2866a9e6ae7f6bf723497a53d11b Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sat, 18 May 2024 14:18:49 +0200 Subject: [PATCH 2/2] make linter happy --- src/python_testing/TC_IDM_1_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_testing/TC_IDM_1_2.py b/src/python_testing/TC_IDM_1_2.py index fa2b61a364d9f9..87ede456dacb1a 100644 --- a/src/python_testing/TC_IDM_1_2.py +++ b/src/python_testing/TC_IDM_1_2.py @@ -241,7 +241,7 @@ async def test_TC_IDM_1_2(self): # TODO: Once the above issue is resolved, this needs a check to ensure that (always) no response was received. except ChipStackError: logging.info("DUT correctly supressed the response") - + # Verify that the command had the correct side effect even if a response was sent breadcrumb = await self.read_single_attribute_check_success( cluster=Clusters.GeneralCommissioning, attribute=Clusters.GeneralCommissioning.Attributes.Breadcrumb, endpoint=0)