Skip to content

Commit

Permalink
Fix TC-SWTCH-1.1 (project-chip#34642)
Browse files Browse the repository at this point in the history
* Fix TC-SWTCH-1.1

- Cluster revision 2 was not properly checked
- Fixed all samples to have latest switch cluster revision
- Validated different configurations of the switch cluster
- Updated PICS files for CI

Fixes project-chip#34201

Testing done:

- Updated TC-SWTCH-1.1, still passes in different configs.

* Restyled by prettier-yaml

* Remove old TC-SWTCH-2.2

* Restyled by prettier-json

* Fix PICS.yaml

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and j-ororke committed Jul 31, 2024
1 parent 3b4f374 commit 276036f
Show file tree
Hide file tree
Showing 24 changed files with 89 additions and 1,536 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8097,7 +8097,7 @@ endpoint 1 {
ram attribute numberOfPositions default = 2;
ram attribute currentPosition;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}

server cluster FixedLabel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8029,7 +8029,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -26135,4 +26135,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6467,7 +6467,7 @@ endpoint 1 {
ram attribute numberOfPositions default = 2;
ram attribute currentPosition;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}

server cluster FixedLabel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5593,7 +5593,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -12408,4 +12408,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ endpoint 1 {
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0xE;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_genericswitch_2dfff6e516.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2742,7 +2742,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -2801,4 +2801,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ endpoint 1 {
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 1;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/chef/devices/rootnode_genericswitch_9866e35d0b.zap
Original file line number Diff line number Diff line change
Expand Up @@ -2742,7 +2742,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -2780,4 +2780,4 @@
"parentEndpointIdentifier": null
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3072,7 +3072,7 @@ endpoint 2 {
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 2;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5857,7 +5857,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -5903,4 +5903,4 @@
"parentEndpointIdentifier": null
}
]
}
}
2 changes: 1 addition & 1 deletion examples/light-switch-app/qpg/zap/switch.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3156,7 +3156,7 @@ endpoint 2 {
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 30;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/light-switch-app/qpg/zap/switch.zap
Original file line number Diff line number Diff line change
Expand Up @@ -6488,7 +6488,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -6569,4 +6569,4 @@
"parentEndpointIdentifier": null
}
]
}
}
2 changes: 1 addition & 1 deletion examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ endpoint 0 {
ram attribute numberOfPositions default = 2;
ram attribute currentPosition;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}

server cluster AdministratorCommissioning {
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3524,7 +3524,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -5932,4 +5932,4 @@
"parentEndpointIdentifier": null
}
]
}
}
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -8653,7 +8653,7 @@ endpoint 0 {
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}

server cluster AdministratorCommissioning {
Expand Down
6 changes: 3 additions & 3 deletions examples/placeholder/linux/apps/app1/config.zap
Original file line number Diff line number Diff line change
Expand Up @@ -4890,7 +4890,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -5028,7 +5028,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -15129,4 +15129,4 @@
"parentEndpointIdentifier": null
}
]
}
}
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -8611,7 +8611,7 @@ endpoint 0 {
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
ram attribute clusterRevision default = 2;
}

server cluster AdministratorCommissioning {
Expand Down
6 changes: 3 additions & 3 deletions examples/placeholder/linux/apps/app2/config.zap
Original file line number Diff line number Diff line change
Expand Up @@ -4906,7 +4906,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -5044,7 +5044,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "1",
"defaultValue": "2",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -14889,4 +14889,4 @@
"parentEndpointIdentifier": null
}
]
}
}
13 changes: 8 additions & 5 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6143,21 +6143,24 @@ PICS:
#
# server / features
#
- label: "Does the device represent a Latching Switch?"
- label: "Does the device represent a Latching Switch (LS)?"
id: SWTCH.S.F00

- label: "Does the device represent a Momentary Switch?"
- label: "Does the device represent a Momentary Switch (MS)?"
id: SWTCH.S.F01

- label: "Does the MS device support Momentary Switch Release?"
- label: "Does the MS device support Momentary Switch Release (MSR)?"
id: SWTCH.S.F02

- label: "Does the MS device support Momentary Switch LongPress?"
- label: "Does the MS device support Momentary Switch LongPress (MSL)?"
id: SWTCH.S.F03

- label: "Does the MS device support Momentary Switch MultiPress?"
- label: "Does the MS device support Momentary Switch MultiPress (MSM)?"
id: SWTCH.S.F04

- label: "Does the device support ActionSwitch feature (AS)?"
id: SWTCH.S.F05

#
# client / features
#
Expand Down
Loading

0 comments on commit 276036f

Please sign in to comment.