diff options
Diffstat (limited to 'src/lib/config/tests/testdata/spec2.spec')
-rw-r--r-- | src/lib/config/tests/testdata/spec2.spec | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/lib/config/tests/testdata/spec2.spec b/src/lib/config/tests/testdata/spec2.spec new file mode 100644 index 0000000..482c206 --- /dev/null +++ b/src/lib/config/tests/testdata/spec2.spec @@ -0,0 +1,83 @@ +{ + "module_spec": { + "module_name": "Spec2", + "config_data": [ + { "item_name": "item1", + "item_type": "integer", + "item_optional": false, + "item_default": 1 + }, + { "item_name": "item2", + "item_type": "real", + "item_optional": false, + "item_default": 1.1 + }, + { "item_name": "item3", + "item_type": "boolean", + "item_optional": false, + "item_default": true + }, + { "item_name": "item4", + "item_type": "string", + "item_optional": false, + "item_default": "test" + }, + { "item_name": "item5", + "item_type": "list", + "item_optional": false, + "item_default": [ "a", "b" ], + "list_item_spec": { + "item_name": "list_element", + "item_type": "string", + "item_optional": false, + "item_default": "" + } + }, + { "item_name": "item6", + "item_type": "map", + "item_optional": false, + "item_default": {}, + "map_item_spec": [ + { "item_name": "value1", + "item_type": "string", + "item_optional": true, + "item_default": "default" + }, + { "item_name": "value2", + "item_type": "integer", + "item_optional": true + } + ] + } + ], + "commands": [ + { + "command_name": "print_message", + "command_description": "Print the given message to stdout", + "command_args": [ { + "item_name": "message", + "item_type": "string", + "item_optional": false, + "item_default": "" + } ] + }, + { + "command_name": "shutdown", + "command_description": "Shut down Kea", + "command_args": [] + } + ], + "statistics": [ + { + "item_name": "dummy_time", + "item_type": "string", + "item_optional": false, + "item_default": "1970-01-01T00:00:00Z", + "item_title": "Dummy Time", + "item_description": "A dummy date time", + "item_format": "date-time" + } + ] + } +} + |