-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OVENOPSTATE] Add OvenOpState 2.6 test case from base (second try) (#…
…34783) * Add OvenOpState 2.6 * Added steps to me TP easier to write * Reduce sleep, fix checks * Changed test
- Loading branch information
Showing
2 changed files
with
108 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# See https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md#defining-the-ci-test-arguments | ||
# for details about the block below. | ||
# | ||
# === BEGIN CI TEST ARGUMENTS === | ||
# test-runner-runs: run1 | ||
# test-runner-run/run1/app: ${ALL_CLUSTERS_APP} | ||
# test-runner-run/run1/factoryreset: True | ||
# test-runner-run/run1/quiet: True | ||
# test-runner-run/run1/app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json | ||
# test-runner-run/run1/script-args: --endpoint 1 --int-arg PIXIT.WAITTIME.REBOOT:5 --storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --PICS src/app/tests/suites/certification/ci-pics-values --trace-to json:${TRACE_TEST_JSON}.json --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto | ||
# === END CI TEST ARGUMENTS === | ||
|
||
|
||
import chip.clusters as Clusters | ||
from matter_testing_support import MatterBaseTest, TestStep, async_test_body, default_matter_test_main | ||
from TC_OpstateCommon import TC_OPSTATE_BASE, TestInfo | ||
|
||
|
||
class TC_OVENOPSTATE_2_6(MatterBaseTest, TC_OPSTATE_BASE): | ||
def __init__(self, *args): | ||
super().__init__(*args) | ||
|
||
test_info = TestInfo( | ||
pics_code="OVENOPSTATE", | ||
cluster=Clusters.OvenCavityOperationalState | ||
) | ||
|
||
super().setup_base(test_info=test_info) | ||
|
||
def steps_TC_OVENOPSTATE_2_6(self) -> list[TestStep]: | ||
return self.steps_TC_OPSTATE_BASE_2_6() | ||
|
||
def pics_TC_OVENOPSTATE_2_6(self) -> list[str]: | ||
return ["OVENOPSTATE.S", "OVENOPSTATE.S.A0002"] | ||
|
||
@async_test_body | ||
async def test_TC_OVENOPSTATE_2_6(self): | ||
# endpoint = self.matter_test_config.endpoint | ||
|
||
# await self.TEST_TC_OPSTATE_BASE_2_6(endpoint=endpoint) | ||
await self.TEST_TC_OPSTATE_BASE_2_6(endpoint=1) | ||
|
||
|
||
if __name__ == "__main__": | ||
default_matter_test_main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters