Skip to content

Commit

Permalink
updated CC clusters (#18023)
Browse files Browse the repository at this point in the history
* Added updated cc cluster

* Added auto generated files

* Restyled by clang-format

* added update cc cluster scripts

* Added Auto generated files

* Restyled by clang-format

* Added auto genearted file

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 10, 2023
1 parent 0962763 commit 1157183
Show file tree
Hide file tree
Showing 6 changed files with 2,063 additions and 418 deletions.
47 changes: 32 additions & 15 deletions src/app/tests/suites/certification/Test_TC_CC_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ tests:
response:
value: 1

- label:
"Check current hue attribute value matched the value sent by the last
command"
disabled: true
- label: "Reads CurrentHue attribute from DUT"
command: "readAttribute"
attribute: "current hue"
response:
value: 150
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Step hue up command"
command: "StepHue"
Expand All @@ -63,14 +63,23 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check current hue attribute value matched the value sent by the last
command"
disabled: true
#delay step is necessary to let the attribute value change over time
- label: "Wait 25ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 25

- label: "Over TransitionTime,Read CurrentHue attribute from DUT"
command: "readAttribute"
attribute: "current hue"
response:
value: -1
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Step hue down command"
command: "StepHue"
Expand All @@ -87,14 +96,22 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check current hue attribute value matched the value sent by the last
command"
disabled: true
- label: "Wait 25ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 25

- label: "Over TransitionTime,Read CurrentHue attribute from DUT"
command: "readAttribute"
attribute: "current hue"
response:
value: -1
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Turn off light that we turned on"
cluster: "On/Off"
Expand Down
45 changes: 32 additions & 13 deletions src/app/tests/suites/certification/Test_TC_CC_4_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ tests:
response:
value: 1

- label: "Check Saturation attribute value matched before any change"
disabled: true
- label: "Reads CurrentSaturation attribute from DUT"
command: "readAttribute"
attribute: "current saturation"
response:
value: 90
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Step saturation up command"
command: "StepSaturation"
Expand All @@ -61,14 +63,23 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check Saturation attribute value matched the value sent by the last
command"
disabled: true
#delay step is necessary to let the attribute value change over time
- label: "Wait 10ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10

- label: "Over TransitionTime,Read CurrentSaturation attribute from DUT"
command: "readAttribute"
attribute: "current saturation"
response:
value: -1
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Step saturation down command"
command: "StepSaturation"
Expand All @@ -85,14 +96,22 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check Saturation attribute value matched the value sent by the last
command"
disabled: true
- label: "Wait 10ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10

- label: "Over TransitionTime,Reads CurrentSaturation attribute from DUT"
command: "readAttribute"
attribute: "current saturation"
response:
value: -1
constraints:
type: uint8
minValue: 0
maxValue: 254

- label: "Turn off light that we turned on"
cluster: "On/Off"
Expand Down
46 changes: 31 additions & 15 deletions src/app/tests/suites/certification/Test_TC_CC_7_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ tests:
response:
value: 1

- label:
"Check EnhancedCurrentHue attribute value matched the value sent by
the last command"
disabled: true
- label: "Reads EnhancedCurrentHue attribute from DUT"
command: "readAttribute"
attribute: "enhanced current hue"
response:
value: 1025
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "Enhanced Step Hue Up command"
command: "EnhancedStepHue"
Expand All @@ -63,14 +63,22 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check EnhancedCurrentHue attribute value matched the value sent by
the last command"
disabled: true
- label: "Wait 10ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10

- label: "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT"
command: "readAttribute"
attribute: "enhanced current hue"
response:
value: 1075
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "Enhanced Step Hue Down command"
command: "EnhancedStepHue"
Expand All @@ -87,14 +95,22 @@ tests:
- name: "optionsOverride"
value: 0

- label:
"Check EnhancedCurrentHue attribute value matched the value sent by
the last command"
disabled: true
- label: "Wait 10ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10

- label: "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT"
command: "readAttribute"
attribute: "enhanced current hue"
response:
value: 1000
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "Turn off light that we turned on"
cluster: "On/Off"
Expand Down
Loading

0 comments on commit 1157183

Please sign in to comment.