-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add oven mode yaml #31547
Merged
Merged
Add oven mode yaml #31547
Changes from 73 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
281247f
Oven mode yaml scripts and updated ciTests.json file
prakashece f6d20ad
format checked
prakashece d34bb33
Restyled by whitespace
restyled-commits 0325152
Restyled by prettier-json
restyled-commits 9221714
Restyled by prettier-yaml
restyled-commits 8bbbfc9
Updated ciTests.json
prakashece bb44bad
added and modified the files
prakashece 223505e
Delete src/app/tests/suites/certification/Test_TC_OM_1_1.yml
prakashece 525d7a5
Delete src/app/tests/suites/certification/Test_TC_OM_1_2.yml
prakashece ddd3b56
Delete src/app/tests/suites/certification/Test_TC_OM_2_1.yml
prakashece be9f7c6
Delete src/app/tests/suites/certification/Test_TC_OM_3_1.yml
prakashece a2ff8b0
Delete src/app/tests/suites/certification/Test_TC_OM_3_2.yml
prakashece 9df1d69
Delete src/app/tests/suites/certification/Test_TC_OM_3_3.yml
prakashece e0a41a1
Restyled by whitespace
restyled-commits c94de44
Restyled by prettier-json
restyled-commits 03daa2f
Restyled by prettier-yaml
restyled-commits 85e85e4
Restyled by autopep8
restyled-commits 2a15df1
Merge branch 'add-oven-mode-yaml' of https://github.com/prakashece/co…
prakashece e118f69
Merge branch 'master' into add-oven-mode-yaml
prakashece a3f33b2
Update src/app/tests/suites/certification/Test_TC_OM_1_1.yaml
prakashece a84513c
Update src/app/tests/suites/certification/Test_TC_OM_2_1.yaml
prakashece a29309e
upadted based on the comments from Cecille
prakashece 2a881cb
Merge branch 'add-oven-mode-yaml' of https://github.com/prakashece/co…
prakashece 3ee8fbc
updated TC_2_1
prakashece 2e4836f
Restyled by whitespace
restyled-commits d5f78a6
Restyled by prettier-yaml
restyled-commits 21148b7
updated the files based on correct PICS code
prakashece 919d177
Restyled by whitespace
restyled-commits ad6bc54
Restyled by prettier-json
restyled-commits 0ee1903
Restyled by prettier-yaml
restyled-commits 8cd3e36
Delete src/app/tests/suites/certification/Test_TC_OM_1_1.yaml
prakashece fd29b7e
Delete src/app/tests/suites/certification/Test_TC_OM_2_1.yaml
prakashece 5c1677a
Delete src/app/tests/suites/certification/Test_TC_OM_3_1.yaml
prakashece d1330d6
Delete src/app/tests/suites/certification/Test_TC_OM_3_2.yaml
prakashece f5816e6
Delete src/app/tests/suites/certification/Test_TC_OM_3_3.yaml
prakashece a0fc766
Merge branch 'master' into add-oven-mode-yaml
prakashece 64188b1
Delete src/app/tests/suites/certification/Test_TC_OM_1_2.yaml
prakashece 4122a4f
updated Test_TC_OTCCM_2_1.yaml
prakashece ca4d9d0
Merge branch 'add-oven-mode-yaml' of https://github.com/prakashece/co…
prakashece a957f89
Merge branch 'master' into add-oven-mode-yaml
prakashece d24947f
updated test scripts and PICS values
prakashece 55e69b5
Restyled by whitespace
restyled-commits 22c5949
Merge branch 'master' into add-oven-mode-yaml
prakashece be6c609
Merge branch 'master' into add-oven-mode-yaml
prakashece 67ee8fb
updating init.py
prakashece 7acb8a0
updated PICS.yaml
prakashece 6769ed6
Merge branch 'master' into add-oven-mode-yaml
prakashece 69bdf06
updated init.py
prakashece a9ece9e
Merge branch 'master' into add-oven-mode-yaml
prakashece 4e89402
updated init.py
prakashece b3abc6e
Restyled by whitespace
restyled-commits bdce070
updated files and ran zap_regen
prakashece 0b7b178
Restyled by whitespace
restyled-commits 7d172d7
Restyled by prettier-json
restyled-commits 4140cbb
Restyled by prettier-yaml
restyled-commits 9e2a4bd
Restyled by autopep8
restyled-commits 389f972
updated ci-pics-values
prakashece 842c8e0
updated __init__.py
prakashece 2f038c4
commented 4b 4c in TC_1_1 and ran zap
prakashece 68c6c91
Merge branch 'master' into add-oven-mode-yaml
prakashece ac428dc
updated 1_1
prakashece a6da5cb
Restyled by prettier-yaml
restyled-commits 9ed1aef
updated manualtest.json and ran zapregen
prakashece 8b0f25d
Restyled by prettier-json
restyled-commits 04b0fa0
Restyled by prettier-yaml
restyled-commits 138e535
updated ci-pics-values
prakashece b579bbc
updated pics-value file
prakashece 19e0f45
Merge branch 'master' into add-oven-mode-yaml
prakashece fabd3e5
upidated ci-pics-values
prakashece f31abc4
Merge branch 'master' into add-oven-mode-yaml
beckerzito 9e4a8f3
Fixes for test cases
beckerzito cda6335
Merge branch 'master' into add-oven-mode-yaml
beckerzito 6dd7dea
Restyled by prettier-yaml
restyled-commits a2ff610
Merge branch 'master' into add-oven-mode-yaml
beckerzito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
124 changes: 124 additions & 0 deletions
124
src/app/tests/suites/certification/Test_TC_OTCCM_1_1.yaml
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,124 @@ | ||
# Copyright (c) 2023 Project CHIP Authors | ||
# | ||
# 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. | ||
|
||
name: 3.1 [TC-OTCCM-1.1] Global attributes with server as DUT | ||
|
||
PICS: | ||
- OTCCM.S | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Oven Mode" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Step 1: Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
arguments: | ||
values: | ||
- name: "nodeId" | ||
value: nodeId | ||
|
||
- label: "Step 2: TH reads from the DUT the ClusterRevision attribute." | ||
command: "readAttribute" | ||
attribute: "ClusterRevision" | ||
response: | ||
value: 1 | ||
constraints: | ||
type: int16u | ||
|
||
- label: | ||
"Step 3: TH reads from the DUT the FeatureMap attribute, bit 0: SHALL | ||
be 1 if and only if OTCCM.S.F00(DEPONOFF)" | ||
command: "readAttribute" | ||
attribute: "FeatureMap" | ||
PICS: OTCCM.S.F00 | ||
response: | ||
constraints: | ||
type: bitmap32 | ||
hasMasksSet: [0x1] | ||
|
||
- label: "Step 3: TH reads from the DUT the FeatureMap attribute." | ||
command: "readAttribute" | ||
attribute: "FeatureMap" | ||
PICS: "!OTCCM.S.F00" | ||
response: | ||
value: 0 | ||
constraints: | ||
type: bitmap32 | ||
|
||
- label: "Step 4a: TH reads from the DUT the AttributeList attribute." | ||
PICS: PICS_EVENT_LIST_ENABLED | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533] | ||
|
||
- label: "Step 4a: TH reads from the DUT the AttributeList attribute." | ||
PICS: "!PICS_EVENT_LIST_ENABLED" | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0, 1, 65528, 65529, 65531, 65532, 65533] | ||
|
||
- label: | ||
"Step 4b: Read the optional attribute(StartUpMode) in AttributeList" | ||
PICS: OTCCM.S.A0002 | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [2] | ||
|
||
- label: | ||
"Step 4c: Read the Feature dependent attribute(DEPONOFF) in | ||
AttributeList" | ||
PICS: OTCCM.S.F00 | ||
command: "readAttribute" | ||
attribute: "AttributeList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [3] | ||
|
||
- label: "Step 5: TH reads from the DUT the EventList attribute." | ||
PICS: PICS_EVENT_LIST_ENABLED | ||
command: "readAttribute" | ||
attribute: "EventList" | ||
response: | ||
value: [] | ||
constraints: | ||
type: list | ||
|
||
- label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." | ||
command: "readAttribute" | ||
attribute: "AcceptedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [0] | ||
|
||
- label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." | ||
command: "readAttribute" | ||
attribute: "GeneratedCommandList" | ||
response: | ||
constraints: | ||
type: list | ||
contains: [1] |
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,70 @@ | ||
# Copyright (c) 2023 Project CHIP Authors | ||
# | ||
# 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. | ||
|
||
name: 3.2 [TC-OTCCM-1.2] Cluster attributes with DUT as Server | ||
|
||
PICS: | ||
- OTCCM.S | ||
|
||
config: | ||
nodeId: 0x12344321 | ||
cluster: "Oven Mode" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: | ||
"Step 1: Commission DUT to TH (can be skipped if done in a preceding | ||
test)." | ||
verification: | | ||
|
||
disabled: true | ||
|
||
- label: "Step 2: TH reads from the DUT the SupportedModes attribute." | ||
PICS: OTCCM.S.A0000 | ||
verification: | | ||
./chip-tool Ovenmode read supported-modes 1 1 | ||
|
||
Verify that the DUT response contains list of ModeOptionsStruct entries. | ||
- Verify that the list has at least 2 and at most 255 entries | ||
- Verify that each ModeOptionsStruct entry has a unique Mode field value and Label field value | ||
- If ModeOptionsStruct entry’s ModeTags field is not empty, then Verify the values of the Value fields that are not larger than 16 bits, for each Value field: Is the mode tag value a defined common tag value ( Auto(0x0000), Quick(0x0001), Quiet(0x0002), LowNoise(0x0003), LowEnergy(0x0004), Vacation(0x0005), Min(0x0006), Max(0x0007), Night(0x0008), Day(0x0009)) or a defined cluster derived tag value ( Normal, Delicate, Heavy, Whites) or in the MfgTags (0x8000 to 0xBFFF) range | ||
- If the Value field is in the MfgTags (0x8000 to 0xBFFF) range, the TagName field is a string with a length between 1 and 64 | ||
- Verify that at least one ModeOptionsStruct entry includes the Normal mode tag | ||
- Save the Mode field values as supported_modes_dut on the TH (Chip-tool) | ||
disabled: true | ||
|
||
- label: "Step 3: TH reads from the DUT the CurrentMode attribute." | ||
PICS: OTCCM.S.A0001 | ||
verification: | | ||
./chip-tool Ovenmode read current-mode 1 1 | ||
|
||
Verify on TH(chip-tool) logs, CurrentMode attribute value is an integer value from supported_modes_dut | ||
|
||
disabled: true | ||
|
||
- label: "Step 4: TH reads from the DUT the OnMode attribute." | ||
PICS: OTCCM.S.A0003 | ||
verification: | | ||
./chip-tool Ovenmode read on-mode 1 1 | ||
|
||
Verify on TH(chip-tool) logs, OnMode attribute value is an integer value from supported_modes_dut or null | ||
disabled: true | ||
|
||
- label: "Step 5: TH reads from the DUT the StartUpMode attribute." | ||
PICS: OTCCM.S.A0002 | ||
verification: | | ||
./chip-tool Ovenmode read start-up-mode 1 1 | ||
|
||
Verify on TH(chip-tool) logs, StartUpMode attribute value is an integer value from supported_modes_dut or null | ||
disabled: true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test does not use EqualityCommands? Why is it disabled, and why is the disabling claiming it's because of lack of support for EqualityCommands?