Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TC-RVC-2.1] Fix PIXIT codes to match the test plan #28481

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/python_testing/TC_RVCCLEANM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# This test requires several additional command line arguments
# run with
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT_MODEOK:<mode id> PIXIT_MODEFAIL:<mode id>
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT.RVCCLEANM.MODE_CHANGE_OK:<mode id> PIXIT.RVCCLEANM.MODE_CHANGE_FAIL:<mode id>


class TC_RVCCLEANM_2_1(MatterBaseTest):
Expand All @@ -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:<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:<mode id>")
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:<mode id>")
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:<mode id>")
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:<mode id>")

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")
Expand Down
18 changes: 9 additions & 9 deletions src/python_testing/TC_RVCRUNM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# This test requires several additional command line arguments
# run with
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT_MODEOK:<mode id> PIXIT_MODEFAIL:<mode id>
# --int-arg PIXIT_ENDPOINT:<endpoint> PIXIT.RVCRUNM.MODE_CHANGE_OK:<mode id> PIXIT.RVCRUNM.MODE_CHANGE_FAIL:<mode id>


class TC_RVCRUNM_2_1(MatterBaseTest):
Expand All @@ -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:<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:<mode id>")
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:<mode id>")
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:<mode id>")
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:<mode id>")

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")
Expand Down