From 912339d7b78998dcc46f86cf1a2b938f7a4f357f Mon Sep 17 00:00:00 2001 From: duyen-tran <129869207+duyen-tran@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:15:34 -0400 Subject: [PATCH] [TC-RVC-2.1] Fix PIXIT codes to match the test plan (#28481) * fix PIXIT codes to match tp * fix PIXIT --- src/python_testing/TC_RVCCLEANM_2_1.py | 18 +++++++++--------- src/python_testing/TC_RVCRUNM_2_1.py | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/python_testing/TC_RVCCLEANM_2_1.py b/src/python_testing/TC_RVCCLEANM_2_1.py index e0b699d8373498..e082b83bb67a20 100644 --- a/src/python_testing/TC_RVCCLEANM_2_1.py +++ b/src/python_testing/TC_RVCCLEANM_2_1.py @@ -23,7 +23,7 @@ # This test requires several additional command line arguments # run with -# --int-arg PIXIT_ENDPOINT: PIXIT_MODEOK: PIXIT_MODEFAIL: +# --int-arg PIXIT_ENDPOINT: PIXIT.RVCCLEANM.MODE_CHANGE_OK: PIXIT.RVCCLEANM.MODE_CHANGE_FAIL: class TC_RVCCLEANM_2_1(MatterBaseTest): @@ -44,16 +44,16 @@ async def test_TC_RVCCLEANM_2_1(self): asserts.assert_true('PIXIT_ENDPOINT' in self.matter_test_config.global_test_params, "PIXIT_ENDPOINT must be included on the command line in " "the --int-arg flag as PIXIT_ENDPOINT:") - asserts.assert_true('PIXIT_MODEOK' in self.matter_test_config.global_test_params, - "PIXIT_MODEOK must be included on the command line in " - "the --int-arg flag as PIXIT_MODEOK:") - asserts.assert_true('PIXIT_MODEFAIL' in self.matter_test_config.global_test_params, - "PIXIT_MODEFAIL must be included on the command line in " - "the --int-arg flag as PIXIT_MODEFAIL:") + asserts.assert_true('PIXIT.RVCCLEANM.MODE_CHANGE_OK' in self.matter_test_config.global_test_params, + "PIXIT.RVCCLEANM.MODE_CHANGE_OK must be included on the command line in " + "the --int-arg flag as PIXIT.RVCCLEANM.MODE_CHANGE_OK:") + asserts.assert_true('PIXIT.RVCCLEANM.MODE_CHANGE_FAIL' in self.matter_test_config.global_test_params, + "PIXIT.RVCCLEANM.MODE_CHANGE_FAIL must be included on the command line in " + "the --int-arg flag as PIXIT.RVCCLEANM.MODE_CHANGE_FAIL:") self.endpoint = self.matter_test_config.global_test_params['PIXIT_ENDPOINT'] - self.modeok = self.matter_test_config.global_test_params['PIXIT_MODEOK'] - self.modefail = self.matter_test_config.global_test_params['PIXIT_MODEFAIL'] + self.modeok = self.matter_test_config.global_test_params['PIXIT.RVCCLEANM.MODE_CHANGE_OK'] + self.modefail = self.matter_test_config.global_test_params['PIXIT.RVCCLEANM.MODE_CHANGE_FAIL'] asserts.assert_true(self.check_pics("RVCCLEANM.S.A0000"), "RVCCLEANM.S.A0000 must be supported") asserts.assert_true(self.check_pics("RVCCLEANM.S.A0001"), "RVCCLEANM.S.A0001 must be supported") diff --git a/src/python_testing/TC_RVCRUNM_2_1.py b/src/python_testing/TC_RVCRUNM_2_1.py index 1ef5cefe6525e6..f6be1d2287f371 100644 --- a/src/python_testing/TC_RVCRUNM_2_1.py +++ b/src/python_testing/TC_RVCRUNM_2_1.py @@ -23,7 +23,7 @@ # This test requires several additional command line arguments # run with -# --int-arg PIXIT_ENDPOINT: PIXIT_MODEOK: PIXIT_MODEFAIL: +# --int-arg PIXIT_ENDPOINT: PIXIT.RVCRUNM.MODE_CHANGE_OK: PIXIT.RVCRUNM.MODE_CHANGE_FAIL: class TC_RVCRUNM_2_1(MatterBaseTest): @@ -44,16 +44,16 @@ async def test_TC_RVCRUNM_2_1(self): asserts.assert_true('PIXIT_ENDPOINT' in self.matter_test_config.global_test_params, "PIXIT_ENDPOINT must be included on the command line in " "the --int-arg flag as PIXIT_ENDPOINT:") - asserts.assert_true('PIXIT_MODEOK' in self.matter_test_config.global_test_params, - "PIXIT_MODEOK must be included on the command line in " - "the --int-arg flag as PIXIT_MODEOK:") - asserts.assert_true('PIXIT_MODEFAIL' in self.matter_test_config.global_test_params, - "PIXIT_MODEFAIL must be included on the command line in " - "the --int-arg flag as PIXIT_MODEFAIL:") + asserts.assert_true('PIXIT.RVCRUNM.MODE_CHANGE_OK' in self.matter_test_config.global_test_params, + "PIXIT.RVCRUNM.MODE_CHANGE_OK must be included on the command line in " + "the --int-arg flag as PIXIT.RVCRUNM.MODE_CHANGE_OK:") + asserts.assert_true('PIXIT.RVCRUNM.MODE_CHANGE_FAIL' in self.matter_test_config.global_test_params, + "PIXIT.RVCRUNM.MODE_CHANGE_FAIL must be included on the command line in " + "the --int-arg flag as PIXIT.RVCRUNM.MODE_CHANGE_FAIL:") self.endpoint = self.matter_test_config.global_test_params['PIXIT_ENDPOINT'] - self.modeok = self.matter_test_config.global_test_params['PIXIT_MODEOK'] - self.modefail = self.matter_test_config.global_test_params['PIXIT_MODEFAIL'] + self.modeok = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_CHANGE_OK'] + self.modefail = self.matter_test_config.global_test_params['PIXIT.RVCRUNM.MODE_CHANGE_FAIL'] asserts.assert_true(self.check_pics("RVCRUNM.S.A0000"), "RVCRUNM.S.A0000 must be supported") asserts.assert_true(self.check_pics("RVCRUNM.S.A0001"), "RVCRUNM.S.A0001 must be supported")