Skip to content

Commit

Permalink
[TestCluster] Test cluster use negative defaults for ints types (#13117)
Browse files Browse the repository at this point in the history
* [TestCluster] Use negative defaults after ZAP PR 356

* Update generated code
  • Loading branch information
vivien-apple authored and pull[bot] committed May 13, 2022
1 parent 1740b10 commit 2470064
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16054,7 +16054,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "-20",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -16084,7 +16084,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "-100",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -16594,7 +16594,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "-20",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -16624,7 +16624,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "-100",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
16 changes: 8 additions & 8 deletions src/app/tests/suites/TestCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3029,7 +3029,7 @@ tests:
command: "readAttribute"
attribute: "range_restricted_int8s"
response:
value: 0 # ZAP won't allow setting a negative default!
value: -20

- label: "Write min value to a range-restricted signed 8-bit integer"
command: "writeAttribute"
Expand Down Expand Up @@ -3072,7 +3072,7 @@ tests:
command: "readAttribute"
attribute: "range_restricted_int8s"
response:
value: 0
value: -20

- label: "Write min valid value to a range-restricted signed 8-bit integer"
command: "writeAttribute"
Expand Down Expand Up @@ -3118,7 +3118,7 @@ tests:
command: "readAttribute"
attribute: "range_restricted_int16s"
response:
value: 0 # ZAP won't allow setting a negative default!
value: -100

- label: "Write min value to a range-restricted signed 16-bit integer"
command: "writeAttribute"
Expand Down Expand Up @@ -3161,7 +3161,7 @@ tests:
command: "readAttribute"
attribute: "range_restricted_int16s"
response:
value: 0
value: -100

- label: "Write min valid value to a range-restricted signed 16-bit integer"
command: "writeAttribute"
Expand Down Expand Up @@ -3441,7 +3441,7 @@ tests:
command: "readAttribute"
attribute: "nullable_range_restricted_int8s"
response:
value: 0 # ZAP won't allow setting a negative default!
value: -20

- label:
"Write min value to a nullable range-restricted signed 8-bit integer"
Expand Down Expand Up @@ -3487,7 +3487,7 @@ tests:
command: "readAttribute"
attribute: "nullable_range_restricted_int8s"
response:
value: 0
value: -20

- label:
"Write min valid value to a nullable range-restricted signed 8-bit
Expand Down Expand Up @@ -3556,7 +3556,7 @@ tests:
command: "readAttribute"
attribute: "nullable_range_restricted_int16s"
response:
value: 0 # ZAP won't allow setting a negative default!
value: -100

- label:
"Write min value to a nullable range-restricted signed 16-bit integer"
Expand Down Expand Up @@ -3602,7 +3602,7 @@ tests:
command: "readAttribute"
attribute: "nullable_range_restricted_int16s"
response:
value: 0
value: -100

- label:
"Write min valid value to a nullable range-restricted signed 16-bit
Expand Down
16 changes: 8 additions & 8 deletions src/darwin/Framework/CHIPTests/CHIPClustersTests.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions zzz_generated/all-clusters-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2470064

Please sign in to comment.