Skip to content

Commit

Permalink
[Yaml] WindowCovering: Fix and Update WNCV_1_1 and WNCV_2_1 (#12096)
Browse files Browse the repository at this point in the history
* WC: Fixes and add some testing

* WC : Yaml test refinements

* WC Yaml fix

* Update Yaml testing to zap/zzz/generated

* Restyled by whitespace

* Restyled by prettier-yaml

* WC: Fix: preset all cluster position attribute to half their ranges

* Zap : regen update

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Jun 10, 2022
1 parent a56b556 commit 1dee0e0
Show file tree
Hide file tree
Showing 6 changed files with 3,291 additions and 345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10515,7 +10515,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
"defaultValue": "0x7FFF",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand All @@ -10530,7 +10530,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0000",
"defaultValue": "0x7FFF",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -10560,7 +10560,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "50",
"reportable": 1,
"minInterval": 0,
"maxInterval": 100,
Expand All @@ -10575,7 +10575,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "50",
"reportable": 1,
"minInterval": 0,
"maxInterval": 100,
Expand Down Expand Up @@ -10605,7 +10605,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand All @@ -10620,7 +10620,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFFFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand Down Expand Up @@ -10650,7 +10650,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand All @@ -10665,7 +10665,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0xFF",
"defaultValue": "500",
"reportable": 1,
"minInterval": 0,
"maxInterval": 10000,
Expand Down Expand Up @@ -19630,4 +19630,4 @@
}
],
"log": []
}
}
41 changes: 28 additions & 13 deletions src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,60 @@ config:
endpoint: 1

tests:
- label: "read the global attribute: ClusterRevision"
### MANDATORY GLOBAL Attributes
### Attribute[0xFFFD]: ClusterRevision =======================================
- label: "2: read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 5
constraints:
type: uint16
minValue: 5
maxValue: 200

- label:
"write the default value to mandatory global attribute:
"3a: write a value into the RO mandatory global attribute:
ClusterRevision"
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 5
value: 201
response:
error: 1

- label: "reads back global attribute: ClusterRevision"
- label: "3b: reads back global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 5
constraints:
type: uint16
notValue: 201

- label: "read the global attribute: FeatureMap"
### Attribute[0xFFFC]: FeatureMap =======================================
- label: "2: read the global attribute: FeatureMap"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: uint32
minValue: 0
maxValue: 32768

- label: "write the default value to optional global attribute: FeatureMap"
disabled: true
- label:
"3a: write the default value to optional global attribute: FeatureMap"
command: "writeAttribute"
attribute: "FeatureMap"
arguments:
value: 5
value: 32769
response:
error: 1

- label: "reads back global attribute: FeatureMap"
- label: "3b: reads back global attribute: FeatureMap"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: uint32
notValue: 32769
### OPTIONAL GLOBAL Attributes
### None =======================================
Loading

0 comments on commit 1dee0e0

Please sign in to comment.