Update zapfile_formatter to also check for mandatory commands (#19005)
* Update zapfile_formatter to also check for manditory commands
Check for TestEventTriggersEnabled attribute exists, and check for
TestEventTrigger command.
* regen files from zap
* Update TestEventTrigger command to be server instead of client
* Minor fix to zapfile_formatter
* regen from zap file
diff --git a/examples/chef/devices/lighting-app.zap b/examples/chef/devices/lighting-app.zap
index 6f8fc1e..5144752 100644
--- a/examples/chef/devices/lighting-app.zap
+++ b/examples/chef/devices/lighting-app.zap
@@ -2613,7 +2613,16 @@
"define": "GENERAL_DIAGNOSTICS_CLUSTER",
"side": "server",
"enabled": 1,
- "commands": [],
+ "commands": [
+ {
+ "name": "TestEventTrigger",
+ "code": 0,
+ "mfgCode": null,
+ "source": "client",
+ "incoming": 1,
+ "outgoing": 0
+ }
+ ],
"attributes": [
{
"name": "NetworkInterfaces",
@@ -2744,6 +2753,22 @@
"reportableChange": 0
},
{
+ "name": "TestEventTriggersEnabled",
+ "code": 8,
+ "mfgCode": null,
+ "side": "server",
+ "type": "boolean",
+ "included": 1,
+ "storageOption": "External",
+ "singleton": 0,
+ "bounded": 0,
+ "defaultValue": "false",
+ "reportable": 1,
+ "minInterval": 1,
+ "maxInterval": 65534,
+ "reportableChange": 0
+ },
+ {
"name": "FeatureMap",
"code": 65532,
"mfgCode": null,