Skip to content

Commit 70dc49f

Browse files
updated CC clusters (#18023)
* 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]>
1 parent c83eab5 commit 70dc49f

File tree

6 files changed

+2063
-418
lines changed

6 files changed

+2063
-418
lines changed

src/app/tests/suites/certification/Test_TC_CC_3_3.yaml

+32-15
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ tests:
3939
response:
4040
value: 1
4141

42-
- label:
43-
"Check current hue attribute value matched the value sent by the last
44-
command"
45-
disabled: true
42+
- label: "Reads CurrentHue attribute from DUT"
4643
command: "readAttribute"
4744
attribute: "current hue"
4845
response:
49-
value: 150
46+
constraints:
47+
type: uint8
48+
minValue: 0
49+
maxValue: 254
5050

5151
- label: "Step hue up command"
5252
command: "StepHue"
@@ -63,14 +63,23 @@ tests:
6363
- name: "optionsOverride"
6464
value: 0
6565

66-
- label:
67-
"Check current hue attribute value matched the value sent by the last
68-
command"
69-
disabled: true
66+
#delay step is necessary to let the attribute value change over time
67+
- label: "Wait 25ms"
68+
cluster: "DelayCommands"
69+
command: "WaitForMs"
70+
arguments:
71+
values:
72+
- name: "ms"
73+
value: 25
74+
75+
- label: "Over TransitionTime,Read CurrentHue attribute from DUT"
7076
command: "readAttribute"
7177
attribute: "current hue"
7278
response:
73-
value: -1
79+
constraints:
80+
type: uint8
81+
minValue: 0
82+
maxValue: 254
7483

7584
- label: "Step hue down command"
7685
command: "StepHue"
@@ -87,14 +96,22 @@ tests:
8796
- name: "optionsOverride"
8897
value: 0
8998

90-
- label:
91-
"Check current hue attribute value matched the value sent by the last
92-
command"
93-
disabled: true
99+
- label: "Wait 25ms"
100+
cluster: "DelayCommands"
101+
command: "WaitForMs"
102+
arguments:
103+
values:
104+
- name: "ms"
105+
value: 25
106+
107+
- label: "Over TransitionTime,Read CurrentHue attribute from DUT"
94108
command: "readAttribute"
95109
attribute: "current hue"
96110
response:
97-
value: -1
111+
constraints:
112+
type: uint8
113+
minValue: 0
114+
maxValue: 254
98115

99116
- label: "Turn off light that we turned on"
100117
cluster: "On/Off"

src/app/tests/suites/certification/Test_TC_CC_4_3.yaml

+32-13
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ tests:
3939
response:
4040
value: 1
4141

42-
- label: "Check Saturation attribute value matched before any change"
43-
disabled: true
42+
- label: "Reads CurrentSaturation attribute from DUT"
4443
command: "readAttribute"
4544
attribute: "current saturation"
4645
response:
47-
value: 90
46+
constraints:
47+
type: uint8
48+
minValue: 0
49+
maxValue: 254
4850

4951
- label: "Step saturation up command"
5052
command: "StepSaturation"
@@ -61,14 +63,23 @@ tests:
6163
- name: "optionsOverride"
6264
value: 0
6365

64-
- label:
65-
"Check Saturation attribute value matched the value sent by the last
66-
command"
67-
disabled: true
66+
#delay step is necessary to let the attribute value change over time
67+
- label: "Wait 10ms"
68+
cluster: "DelayCommands"
69+
command: "WaitForMs"
70+
arguments:
71+
values:
72+
- name: "ms"
73+
value: 10
74+
75+
- label: "Over TransitionTime,Read CurrentSaturation attribute from DUT"
6876
command: "readAttribute"
6977
attribute: "current saturation"
7078
response:
71-
value: -1
79+
constraints:
80+
type: uint8
81+
minValue: 0
82+
maxValue: 254
7283

7384
- label: "Step saturation down command"
7485
command: "StepSaturation"
@@ -85,14 +96,22 @@ tests:
8596
- name: "optionsOverride"
8697
value: 0
8798

88-
- label:
89-
"Check Saturation attribute value matched the value sent by the last
90-
command"
91-
disabled: true
99+
- label: "Wait 10ms"
100+
cluster: "DelayCommands"
101+
command: "WaitForMs"
102+
arguments:
103+
values:
104+
- name: "ms"
105+
value: 10
106+
107+
- label: "Over TransitionTime,Reads CurrentSaturation attribute from DUT"
92108
command: "readAttribute"
93109
attribute: "current saturation"
94110
response:
95-
value: -1
111+
constraints:
112+
type: uint8
113+
minValue: 0
114+
maxValue: 254
96115

97116
- label: "Turn off light that we turned on"
98117
cluster: "On/Off"

src/app/tests/suites/certification/Test_TC_CC_7_3.yaml

+31-15
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ tests:
3939
response:
4040
value: 1
4141

42-
- label:
43-
"Check EnhancedCurrentHue attribute value matched the value sent by
44-
the last command"
45-
disabled: true
42+
- label: "Reads EnhancedCurrentHue attribute from DUT"
4643
command: "readAttribute"
4744
attribute: "enhanced current hue"
4845
response:
49-
value: 1025
46+
constraints:
47+
type: uint16
48+
minValue: 0
49+
maxValue: 65535
5050

5151
- label: "Enhanced Step Hue Up command"
5252
command: "EnhancedStepHue"
@@ -63,14 +63,22 @@ tests:
6363
- name: "optionsOverride"
6464
value: 0
6565

66-
- label:
67-
"Check EnhancedCurrentHue attribute value matched the value sent by
68-
the last command"
69-
disabled: true
66+
- label: "Wait 10ms"
67+
cluster: "DelayCommands"
68+
command: "WaitForMs"
69+
arguments:
70+
values:
71+
- name: "ms"
72+
value: 10
73+
74+
- label: "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT"
7075
command: "readAttribute"
7176
attribute: "enhanced current hue"
7277
response:
73-
value: 1075
78+
constraints:
79+
type: uint16
80+
minValue: 0
81+
maxValue: 65535
7482

7583
- label: "Enhanced Step Hue Down command"
7684
command: "EnhancedStepHue"
@@ -87,14 +95,22 @@ tests:
8795
- name: "optionsOverride"
8896
value: 0
8997

90-
- label:
91-
"Check EnhancedCurrentHue attribute value matched the value sent by
92-
the last command"
93-
disabled: true
98+
- label: "Wait 10ms"
99+
cluster: "DelayCommands"
100+
command: "WaitForMs"
101+
arguments:
102+
values:
103+
- name: "ms"
104+
value: 10
105+
106+
- label: "Over TransitionTime,Read EnhancedCurrentHue attribute from DUT"
94107
command: "readAttribute"
95108
attribute: "enhanced current hue"
96109
response:
97-
value: 1000
110+
constraints:
111+
type: uint16
112+
minValue: 0
113+
maxValue: 65535
98114

99115
- label: "Turn off light that we turned on"
100116
cluster: "On/Off"

0 commit comments

Comments
 (0)