-
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.
Adding 3 new Yamls and also splitting existing Color Cluster Yaml to …
…match the cert test cases (#10050) * Add new Yamls and splitting the CC Yamls to seperate ones to match the cert tests * Update generated tests * Restyled by whitespace * Restyled by prettier-yaml Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
26 changed files
with
10,662 additions
and
4,349 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
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,138 @@ | ||
# Copyright (c) 2021 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: 27.2.2. [TC-CC-3.1] Hue MoveTo functionality with server as DUT | ||
|
||
config: | ||
cluster: "Color Control" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Turn on light for color control tests" | ||
cluster: "On/Off" | ||
command: "on" | ||
|
||
- label: "Check on/off attribute value is true after on command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 1 | ||
|
||
- label: "Move to hue shortest distance command" | ||
command: "MoveToHue" | ||
arguments: | ||
values: | ||
- name: "hue" | ||
value: 150 | ||
- name: "direction" | ||
value: 0 | ||
- name: "transitionTime" | ||
value: 100 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 150 | ||
|
||
- label: "Move to hue longest distance command" | ||
command: "MoveToHue" | ||
arguments: | ||
values: | ||
- name: "hue" | ||
value: 200 | ||
- name: "direction" | ||
value: 1 | ||
- name: "transitionTime" | ||
value: 100 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 150 | ||
|
||
- label: "Move to hue up command" | ||
command: "MoveToHue" | ||
arguments: | ||
values: | ||
- name: "hue" | ||
value: 250 | ||
- name: "direction" | ||
value: 2 | ||
- name: "transitionTime" | ||
value: 100 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 250 | ||
|
||
- label: "Move to hue down command" | ||
command: "MoveToHue" | ||
arguments: | ||
values: | ||
- name: "hue" | ||
value: 225 | ||
- name: "direction" | ||
value: 3 | ||
- name: "transitionTime" | ||
value: 100 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 225 | ||
|
||
- label: "Turn off light that we turned on" | ||
cluster: "On/Off" | ||
command: "off" | ||
|
||
- label: "Check on/off attribute value is false after off command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 0 |
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,139 @@ | ||
# Copyright (c) 2021 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: 27.2.3. [TC-CC-3.2] Hue Move functionality with server as DUT | ||
|
||
config: | ||
cluster: "Color Control" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Turn on light for color control tests" | ||
cluster: "On/Off" | ||
command: "on" | ||
|
||
- label: "Check on/off attribute value is true after on command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 1 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 150 | ||
|
||
- label: "Move hue up command" | ||
command: "MoveHue" | ||
arguments: | ||
values: | ||
- name: "moveMode" | ||
value: 1 | ||
- name: "rate" | ||
value: 50 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Move hue stop command" | ||
command: "MoveHue" | ||
arguments: | ||
values: | ||
- name: "moveMode" | ||
value: 0 | ||
- name: "rate" | ||
value: 50 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Move hue down command" | ||
command: "MoveHue" | ||
arguments: | ||
values: | ||
- name: "moveMode" | ||
value: 3 | ||
- name: "rate" | ||
value: 50 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Move hue stop command" | ||
command: "MoveHue" | ||
arguments: | ||
values: | ||
- name: "moveMode" | ||
value: 0 | ||
- name: "rate" | ||
value: 50 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Turn off light that we turned on" | ||
cluster: "On/Off" | ||
command: "off" | ||
|
||
- label: "Check on/off attribute value is false after off command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 0 |
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,99 @@ | ||
# Copyright (c) 2021 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: 27.2.4. [TC-CC-3.3] Hue Step functionality with server as DUT | ||
|
||
config: | ||
cluster: "Color Control" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Turn on light for color control tests" | ||
cluster: "On/Off" | ||
command: "on" | ||
|
||
- label: "Check on/off attribute value is true after on command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 1 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: 150 | ||
|
||
- label: "Step hue up command" | ||
command: "StepHue" | ||
arguments: | ||
values: | ||
- name: "stepMode" | ||
value: 1 | ||
- name: "stepSize" | ||
value: 5 | ||
- name: "transitionTime" | ||
value: 25 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Step hue down command" | ||
command: "StepHue" | ||
arguments: | ||
values: | ||
- name: "stepMode" | ||
value: 3 | ||
- name: "stepSize" | ||
value: 5 | ||
- name: "transitionTime" | ||
value: 25 | ||
- name: "optionsMask" | ||
value: 0 | ||
- name: "optionsOverride" | ||
value: 0 | ||
|
||
- label: | ||
"Check current hue attribute value matched the value sent by the last | ||
command" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "current hue" | ||
response: | ||
value: -1 | ||
|
||
- label: "Turn off light that we turned on" | ||
cluster: "On/Off" | ||
command: "off" | ||
|
||
- label: "Check on/off attribute value is false after off command" | ||
cluster: "On/Off" | ||
command: "readAttribute" | ||
attribute: "OnOff" | ||
response: | ||
value: 0 |
Oops, something went wrong.