diff --git a/test/data/boolean1.info b/test/data/boolean1.info new file mode 100644 index 0000000..78138fd --- /dev/null +++ b/test/data/boolean1.info @@ -0,0 +1 @@ +{"options.boolean": {"doc": "Boolean 1", "name": "boolean", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "bool"}} \ No newline at end of file diff --git a/test/data/boolean1.json b/test/data/boolean1.json index 0d57bc9..d792631 100644 --- a/test/data/boolean1.json +++ b/test/data/boolean1.json @@ -1,23 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.boolean": { - "name": "options.boolean", - "title": "Boolean 1", - "type": "boolean" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/boolean1.owner b/test/data/boolean1.owner new file mode 100644 index 0000000..567fbea --- /dev/null +++ b/test/data/boolean1.owner @@ -0,0 +1 @@ +{"options.boolean": "default"} \ No newline at end of file diff --git a/test/data/boolean1.prop b/test/data/boolean1.prop new file mode 100644 index 0000000..afd9fe0 --- /dev/null +++ b/test/data/boolean1.prop @@ -0,0 +1 @@ +{"options.boolean": []} \ No newline at end of file diff --git a/test/data/boolean1.prop2 b/test/data/boolean1.prop2 new file mode 100644 index 0000000..afd9fe0 --- /dev/null +++ b/test/data/boolean1.prop2 @@ -0,0 +1 @@ +{"options.boolean": []} \ No newline at end of file diff --git a/test/data/boolean1_frozen.info b/test/data/boolean1_frozen.info new file mode 100644 index 0000000..06683d3 --- /dev/null +++ b/test/data/boolean1_frozen.info @@ -0,0 +1 @@ +{"options.boolean": {"doc": "Boolean 1 frozen", "name": "boolean", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "bool"}} \ No newline at end of file diff --git a/test/data/boolean1_frozen.json b/test/data/boolean1_frozen.json index adb2c0f..71d0d1a 100644 --- a/test/data/boolean1_frozen.json +++ b/test/data/boolean1_frozen.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.boolean": { - "name": "options.boolean", - "type": "boolean", - "title": "Boolean 1 frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.boolean", - "readOnly": true - } - ], - "form": [ - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.boolean", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/boolean1_frozen.owner b/test/data/boolean1_frozen.owner new file mode 100644 index 0000000..567fbea --- /dev/null +++ b/test/data/boolean1_frozen.owner @@ -0,0 +1 @@ +{"options.boolean": "default"} \ No newline at end of file diff --git a/test/data/boolean1_frozen.prop b/test/data/boolean1_frozen.prop new file mode 100644 index 0000000..48c427d --- /dev/null +++ b/test/data/boolean1_frozen.prop @@ -0,0 +1 @@ +{"options.boolean": ["frozen"]} \ No newline at end of file diff --git a/test/data/boolean1_frozen.prop2 b/test/data/boolean1_frozen.prop2 new file mode 100644 index 0000000..afd9fe0 --- /dev/null +++ b/test/data/boolean1_frozen.prop2 @@ -0,0 +1 @@ +{"options.boolean": []} \ No newline at end of file diff --git a/test/data/choice1.info b/test/data/choice1.info new file mode 100644 index 0000000..4149c43 --- /dev/null +++ b/test/data/choice1.info @@ -0,0 +1 @@ +{"options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/choice1.json b/test/data/choice1.json index 9907831..937eca9 100644 --- a/test/data/choice1.json +++ b/test/data/choice1.json @@ -1,32 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice": { - "name": "options.choice", - "title": "Choice description", - "type": "choice", - "enum": [ - "", - "choice 1", - "choice 2" - ] - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "choice", - "key": "options.choice" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1.owner b/test/data/choice1.owner new file mode 100644 index 0000000..80b073b --- /dev/null +++ b/test/data/choice1.owner @@ -0,0 +1 @@ +{"options.choice": "default"} \ No newline at end of file diff --git a/test/data/choice1.prop b/test/data/choice1.prop new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1.prop @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1.prop2 b/test/data/choice1.prop2 new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1.prop2 @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1_frozen.info b/test/data/choice1_frozen.info new file mode 100644 index 0000000..490b403 --- /dev/null +++ b/test/data/choice1_frozen.info @@ -0,0 +1 @@ +{"options.choice": {"doc": "Choice description frozen", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/choice1_frozen.json b/test/data/choice1_frozen.json index f91a82a..624e576 100644 --- a/test/data/choice1_frozen.json +++ b/test/data/choice1_frozen.json @@ -1,37 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice": { - "name": "options.choice", - "type": "choice", - "enum": [ - "", - "choice 1", - "choice 2" - ], - "title": "Choice description frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.choice", - "readOnly": true - } - ], - "form": [ - { - "key": "options.choice", - "type": "choice" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "readOnly": true}], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_frozen.owner b/test/data/choice1_frozen.owner new file mode 100644 index 0000000..80b073b --- /dev/null +++ b/test/data/choice1_frozen.owner @@ -0,0 +1 @@ +{"options.choice": "default"} \ No newline at end of file diff --git a/test/data/choice1_frozen.prop b/test/data/choice1_frozen.prop new file mode 100644 index 0000000..7546d9a --- /dev/null +++ b/test/data/choice1_frozen.prop @@ -0,0 +1 @@ +{"options.choice": ["frozen"]} \ No newline at end of file diff --git a/test/data/choice1_frozen.prop2 b/test/data/choice1_frozen.prop2 new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1_frozen.prop2 @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1_master_slaves.json b/test/data/choice1_master_slaves.json index 17ac8f8..726c087 100644 --- a/test/data/choice1_master_slaves.json +++ b/test/data/choice1_master_slaves.json @@ -1,89 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice1": { - "name": "options.choice1", - "properties": { - "options.choice1.choice1": { - "name": "options.choice1.choice1", - "title": "Choice description master", - "type": "choice", - "isMulti": true, - "enum": [ - "choice 1", - "choice 2" - ] - }, - "options.choice1.choice2": { - "name": "options.choice1.choice2", - "title": "Choice description slave 1", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 3", - "choice 4" - ] - }, - "options.choice1.choice3": { - "name": "options.choice1.choice3", - "title": "Choice description slave 2", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 5", - "choice 6" - ] - }, - "options.choice1.choice4": { - "name": "options.choice1.choice4", - "title": "Choice description slave 3", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 7", - "choice 8" - ] - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.choice1.choice1", - "required": true - } - ], - "form": [ - { - "type": "choice", - "key": "options.choice1.choice1" - }, - { - "type": "choice", - "key": "options.choice1.choice2" - }, - { - "type": "choice", - "key": "options.choice1.choice3" - }, - { - "type": "choice", - "key": "options.choice1.choice4" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description master"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description slave 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description slave 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_master_slaves_hidden.json b/test/data/choice1_master_slaves_hidden.json index befd56c..213c395 100644 --- a/test/data/choice1_master_slaves_hidden.json +++ b/test/data/choice1_master_slaves_hidden.json @@ -1,94 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice1": { - "name": "options.choice1", - "properties": { - "options.choice1.choice1": { - "name": "options.choice1.choice1", - "title": "Choice description master", - "type": "choice", - "isMulti": true, - "enum": [ - "choice 1", - "choice 2" - ] - }, - "options.choice1.choice2": { - "name": "options.choice1.choice2", - "title": "Choice description slave 1", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 3", - "choice 4" - ] - }, - "options.choice1.choice3": { - "name": "options.choice1.choice3", - "title": "Choice description slave 2 hidden", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 5", - "choice 6" - ] - }, - "options.choice1.choice4": { - "name": "options.choice1.choice4", - "title": "Choice description slave 3", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 7", - "choice 8" - ] - } - }, - "type": "array", - "title": "Slave 2 is hidden" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.choice1.choice1", - "required": true - }, - { - "key": "options.choice1.choice3", - "hidden": true, - "display": false - } - ], - "form": [ - { - "type": "choice", - "key": "options.choice1.choice1" - }, - { - "type": "choice", - "key": "options.choice1.choice2" - }, - { - "type": "choice", - "key": "options.choice1.choice3" - }, - { - "type": "choice", - "key": "options.choice1.choice4" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description master"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description slave 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description slave 2 hidden"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description slave 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true}, {"key": "options.choice1.choice3", "display": false, "hidden": true}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_master_slaves_value.json b/test/data/choice1_master_slaves_value.json index 6778011..ab7107c 100644 --- a/test/data/choice1_master_slaves_value.json +++ b/test/data/choice1_master_slaves_value.json @@ -1,99 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice1": { - "name": "options.choice1", - "properties": { - "options.choice1.choice1": { - "name": "options.choice1.choice1", - "title": "Choice master", - "type": "choice", - "isMulti": true, - "enum": [ - "choice 1", - "choice 2" - ] - }, - "options.choice1.choice2": { - "name": "options.choice1.choice2", - "title": "Choice slave 1", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 3", - "choice 4" - ] - }, - "options.choice1.choice3": { - "name": "options.choice1.choice3", - "title": "Choice slave 2", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 5", - "choice 6" - ] - }, - "options.choice1.choice4": { - "name": "options.choice1.choice4", - "title": "Choice slave 3", - "type": "choice", - "isMulti": true, - "enum": [ - "", - "choice 7", - "choice 8" - ] - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.choice1.choice1", - "required": true, - "value": [ - "choice 2" - ], - "owner": "user" - }, - { - "key": "options.choice1.choice2", - "index": 0, - "value": "choice 4", - "owner": "user" - } - ], - "form": [ - { - "type": "choice", - "key": "options.choice1.choice1" - }, - { - "type": "choice", - "key": "options.choice1.choice2" - }, - { - "type": "choice", - "key": "options.choice1.choice3" - }, - { - "type": "choice", - "key": "options.choice1.choice4" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice master"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice slave 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice slave 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.choice1.choice1", "required": true, "value": ["choice 2"], "owner": "user"}, {"key": "options.choice1.choice2", "index": 0, "value": "choice 4", "owner": "user"}], "form": [{"key": "options.choice1.choice1", "type": "choice"}, {"key": "options.choice1.choice2", "type": "choice"}, {"key": "options.choice1.choice3", "type": "choice"}, {"key": "options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_multi.info b/test/data/choice1_multi.info new file mode 100644 index 0000000..72f651d --- /dev/null +++ b/test/data/choice1_multi.info @@ -0,0 +1 @@ +{"options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "choice"}} \ No newline at end of file diff --git a/test/data/choice1_multi.json b/test/data/choice1_multi.json index e35a172..221d7d0 100644 --- a/test/data/choice1_multi.json +++ b/test/data/choice1_multi.json @@ -1,37 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice": { - "name": "options.choice", - "title": "Choice description", - "type": "choice", - "isMulti": true, - "enum": [ - "choice 1", - "choice 2" - ] - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.choice", - "required": true - } - ], - "form": [ - { - "type": "choice", - "key": "options.choice" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "required": true}], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_multi.owner b/test/data/choice1_multi.owner new file mode 100644 index 0000000..80b073b --- /dev/null +++ b/test/data/choice1_multi.owner @@ -0,0 +1 @@ +{"options.choice": "default"} \ No newline at end of file diff --git a/test/data/choice1_multi.prop b/test/data/choice1_multi.prop new file mode 100644 index 0000000..b391738 --- /dev/null +++ b/test/data/choice1_multi.prop @@ -0,0 +1 @@ +{"options.choice": ["empty"]} \ No newline at end of file diff --git a/test/data/choice1_multi.prop2 b/test/data/choice1_multi.prop2 new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1_multi.prop2 @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1_rename.info b/test/data/choice1_rename.info new file mode 100644 index 0000000..4149c43 --- /dev/null +++ b/test/data/choice1_rename.info @@ -0,0 +1 @@ +{"options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/choice1_rename.json b/test/data/choice1_rename.json index 29c90df..937eca9 100644 --- a/test/data/choice1_rename.json +++ b/test/data/choice1_rename.json @@ -1,36 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice": { - "name": "options.choice", - "title": "Choice description", - "type": "choice", - "enum": [ - "", - "choice 1", - "choice 2" - ] - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "choice", - "key": "options.choice", - "displayed": { - "choice 1": "renamed 1", - "choice 2": "renamed 2" - } - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_rename.owner b/test/data/choice1_rename.owner new file mode 100644 index 0000000..80b073b --- /dev/null +++ b/test/data/choice1_rename.owner @@ -0,0 +1 @@ +{"options.choice": "default"} \ No newline at end of file diff --git a/test/data/choice1_rename.prop b/test/data/choice1_rename.prop new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1_rename.prop @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1_rename.prop2 b/test/data/choice1_rename.prop2 new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1_rename.prop2 @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/choice1_requires.info b/test/data/choice1_requires.info new file mode 100644 index 0000000..4149c43 --- /dev/null +++ b/test/data/choice1_requires.info @@ -0,0 +1 @@ +{"options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/choice1_requires.json b/test/data/choice1_requires.json index 384ef8b..167e7c8 100644 --- a/test/data/choice1_requires.json +++ b/test/data/choice1_requires.json @@ -1,72 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.choice": { - "name": "options.choice", - "type": "choice", - "value": "hide", - "enum": [ - "hide", - "show" - ], - "title": "Choice description" - }, - "options.unicode2": { - "name": "options.unicode2", - "type": "string", - "title": "Unicode 2" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.choice", - "required": true, - "value": "hide", - "owner": "default" - }, - { - "key": "options.unicode2", - "hidden": true - } - ], - "form": [ - { - "key": "options.choice", - "clearable": true, - "type": "choice", - "dependencies": { - "default": { - "show": [ - "options.unicode2" - ] - }, - "expected": { - "hide": { - "hide": [ - "options.unicode2" - ] - }, - "show": { - "show": [ - "options.unicode2" - ] - } - } - } - }, - { - "key": "options.unicode2", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.choice", "required": true, "value": "hide", "owner": "default"}, {"key": "options.unicode2", "hidden": true}], "form": [{"key": "options.choice", "clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"hide": {"hide": ["options.unicode2"]}, "show": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/choice1_requires.owner b/test/data/choice1_requires.owner new file mode 100644 index 0000000..80b073b --- /dev/null +++ b/test/data/choice1_requires.owner @@ -0,0 +1 @@ +{"options.choice": "default"} \ No newline at end of file diff --git a/test/data/choice1_requires.prop b/test/data/choice1_requires.prop new file mode 100644 index 0000000..6064c7a --- /dev/null +++ b/test/data/choice1_requires.prop @@ -0,0 +1 @@ +{"options.choice": ["mandatory"]} \ No newline at end of file diff --git a/test/data/choice1_requires.prop2 b/test/data/choice1_requires.prop2 new file mode 100644 index 0000000..0743b81 --- /dev/null +++ b/test/data/choice1_requires.prop2 @@ -0,0 +1 @@ +{"options.choice": []} \ No newline at end of file diff --git a/test/data/date1.info b/test/data/date1.info new file mode 100644 index 0000000..290dc28 --- /dev/null +++ b/test/data/date1.info @@ -0,0 +1 @@ +{"options.date": {"doc": "Date description", "name": "date", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "date"}} \ No newline at end of file diff --git a/test/data/date1.json b/test/data/date1.json index 18d914a..880c042 100644 --- a/test/data/date1.json +++ b/test/data/date1.json @@ -1,23 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.date": { - "name": "options.date", - "title": "Date description", - "type": "date" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/date1.owner b/test/data/date1.owner new file mode 100644 index 0000000..db9e0b5 --- /dev/null +++ b/test/data/date1.owner @@ -0,0 +1 @@ +{"options.date": "default"} \ No newline at end of file diff --git a/test/data/date1.prop b/test/data/date1.prop new file mode 100644 index 0000000..369104a --- /dev/null +++ b/test/data/date1.prop @@ -0,0 +1 @@ +{"options.date": []} \ No newline at end of file diff --git a/test/data/date1.prop2 b/test/data/date1.prop2 new file mode 100644 index 0000000..369104a --- /dev/null +++ b/test/data/date1.prop2 @@ -0,0 +1 @@ +{"options.date": []} \ No newline at end of file diff --git a/test/data/date1_frozen.info b/test/data/date1_frozen.info new file mode 100644 index 0000000..ea0a7d1 --- /dev/null +++ b/test/data/date1_frozen.info @@ -0,0 +1 @@ +{"options.date": {"doc": "Date description frozen", "name": "date", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "date"}} \ No newline at end of file diff --git a/test/data/date1_frozen.json b/test/data/date1_frozen.json index 6042b24..c2c8240 100644 --- a/test/data/date1_frozen.json +++ b/test/data/date1_frozen.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.date": { - "name": "options.date", - "type": "date", - "title": "Date description frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.date", - "readOnly": true - } - ], - "form": [ - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.date", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/date1_frozen.owner b/test/data/date1_frozen.owner new file mode 100644 index 0000000..db9e0b5 --- /dev/null +++ b/test/data/date1_frozen.owner @@ -0,0 +1 @@ +{"options.date": "default"} \ No newline at end of file diff --git a/test/data/date1_frozen.prop b/test/data/date1_frozen.prop new file mode 100644 index 0000000..d49655d --- /dev/null +++ b/test/data/date1_frozen.prop @@ -0,0 +1 @@ +{"options.date": ["frozen"]} \ No newline at end of file diff --git a/test/data/date1_frozen.prop2 b/test/data/date1_frozen.prop2 new file mode 100644 index 0000000..369104a --- /dev/null +++ b/test/data/date1_frozen.prop2 @@ -0,0 +1 @@ +{"options.date": []} \ No newline at end of file diff --git a/test/data/filename1.info b/test/data/filename1.info new file mode 100644 index 0000000..70c8c65 --- /dev/null +++ b/test/data/filename1.info @@ -0,0 +1 @@ +{"usbpath": {"doc": "Chemin d'acc\u00e8s", "name": "usbpath", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "filename"}} \ No newline at end of file diff --git a/test/data/filename1.json b/test/data/filename1.json index 3f39d7a..59d652f 100644 --- a/test/data/filename1.json +++ b/test/data/filename1.json @@ -1,26 +1 @@ -{ - "schema": { - "usbpath": { - "name": "usbpath", - "title": "Chemin d'acc\u00e8s", - "type": "string" - } - }, - "model": [ - { - "key": "usbpath", - "required": true - } - ], - "form": [ - { - "type": "input", - "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", - "key": "usbpath" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"usbpath": {"name": "usbpath", "type": "string", "title": "Chemin d'acc\u00e8s"}}, "model": [{"key": "usbpath", "required": true}], "form": [{"key": "usbpath", "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/filename1.owner b/test/data/filename1.owner new file mode 100644 index 0000000..1c557e1 --- /dev/null +++ b/test/data/filename1.owner @@ -0,0 +1 @@ +{"usbpath": "default"} \ No newline at end of file diff --git a/test/data/filename1.prop b/test/data/filename1.prop new file mode 100644 index 0000000..e33059c --- /dev/null +++ b/test/data/filename1.prop @@ -0,0 +1 @@ +{"usbpath": ["mandatory"]} \ No newline at end of file diff --git a/test/data/filename1.prop2 b/test/data/filename1.prop2 new file mode 100644 index 0000000..7544065 --- /dev/null +++ b/test/data/filename1.prop2 @@ -0,0 +1 @@ +{"usbpath": []} \ No newline at end of file diff --git a/test/data/hostname1.info b/test/data/hostname1.info new file mode 100644 index 0000000..611f009 --- /dev/null +++ b/test/data/hostname1.info @@ -0,0 +1 @@ +{"options.hostname1": {"doc": "Domainname Description", "name": "hostname1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "options.hostname2": {"doc": "Domainname without dot Description", "name": "hostname2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "options.hostname3": {"doc": "Hostname or IP Description", "name": "hostname3", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "options.hostname4": {"doc": "Netbios Description", "name": "hostname4", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}} \ No newline at end of file diff --git a/test/data/hostname1.json b/test/data/hostname1.json index f3fe0f2..799d296 100644 --- a/test/data/hostname1.json +++ b/test/data/hostname1.json @@ -1,58 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.hostname1": { - "name": "options.hostname1", - "title": "Domainname Description", - "type": "domain" - }, - "options.hostname2": { - "name": "options.hostname2", - "title": "Domainname without dot Description", - "type": "domain" - }, - "options.hostname3": { - "name": "options.hostname3", - "title": "Hostname or IP Description", - "type": "domain" - }, - "options.hostname4": { - "name": "options.hostname4", - "title": "Netbios Description", - "type": "domain" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", - "key": "options.hostname1" - }, - { - "type": "input", - "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", - "key": "options.hostname2" - }, - { - "type": "input", - "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", - "key": "options.hostname3" - }, - { - "type": "input", - "pattern": "^((?!-)[a-z0-9-]{1,15})$", - "key": "options.hostname4" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.hostname1": {"name": "options.hostname1", "type": "domain", "title": "Domainname Description"}, "options.hostname2": {"name": "options.hostname2", "type": "domain", "title": "Domainname without dot Description"}, "options.hostname3": {"name": "options.hostname3", "type": "domain", "title": "Hostname or IP Description"}, "options.hostname4": {"name": "options.hostname4", "type": "domain", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.hostname1", "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "options.hostname2", "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "options.hostname3", "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, {"key": "options.hostname4", "pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/hostname1.owner b/test/data/hostname1.owner new file mode 100644 index 0000000..d0f73b9 --- /dev/null +++ b/test/data/hostname1.owner @@ -0,0 +1 @@ +{"options.hostname1": "default", "options.hostname2": "default", "options.hostname3": "default", "options.hostname4": "default"} \ No newline at end of file diff --git a/test/data/hostname1.prop b/test/data/hostname1.prop new file mode 100644 index 0000000..587e5eb --- /dev/null +++ b/test/data/hostname1.prop @@ -0,0 +1 @@ +{"options.hostname1": [], "options.hostname2": [], "options.hostname3": [], "options.hostname4": []} \ No newline at end of file diff --git a/test/data/hostname1.prop2 b/test/data/hostname1.prop2 new file mode 100644 index 0000000..587e5eb --- /dev/null +++ b/test/data/hostname1.prop2 @@ -0,0 +1 @@ +{"options.hostname1": [], "options.hostname2": [], "options.hostname3": [], "options.hostname4": []} \ No newline at end of file diff --git a/test/data/ip1.info b/test/data/ip1.info new file mode 100644 index 0000000..cc0c214 --- /dev/null +++ b/test/data/ip1.info @@ -0,0 +1 @@ +{"options.ip": {"doc": "IP Description", "name": "ip", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "ip"}} \ No newline at end of file diff --git a/test/data/ip1.json b/test/data/ip1.json index 00c50b0..db19b63 100644 --- a/test/data/ip1.json +++ b/test/data/ip1.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.ip": { - "name": "options.ip", - "title": "IP Description", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", - "key": "options.ip" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "string", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/ip1.owner b/test/data/ip1.owner new file mode 100644 index 0000000..42690d3 --- /dev/null +++ b/test/data/ip1.owner @@ -0,0 +1 @@ +{"options.ip": "default"} \ No newline at end of file diff --git a/test/data/ip1.prop b/test/data/ip1.prop new file mode 100644 index 0000000..ec28c68 --- /dev/null +++ b/test/data/ip1.prop @@ -0,0 +1 @@ +{"options.ip": []} \ No newline at end of file diff --git a/test/data/ip1.prop2 b/test/data/ip1.prop2 new file mode 100644 index 0000000..ec28c68 --- /dev/null +++ b/test/data/ip1.prop2 @@ -0,0 +1 @@ +{"options.ip": []} \ No newline at end of file diff --git a/test/data/ip1_frozen.info b/test/data/ip1_frozen.info new file mode 100644 index 0000000..92f1cbc --- /dev/null +++ b/test/data/ip1_frozen.info @@ -0,0 +1 @@ +{"options.ip": {"doc": "IP Description frozen", "name": "ip", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "ip"}} \ No newline at end of file diff --git a/test/data/ip1_frozen.json b/test/data/ip1_frozen.json index fc14cc0..e0abb9b 100644 --- a/test/data/ip1_frozen.json +++ b/test/data/ip1_frozen.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.ip": { - "name": "options.ip", - "type": "string", - "title": "IP Description frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.ip", - "readOnly": true - } - ], - "form": [ - { - "key": "options.ip", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "string", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.ip", "readOnly": true}], "form": [{"key": "options.ip", "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/ip1_frozen.owner b/test/data/ip1_frozen.owner new file mode 100644 index 0000000..42690d3 --- /dev/null +++ b/test/data/ip1_frozen.owner @@ -0,0 +1 @@ +{"options.ip": "default"} \ No newline at end of file diff --git a/test/data/ip1_frozen.prop b/test/data/ip1_frozen.prop new file mode 100644 index 0000000..e65b659 --- /dev/null +++ b/test/data/ip1_frozen.prop @@ -0,0 +1 @@ +{"options.ip": ["frozen"]} \ No newline at end of file diff --git a/test/data/ip1_frozen.prop2 b/test/data/ip1_frozen.prop2 new file mode 100644 index 0000000..ec28c68 --- /dev/null +++ b/test/data/ip1_frozen.prop2 @@ -0,0 +1 @@ +{"options.ip": []} \ No newline at end of file diff --git a/test/data/mail1.info b/test/data/mail1.info new file mode 100644 index 0000000..01ed024 --- /dev/null +++ b/test/data/mail1.info @@ -0,0 +1 @@ +{"options.mail": {"doc": "Mail Description", "name": "mail", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "email"}} \ No newline at end of file diff --git a/test/data/mail1.json b/test/data/mail1.json index 210dfce..8e72fb3 100644 --- a/test/data/mail1.json +++ b/test/data/mail1.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.mail": { - "name": "options.mail", - "title": "Mail Description", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", - "key": "options.mail" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.mail": {"name": "options.mail", "type": "string", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.mail", "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/mail1.owner b/test/data/mail1.owner new file mode 100644 index 0000000..f591aaf --- /dev/null +++ b/test/data/mail1.owner @@ -0,0 +1 @@ +{"options.mail": "default"} \ No newline at end of file diff --git a/test/data/mail1.prop b/test/data/mail1.prop new file mode 100644 index 0000000..d889d4c --- /dev/null +++ b/test/data/mail1.prop @@ -0,0 +1 @@ +{"options.mail": []} \ No newline at end of file diff --git a/test/data/mail1.prop2 b/test/data/mail1.prop2 new file mode 100644 index 0000000..d889d4c --- /dev/null +++ b/test/data/mail1.prop2 @@ -0,0 +1 @@ +{"options.mail": []} \ No newline at end of file diff --git a/test/data/number1.info b/test/data/number1.info new file mode 100644 index 0000000..d886413 --- /dev/null +++ b/test/data/number1.info @@ -0,0 +1 @@ +{"options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/number1.json b/test/data/number1.json index db7fad0..696485e 100644 --- a/test/data/number1.json +++ b/test/data/number1.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.integer": { - "name": "options.integer", - "title": "integer 1", - "type": "number" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "allowedpattern": "[0-9]", - "key": "options.integer" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "number", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/number1.owner b/test/data/number1.owner new file mode 100644 index 0000000..a4c6d4d --- /dev/null +++ b/test/data/number1.owner @@ -0,0 +1 @@ +{"options.integer": "default"} \ No newline at end of file diff --git a/test/data/number1.prop b/test/data/number1.prop new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1.prop @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1.prop2 b/test/data/number1.prop2 new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1.prop2 @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1_frozen.info b/test/data/number1_frozen.info new file mode 100644 index 0000000..a04ecda --- /dev/null +++ b/test/data/number1_frozen.info @@ -0,0 +1 @@ +{"options.integer": {"doc": "integer 1 frozen", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/number1_frozen.json b/test/data/number1_frozen.json index 0ddd82b..02b8fbe 100644 --- a/test/data/number1_frozen.json +++ b/test/data/number1_frozen.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.integer": { - "name": "options.integer", - "type": "number", - "title": "integer 1 frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.integer", - "readOnly": true - } - ], - "form": [ - { - "key": "options.integer", - "allowedpattern": "[0-9]", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "number", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "readOnly": true}], "form": [{"key": "options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/number1_frozen.owner b/test/data/number1_frozen.owner new file mode 100644 index 0000000..a4c6d4d --- /dev/null +++ b/test/data/number1_frozen.owner @@ -0,0 +1 @@ +{"options.integer": "default"} \ No newline at end of file diff --git a/test/data/number1_frozen.prop b/test/data/number1_frozen.prop new file mode 100644 index 0000000..7cd93c1 --- /dev/null +++ b/test/data/number1_frozen.prop @@ -0,0 +1 @@ +{"options.integer": ["frozen"]} \ No newline at end of file diff --git a/test/data/number1_frozen.prop2 b/test/data/number1_frozen.prop2 new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1_frozen.prop2 @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1_mod_value.info b/test/data/number1_mod_value.info new file mode 100644 index 0000000..d886413 --- /dev/null +++ b/test/data/number1_mod_value.info @@ -0,0 +1 @@ +{"options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/number1_mod_value.json b/test/data/number1_mod_value.json index 52b9430..9d3bfb0 100644 --- a/test/data/number1_mod_value.json +++ b/test/data/number1_mod_value.json @@ -1,36 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.integer": { - "name": "options.integer", - "title": "integer 1", - "type": "number", - "value": 0 - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.integer", - "value": 3, - "owner": "user" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "allowedpattern": "[0-9]", - "key": "options.integer" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "number", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "value": 3, "owner": "user"}], "form": [{"key": "options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/number1_mod_value.owner b/test/data/number1_mod_value.owner new file mode 100644 index 0000000..3bfeea0 --- /dev/null +++ b/test/data/number1_mod_value.owner @@ -0,0 +1 @@ +{"options.integer": "user"} \ No newline at end of file diff --git a/test/data/number1_mod_value.prop b/test/data/number1_mod_value.prop new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1_mod_value.prop @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1_mod_value.prop2 b/test/data/number1_mod_value.prop2 new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1_mod_value.prop2 @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1_value.info b/test/data/number1_value.info new file mode 100644 index 0000000..d886413 --- /dev/null +++ b/test/data/number1_value.info @@ -0,0 +1 @@ +{"options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/number1_value.json b/test/data/number1_value.json index 35c2045..f080fcd 100644 --- a/test/data/number1_value.json +++ b/test/data/number1_value.json @@ -1,36 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.integer": { - "name": "options.integer", - "title": "integer 1", - "type": "number", - "value": 0 - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.integer", - "value": 0, - "owner": "default" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "allowedpattern": "[0-9]", - "key": "options.integer" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "number", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.integer", "value": 0, "owner": "default"}], "form": [{"key": "options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/number1_value.owner b/test/data/number1_value.owner new file mode 100644 index 0000000..a4c6d4d --- /dev/null +++ b/test/data/number1_value.owner @@ -0,0 +1 @@ +{"options.integer": "default"} \ No newline at end of file diff --git a/test/data/number1_value.prop b/test/data/number1_value.prop new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1_value.prop @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/number1_value.prop2 b/test/data/number1_value.prop2 new file mode 100644 index 0000000..6663cd4 --- /dev/null +++ b/test/data/number1_value.prop2 @@ -0,0 +1 @@ +{"options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.info b/test/data/subconfig_boolean1.info new file mode 100644 index 0000000..bee4f4f --- /dev/null +++ b/test/data/subconfig_boolean1.info @@ -0,0 +1 @@ +{"boolean1.options.boolean": {"doc": "Boolean 1", "name": "boolean", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "bool"}} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.owner b/test/data/subconfig_boolean1.owner new file mode 100644 index 0000000..9f8c56c --- /dev/null +++ b/test/data/subconfig_boolean1.owner @@ -0,0 +1 @@ +{"boolean1.options.boolean": "default"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.prop b/test/data/subconfig_boolean1.prop new file mode 100644 index 0000000..82992b0 --- /dev/null +++ b/test/data/subconfig_boolean1.prop @@ -0,0 +1 @@ +{"boolean1.options.boolean": []} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.prop2 b/test/data/subconfig_boolean1.prop2 new file mode 100644 index 0000000..82992b0 --- /dev/null +++ b/test/data/subconfig_boolean1.prop2 @@ -0,0 +1 @@ +{"boolean1.options.boolean": []} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.info b/test/data/subconfig_boolean1_frozen.info new file mode 100644 index 0000000..11d9b97 --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.info @@ -0,0 +1 @@ +{"boolean1_frozen.options.boolean": {"doc": "Boolean 1 frozen", "name": "boolean", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "bool"}} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.owner b/test/data/subconfig_boolean1_frozen.owner new file mode 100644 index 0000000..5c1c2f2 --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.owner @@ -0,0 +1 @@ +{"boolean1_frozen.options.boolean": "default"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.prop b/test/data/subconfig_boolean1_frozen.prop new file mode 100644 index 0000000..3268f4c --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.prop @@ -0,0 +1 @@ +{"boolean1_frozen.options.boolean": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.prop2 b/test/data/subconfig_boolean1_frozen.prop2 new file mode 100644 index 0000000..2b390e0 --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.prop2 @@ -0,0 +1 @@ +{"boolean1_frozen.options.boolean": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1.info b/test/data/subconfig_choice1.info new file mode 100644 index 0000000..32c3c79 --- /dev/null +++ b/test/data/subconfig_choice1.info @@ -0,0 +1 @@ +{"choice1.options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/subconfig_choice1.owner b/test/data/subconfig_choice1.owner new file mode 100644 index 0000000..ef25c9e --- /dev/null +++ b/test/data/subconfig_choice1.owner @@ -0,0 +1 @@ +{"choice1.options.choice": "default"} \ No newline at end of file diff --git a/test/data/subconfig_choice1.prop b/test/data/subconfig_choice1.prop new file mode 100644 index 0000000..49e4e52 --- /dev/null +++ b/test/data/subconfig_choice1.prop @@ -0,0 +1 @@ +{"choice1.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1.prop2 b/test/data/subconfig_choice1.prop2 new file mode 100644 index 0000000..49e4e52 --- /dev/null +++ b/test/data/subconfig_choice1.prop2 @@ -0,0 +1 @@ +{"choice1.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.info b/test/data/subconfig_choice1_frozen.info new file mode 100644 index 0000000..1457445 --- /dev/null +++ b/test/data/subconfig_choice1_frozen.info @@ -0,0 +1 @@ +{"choice1_frozen.options.choice": {"doc": "Choice description frozen", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.owner b/test/data/subconfig_choice1_frozen.owner new file mode 100644 index 0000000..c7a9ab6 --- /dev/null +++ b/test/data/subconfig_choice1_frozen.owner @@ -0,0 +1 @@ +{"choice1_frozen.options.choice": "default"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.prop b/test/data/subconfig_choice1_frozen.prop new file mode 100644 index 0000000..3f2ff1a --- /dev/null +++ b/test/data/subconfig_choice1_frozen.prop @@ -0,0 +1 @@ +{"choice1_frozen.options.choice": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.prop2 b/test/data/subconfig_choice1_frozen.prop2 new file mode 100644 index 0000000..f849929 --- /dev/null +++ b/test/data/subconfig_choice1_frozen.prop2 @@ -0,0 +1 @@ +{"choice1_frozen.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.info b/test/data/subconfig_choice1_multi.info new file mode 100644 index 0000000..ab3cfd7 --- /dev/null +++ b/test/data/subconfig_choice1_multi.info @@ -0,0 +1 @@ +{"choice1_multi.options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "choice"}} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.owner b/test/data/subconfig_choice1_multi.owner new file mode 100644 index 0000000..a9e62aa --- /dev/null +++ b/test/data/subconfig_choice1_multi.owner @@ -0,0 +1 @@ +{"choice1_multi.options.choice": "default"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.prop b/test/data/subconfig_choice1_multi.prop new file mode 100644 index 0000000..21605b8 --- /dev/null +++ b/test/data/subconfig_choice1_multi.prop @@ -0,0 +1 @@ +{"choice1_multi.options.choice": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.prop2 b/test/data/subconfig_choice1_multi.prop2 new file mode 100644 index 0000000..6487267 --- /dev/null +++ b/test/data/subconfig_choice1_multi.prop2 @@ -0,0 +1 @@ +{"choice1_multi.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.info b/test/data/subconfig_choice1_rename.info new file mode 100644 index 0000000..647ae2d --- /dev/null +++ b/test/data/subconfig_choice1_rename.info @@ -0,0 +1 @@ +{"choice1_rename.options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.owner b/test/data/subconfig_choice1_rename.owner new file mode 100644 index 0000000..4c978e3 --- /dev/null +++ b/test/data/subconfig_choice1_rename.owner @@ -0,0 +1 @@ +{"choice1_rename.options.choice": "default"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.prop b/test/data/subconfig_choice1_rename.prop new file mode 100644 index 0000000..644f540 --- /dev/null +++ b/test/data/subconfig_choice1_rename.prop @@ -0,0 +1 @@ +{"choice1_rename.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.prop2 b/test/data/subconfig_choice1_rename.prop2 new file mode 100644 index 0000000..644f540 --- /dev/null +++ b/test/data/subconfig_choice1_rename.prop2 @@ -0,0 +1 @@ +{"choice1_rename.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.info b/test/data/subconfig_choice1_requires.info new file mode 100644 index 0000000..b8aafaf --- /dev/null +++ b/test/data/subconfig_choice1_requires.info @@ -0,0 +1 @@ +{"choice1_requires.options.choice": {"doc": "Choice description", "name": "choice", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "choice"}} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.owner b/test/data/subconfig_choice1_requires.owner new file mode 100644 index 0000000..4a9775d --- /dev/null +++ b/test/data/subconfig_choice1_requires.owner @@ -0,0 +1 @@ +{"choice1_requires.options.choice": "default"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.prop b/test/data/subconfig_choice1_requires.prop new file mode 100644 index 0000000..e874959 --- /dev/null +++ b/test/data/subconfig_choice1_requires.prop @@ -0,0 +1 @@ +{"choice1_requires.options.choice": ["mandatory"]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.prop2 b/test/data/subconfig_choice1_requires.prop2 new file mode 100644 index 0000000..3b936a1 --- /dev/null +++ b/test/data/subconfig_choice1_requires.prop2 @@ -0,0 +1 @@ +{"choice1_requires.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_date1.info b/test/data/subconfig_date1.info new file mode 100644 index 0000000..31c98d8 --- /dev/null +++ b/test/data/subconfig_date1.info @@ -0,0 +1 @@ +{"date1.options.date": {"doc": "Date description", "name": "date", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "date"}} \ No newline at end of file diff --git a/test/data/subconfig_date1.owner b/test/data/subconfig_date1.owner new file mode 100644 index 0000000..cec64b6 --- /dev/null +++ b/test/data/subconfig_date1.owner @@ -0,0 +1 @@ +{"date1.options.date": "default"} \ No newline at end of file diff --git a/test/data/subconfig_date1.prop b/test/data/subconfig_date1.prop new file mode 100644 index 0000000..572fba2 --- /dev/null +++ b/test/data/subconfig_date1.prop @@ -0,0 +1 @@ +{"date1.options.date": []} \ No newline at end of file diff --git a/test/data/subconfig_date1.prop2 b/test/data/subconfig_date1.prop2 new file mode 100644 index 0000000..572fba2 --- /dev/null +++ b/test/data/subconfig_date1.prop2 @@ -0,0 +1 @@ +{"date1.options.date": []} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.info b/test/data/subconfig_date1_frozen.info new file mode 100644 index 0000000..bd83264 --- /dev/null +++ b/test/data/subconfig_date1_frozen.info @@ -0,0 +1 @@ +{"date1_frozen.options.date": {"doc": "Date description frozen", "name": "date", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "date"}} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.owner b/test/data/subconfig_date1_frozen.owner new file mode 100644 index 0000000..56584df --- /dev/null +++ b/test/data/subconfig_date1_frozen.owner @@ -0,0 +1 @@ +{"date1_frozen.options.date": "default"} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.prop b/test/data/subconfig_date1_frozen.prop new file mode 100644 index 0000000..c3f285f --- /dev/null +++ b/test/data/subconfig_date1_frozen.prop @@ -0,0 +1 @@ +{"date1_frozen.options.date": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.prop2 b/test/data/subconfig_date1_frozen.prop2 new file mode 100644 index 0000000..d568fa5 --- /dev/null +++ b/test/data/subconfig_date1_frozen.prop2 @@ -0,0 +1 @@ +{"date1_frozen.options.date": []} \ No newline at end of file diff --git a/test/data/subconfig_filename1.info b/test/data/subconfig_filename1.info new file mode 100644 index 0000000..962c17c --- /dev/null +++ b/test/data/subconfig_filename1.info @@ -0,0 +1 @@ +{"filename1.usbpath": {"doc": "Chemin d'acc\u00e8s", "name": "usbpath", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "filename"}} \ No newline at end of file diff --git a/test/data/subconfig_filename1.owner b/test/data/subconfig_filename1.owner new file mode 100644 index 0000000..d75de73 --- /dev/null +++ b/test/data/subconfig_filename1.owner @@ -0,0 +1 @@ +{"filename1.usbpath": "default"} \ No newline at end of file diff --git a/test/data/subconfig_filename1.prop b/test/data/subconfig_filename1.prop new file mode 100644 index 0000000..2ac6611 --- /dev/null +++ b/test/data/subconfig_filename1.prop @@ -0,0 +1 @@ +{"filename1.usbpath": ["mandatory"]} \ No newline at end of file diff --git a/test/data/subconfig_filename1.prop2 b/test/data/subconfig_filename1.prop2 new file mode 100644 index 0000000..2d79451 --- /dev/null +++ b/test/data/subconfig_filename1.prop2 @@ -0,0 +1 @@ +{"filename1.usbpath": []} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.info b/test/data/subconfig_hostname1.info new file mode 100644 index 0000000..b908597 --- /dev/null +++ b/test/data/subconfig_hostname1.info @@ -0,0 +1 @@ +{"hostname1.options.hostname1": {"doc": "Domainname Description", "name": "hostname1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "hostname1.options.hostname2": {"doc": "Domainname without dot Description", "name": "hostname2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "hostname1.options.hostname3": {"doc": "Hostname or IP Description", "name": "hostname3", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}, "hostname1.options.hostname4": {"doc": "Netbios Description", "name": "hostname4", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "domainname"}} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.owner b/test/data/subconfig_hostname1.owner new file mode 100644 index 0000000..c865668 --- /dev/null +++ b/test/data/subconfig_hostname1.owner @@ -0,0 +1 @@ +{"hostname1.options.hostname1": "default", "hostname1.options.hostname2": "default", "hostname1.options.hostname3": "default", "hostname1.options.hostname4": "default"} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.prop b/test/data/subconfig_hostname1.prop new file mode 100644 index 0000000..1cfc4aa --- /dev/null +++ b/test/data/subconfig_hostname1.prop @@ -0,0 +1 @@ +{"hostname1.options.hostname1": [], "hostname1.options.hostname2": [], "hostname1.options.hostname3": [], "hostname1.options.hostname4": []} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.prop2 b/test/data/subconfig_hostname1.prop2 new file mode 100644 index 0000000..1cfc4aa --- /dev/null +++ b/test/data/subconfig_hostname1.prop2 @@ -0,0 +1 @@ +{"hostname1.options.hostname1": [], "hostname1.options.hostname2": [], "hostname1.options.hostname3": [], "hostname1.options.hostname4": []} \ No newline at end of file diff --git a/test/data/subconfig_ip1.info b/test/data/subconfig_ip1.info new file mode 100644 index 0000000..a948e84 --- /dev/null +++ b/test/data/subconfig_ip1.info @@ -0,0 +1 @@ +{"ip1.options.ip": {"doc": "IP Description", "name": "ip", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "ip"}} \ No newline at end of file diff --git a/test/data/subconfig_ip1.owner b/test/data/subconfig_ip1.owner new file mode 100644 index 0000000..39deccd --- /dev/null +++ b/test/data/subconfig_ip1.owner @@ -0,0 +1 @@ +{"ip1.options.ip": "default"} \ No newline at end of file diff --git a/test/data/subconfig_ip1.prop b/test/data/subconfig_ip1.prop new file mode 100644 index 0000000..cbba476 --- /dev/null +++ b/test/data/subconfig_ip1.prop @@ -0,0 +1 @@ +{"ip1.options.ip": []} \ No newline at end of file diff --git a/test/data/subconfig_ip1.prop2 b/test/data/subconfig_ip1.prop2 new file mode 100644 index 0000000..cbba476 --- /dev/null +++ b/test/data/subconfig_ip1.prop2 @@ -0,0 +1 @@ +{"ip1.options.ip": []} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.info b/test/data/subconfig_ip1_frozen.info new file mode 100644 index 0000000..8077d4a --- /dev/null +++ b/test/data/subconfig_ip1_frozen.info @@ -0,0 +1 @@ +{"ip1_frozen.options.ip": {"doc": "IP Description frozen", "name": "ip", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "ip"}} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.owner b/test/data/subconfig_ip1_frozen.owner new file mode 100644 index 0000000..0f1cd6f --- /dev/null +++ b/test/data/subconfig_ip1_frozen.owner @@ -0,0 +1 @@ +{"ip1_frozen.options.ip": "default"} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.prop b/test/data/subconfig_ip1_frozen.prop new file mode 100644 index 0000000..ebc7642 --- /dev/null +++ b/test/data/subconfig_ip1_frozen.prop @@ -0,0 +1 @@ +{"ip1_frozen.options.ip": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.prop2 b/test/data/subconfig_ip1_frozen.prop2 new file mode 100644 index 0000000..4516985 --- /dev/null +++ b/test/data/subconfig_ip1_frozen.prop2 @@ -0,0 +1 @@ +{"ip1_frozen.options.ip": []} \ No newline at end of file diff --git a/test/data/subconfig_mail1.info b/test/data/subconfig_mail1.info new file mode 100644 index 0000000..5cc4f57 --- /dev/null +++ b/test/data/subconfig_mail1.info @@ -0,0 +1 @@ +{"mail1.options.mail": {"doc": "Mail Description", "name": "mail", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "email"}} \ No newline at end of file diff --git a/test/data/subconfig_mail1.owner b/test/data/subconfig_mail1.owner new file mode 100644 index 0000000..bf1df73 --- /dev/null +++ b/test/data/subconfig_mail1.owner @@ -0,0 +1 @@ +{"mail1.options.mail": "default"} \ No newline at end of file diff --git a/test/data/subconfig_mail1.prop b/test/data/subconfig_mail1.prop new file mode 100644 index 0000000..cb39002 --- /dev/null +++ b/test/data/subconfig_mail1.prop @@ -0,0 +1 @@ +{"mail1.options.mail": []} \ No newline at end of file diff --git a/test/data/subconfig_mail1.prop2 b/test/data/subconfig_mail1.prop2 new file mode 100644 index 0000000..cb39002 --- /dev/null +++ b/test/data/subconfig_mail1.prop2 @@ -0,0 +1 @@ +{"mail1.options.mail": []} \ No newline at end of file diff --git a/test/data/subconfig_number1.info b/test/data/subconfig_number1.info new file mode 100644 index 0000000..723b7c5 --- /dev/null +++ b/test/data/subconfig_number1.info @@ -0,0 +1 @@ +{"number1.options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/subconfig_number1.owner b/test/data/subconfig_number1.owner new file mode 100644 index 0000000..cfb70a6 --- /dev/null +++ b/test/data/subconfig_number1.owner @@ -0,0 +1 @@ +{"number1.options.integer": "default"} \ No newline at end of file diff --git a/test/data/subconfig_number1.prop b/test/data/subconfig_number1.prop new file mode 100644 index 0000000..c7d045e --- /dev/null +++ b/test/data/subconfig_number1.prop @@ -0,0 +1 @@ +{"number1.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1.prop2 b/test/data/subconfig_number1.prop2 new file mode 100644 index 0000000..c7d045e --- /dev/null +++ b/test/data/subconfig_number1.prop2 @@ -0,0 +1 @@ +{"number1.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.info b/test/data/subconfig_number1_frozen.info new file mode 100644 index 0000000..bb2fad0 --- /dev/null +++ b/test/data/subconfig_number1_frozen.info @@ -0,0 +1 @@ +{"number1_frozen.options.integer": {"doc": "integer 1 frozen", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.owner b/test/data/subconfig_number1_frozen.owner new file mode 100644 index 0000000..4d63e7e --- /dev/null +++ b/test/data/subconfig_number1_frozen.owner @@ -0,0 +1 @@ +{"number1_frozen.options.integer": "default"} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.prop b/test/data/subconfig_number1_frozen.prop new file mode 100644 index 0000000..191765f --- /dev/null +++ b/test/data/subconfig_number1_frozen.prop @@ -0,0 +1 @@ +{"number1_frozen.options.integer": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.prop2 b/test/data/subconfig_number1_frozen.prop2 new file mode 100644 index 0000000..653496f --- /dev/null +++ b/test/data/subconfig_number1_frozen.prop2 @@ -0,0 +1 @@ +{"number1_frozen.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.info b/test/data/subconfig_number1_mod_value.info new file mode 100644 index 0000000..229c8e4 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.info @@ -0,0 +1 @@ +{"number1_mod_value.options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.owner b/test/data/subconfig_number1_mod_value.owner new file mode 100644 index 0000000..70a8e44 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.owner @@ -0,0 +1 @@ +{"number1_mod_value.options.integer": "user"} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.prop b/test/data/subconfig_number1_mod_value.prop new file mode 100644 index 0000000..dd8ec20 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.prop @@ -0,0 +1 @@ +{"number1_mod_value.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.prop2 b/test/data/subconfig_number1_mod_value.prop2 new file mode 100644 index 0000000..dd8ec20 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.prop2 @@ -0,0 +1 @@ +{"number1_mod_value.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.info b/test/data/subconfig_number1_value.info new file mode 100644 index 0000000..4ae104c --- /dev/null +++ b/test/data/subconfig_number1_value.info @@ -0,0 +1 @@ +{"number1_value.options.integer": {"doc": "integer 1", "name": "integer", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "int"}} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.owner b/test/data/subconfig_number1_value.owner new file mode 100644 index 0000000..aeb2903 --- /dev/null +++ b/test/data/subconfig_number1_value.owner @@ -0,0 +1 @@ +{"number1_value.options.integer": "default"} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.prop b/test/data/subconfig_number1_value.prop new file mode 100644 index 0000000..d472955 --- /dev/null +++ b/test/data/subconfig_number1_value.prop @@ -0,0 +1 @@ +{"number1_value.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.prop2 b/test/data/subconfig_number1_value.prop2 new file mode 100644 index 0000000..d472955 --- /dev/null +++ b/test/data/subconfig_number1_value.prop2 @@ -0,0 +1 @@ +{"number1_value.options.integer": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.info b/test/data/subconfig_unicode1.info new file mode 100644 index 0000000..c728a34 --- /dev/null +++ b/test/data/subconfig_unicode1.info @@ -0,0 +1 @@ +{"unicode1.options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.owner b/test/data/subconfig_unicode1.owner new file mode 100644 index 0000000..7e5aa54 --- /dev/null +++ b/test/data/subconfig_unicode1.owner @@ -0,0 +1 @@ +{"unicode1.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.prop b/test/data/subconfig_unicode1.prop new file mode 100644 index 0000000..b9f2ff0 --- /dev/null +++ b/test/data/subconfig_unicode1.prop @@ -0,0 +1 @@ +{"unicode1.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.prop2 b/test/data/subconfig_unicode1.prop2 new file mode 100644 index 0000000..b9f2ff0 --- /dev/null +++ b/test/data/subconfig_unicode1.prop2 @@ -0,0 +1 @@ +{"unicode1.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.info b/test/data/subconfig_unicode1_frozen.info new file mode 100644 index 0000000..30f9273 --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.info @@ -0,0 +1 @@ +{"unicode1_frozen.options.unicode": {"doc": "Unicode 1 frozen", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.owner b/test/data/subconfig_unicode1_frozen.owner new file mode 100644 index 0000000..59f32f2 --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.owner @@ -0,0 +1 @@ +{"unicode1_frozen.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.prop b/test/data/subconfig_unicode1_frozen.prop new file mode 100644 index 0000000..497662b --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.prop @@ -0,0 +1 @@ +{"unicode1_frozen.options.unicode": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.prop2 b/test/data/subconfig_unicode1_frozen.prop2 new file mode 100644 index 0000000..96cd2aa --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.prop2 @@ -0,0 +1 @@ +{"unicode1_frozen.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.info b/test/data/subconfig_unicode1_mandatory.info new file mode 100644 index 0000000..5748499 --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.info @@ -0,0 +1 @@ +{"unicode1_mandatory.options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.owner b/test/data/subconfig_unicode1_mandatory.owner new file mode 100644 index 0000000..8eb5d50 --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.owner @@ -0,0 +1 @@ +{"unicode1_mandatory.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.prop b/test/data/subconfig_unicode1_mandatory.prop new file mode 100644 index 0000000..6857079 --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.prop @@ -0,0 +1 @@ +{"unicode1_mandatory.options.unicode": ["mandatory"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.prop2 b/test/data/subconfig_unicode1_mandatory.prop2 new file mode 100644 index 0000000..1d1c303 --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.prop2 @@ -0,0 +1 @@ +{"unicode1_mandatory.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.info b/test/data/subconfig_unicode1_mod_value.info new file mode 100644 index 0000000..ee533c9 --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.info @@ -0,0 +1 @@ +{"unicode1_mod_value.options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.owner b/test/data/subconfig_unicode1_mod_value.owner new file mode 100644 index 0000000..4cd0beb --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.owner @@ -0,0 +1 @@ +{"unicode1_mod_value.options.unicode": "user"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.prop b/test/data/subconfig_unicode1_mod_value.prop new file mode 100644 index 0000000..63ae3d0 --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.prop @@ -0,0 +1 @@ +{"unicode1_mod_value.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.prop2 b/test/data/subconfig_unicode1_mod_value.prop2 new file mode 100644 index 0000000..63ae3d0 --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.prop2 @@ -0,0 +1 @@ +{"unicode1_mod_value.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.info b/test/data/subconfig_unicode1_multi.info new file mode 100644 index 0000000..65c0481 --- /dev/null +++ b/test/data/subconfig_unicode1_multi.info @@ -0,0 +1 @@ +{"unicode1_multi.options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.owner b/test/data/subconfig_unicode1_multi.owner new file mode 100644 index 0000000..d0e97c5 --- /dev/null +++ b/test/data/subconfig_unicode1_multi.owner @@ -0,0 +1 @@ +{"unicode1_multi.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.prop b/test/data/subconfig_unicode1_multi.prop new file mode 100644 index 0000000..f5a7c21 --- /dev/null +++ b/test/data/subconfig_unicode1_multi.prop @@ -0,0 +1 @@ +{"unicode1_multi.options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.prop2 b/test/data/subconfig_unicode1_multi.prop2 new file mode 100644 index 0000000..b72058d --- /dev/null +++ b/test/data/subconfig_unicode1_multi.prop2 @@ -0,0 +1 @@ +{"unicode1_multi.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.info b/test/data/subconfig_unicode1_multi_hidden.info new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.info @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.owner b/test/data/subconfig_unicode1_multi_hidden.owner new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.owner @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.prop b/test/data/subconfig_unicode1_multi_hidden.prop new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.prop @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.prop2 b/test/data/subconfig_unicode1_multi_hidden.prop2 new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.prop2 @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.info b/test/data/subconfig_unicode1_multi_mandatory.info new file mode 100644 index 0000000..0df362a --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.info @@ -0,0 +1 @@ +{"unicode1_multi_mandatory.options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.owner b/test/data/subconfig_unicode1_multi_mandatory.owner new file mode 100644 index 0000000..498727b --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.owner @@ -0,0 +1 @@ +{"unicode1_multi_mandatory.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.prop b/test/data/subconfig_unicode1_multi_mandatory.prop new file mode 100644 index 0000000..468a15f --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.prop @@ -0,0 +1 @@ +{"unicode1_multi_mandatory.options.unicode": ["empty", "mandatory"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.prop2 b/test/data/subconfig_unicode1_multi_mandatory.prop2 new file mode 100644 index 0000000..5b9bbe9 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.prop2 @@ -0,0 +1 @@ +{"unicode1_multi_mandatory.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.info b/test/data/subconfig_unicode1_multi_mod_value.info new file mode 100644 index 0000000..84fc8b0 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.info @@ -0,0 +1 @@ +{"unicode1_multi_mod_value.options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.owner b/test/data/subconfig_unicode1_multi_mod_value.owner new file mode 100644 index 0000000..778c8d2 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.owner @@ -0,0 +1 @@ +{"unicode1_multi_mod_value.options.unicode": "user"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.prop b/test/data/subconfig_unicode1_multi_mod_value.prop new file mode 100644 index 0000000..599bd33 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.prop @@ -0,0 +1 @@ +{"unicode1_multi_mod_value.options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.prop2 b/test/data/subconfig_unicode1_multi_mod_value.prop2 new file mode 100644 index 0000000..19997a2 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.prop2 @@ -0,0 +1 @@ +{"unicode1_multi_mod_value.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.info b/test/data/subconfig_unicode1_multi_not_equal_collapse.info new file mode 100644 index 0000000..3a8bf7f --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.info @@ -0,0 +1 @@ +{"unicode1_multi_not_equal_collapse.descr1.unicode1": {"doc": "Unicode 1, not equal to 'a'", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"doc": "Multi unicode 1, not equal to 'a' or 'b'", "name": "unicode1_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"doc": "Multi unicode 2", "name": "unicode2_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "unicode1_multi_not_equal_collapse.descr3.unicode3": {"doc": "Unicode 3", "name": "unicode3", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"doc": "Multi unicode 3", "name": "unicode3_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.owner b/test/data/subconfig_unicode1_multi_not_equal_collapse.owner new file mode 100644 index 0000000..30e20bd --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.owner @@ -0,0 +1 @@ +{"unicode1_multi_not_equal_collapse.descr1.unicode1": "default", "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": "default", "unicode1_multi_not_equal_collapse.descr2.unicode2": "default", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": "default", "unicode1_multi_not_equal_collapse.descr3.unicode3": "default", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.prop b/test/data/subconfig_unicode1_multi_not_equal_collapse.prop new file mode 100644 index 0000000..1d64512 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.prop @@ -0,0 +1 @@ +{"unicode1_multi_not_equal_collapse.descr1.unicode1": [], "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": ["empty"], "unicode1_multi_not_equal_collapse.descr2.unicode2": [], "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": ["empty"], "unicode1_multi_not_equal_collapse.descr3.unicode3": [], "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.prop2 b/test/data/subconfig_unicode1_multi_not_equal_collapse.prop2 new file mode 100644 index 0000000..66e81b6 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.prop2 @@ -0,0 +1 @@ +{"unicode1_multi_not_equal_collapse.descr1.unicode1": [], "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": [], "unicode1_multi_not_equal_collapse.descr2.unicode2": [], "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": [], "unicode1_multi_not_equal_collapse.descr3.unicode3": [], "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.info b/test/data/subconfig_unicode1_multi_requires.info new file mode 100644 index 0000000..7bfaedc --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.info @@ -0,0 +1 @@ +{"unicode1_multi_requires.options.unicode1": {"doc": "Value 'test' must show Unicode 2", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.owner b/test/data/subconfig_unicode1_multi_requires.owner new file mode 100644 index 0000000..78a4124 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.owner @@ -0,0 +1 @@ +{"unicode1_multi_requires.options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.prop b/test/data/subconfig_unicode1_multi_requires.prop new file mode 100644 index 0000000..2c7351c --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.prop @@ -0,0 +1 @@ +{"unicode1_multi_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.prop2 b/test/data/subconfig_unicode1_multi_requires.prop2 new file mode 100644 index 0000000..2c7351c --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.prop2 @@ -0,0 +1 @@ +{"unicode1_multi_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.info b/test/data/subconfig_unicode1_multi_value.info new file mode 100644 index 0000000..b084581 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.info @@ -0,0 +1 @@ +{"unicode1_multi_value.options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.owner b/test/data/subconfig_unicode1_multi_value.owner new file mode 100644 index 0000000..cdfd941 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.owner @@ -0,0 +1 @@ +{"unicode1_multi_value.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.prop b/test/data/subconfig_unicode1_multi_value.prop new file mode 100644 index 0000000..d64a184 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.prop @@ -0,0 +1 @@ +{"unicode1_multi_value.options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.prop2 b/test/data/subconfig_unicode1_multi_value.prop2 new file mode 100644 index 0000000..f62e1d8 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.prop2 @@ -0,0 +1 @@ +{"unicode1_multi_value.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.info b/test/data/subconfig_unicode1_not_equal.info new file mode 100644 index 0000000..e46c92f --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.info @@ -0,0 +1 @@ +{"unicode1_not_equal.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode1_not_equal.options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.owner b/test/data/subconfig_unicode1_not_equal.owner new file mode 100644 index 0000000..97a90fc --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.owner @@ -0,0 +1 @@ +{"unicode1_not_equal.options.unicode1": "default", "unicode1_not_equal.options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.prop b/test/data/subconfig_unicode1_not_equal.prop new file mode 100644 index 0000000..08a8224 --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.prop @@ -0,0 +1 @@ +{"unicode1_not_equal.options.unicode1": [], "unicode1_not_equal.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.prop2 b/test/data/subconfig_unicode1_not_equal.prop2 new file mode 100644 index 0000000..08a8224 --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.prop2 @@ -0,0 +1 @@ +{"unicode1_not_equal.options.unicode1": [], "unicode1_not_equal.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.info b/test/data/subconfig_unicode1_optiondescription_requires.info new file mode 100644 index 0000000..e2eab6b --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.info @@ -0,0 +1 @@ +{"unicode1_optiondescription_requires.options.unicode1": {"doc": "Value 'test' must show OptionDescription", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.owner b/test/data/subconfig_unicode1_optiondescription_requires.owner new file mode 100644 index 0000000..9b1e727 --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.owner @@ -0,0 +1 @@ +{"unicode1_optiondescription_requires.options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.prop b/test/data/subconfig_unicode1_optiondescription_requires.prop new file mode 100644 index 0000000..cd037a9 --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.prop @@ -0,0 +1 @@ +{"unicode1_optiondescription_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.prop2 b/test/data/subconfig_unicode1_optiondescription_requires.prop2 new file mode 100644 index 0000000..cd037a9 --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.prop2 @@ -0,0 +1 @@ +{"unicode1_optiondescription_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.info b/test/data/subconfig_unicode1_requires.info new file mode 100644 index 0000000..0887435 --- /dev/null +++ b/test/data/subconfig_unicode1_requires.info @@ -0,0 +1 @@ +{"unicode1_requires.options.unicode1": {"doc": "Value 'test' must show Unicode 2", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.owner b/test/data/subconfig_unicode1_requires.owner new file mode 100644 index 0000000..338d56b --- /dev/null +++ b/test/data/subconfig_unicode1_requires.owner @@ -0,0 +1 @@ +{"unicode1_requires.options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.prop b/test/data/subconfig_unicode1_requires.prop new file mode 100644 index 0000000..6d33607 --- /dev/null +++ b/test/data/subconfig_unicode1_requires.prop @@ -0,0 +1 @@ +{"unicode1_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.prop2 b/test/data/subconfig_unicode1_requires.prop2 new file mode 100644 index 0000000..6d33607 --- /dev/null +++ b/test/data/subconfig_unicode1_requires.prop2 @@ -0,0 +1 @@ +{"unicode1_requires.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.info b/test/data/subconfig_unicode1_simple_callback.info new file mode 100644 index 0000000..2c7a1e3 --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.info @@ -0,0 +1 @@ +{"unicode1_simple_callback.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.owner b/test/data/subconfig_unicode1_simple_callback.owner new file mode 100644 index 0000000..0e42975 --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.owner @@ -0,0 +1 @@ +{"unicode1_simple_callback.options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.prop b/test/data/subconfig_unicode1_simple_callback.prop new file mode 100644 index 0000000..c2ff7ed --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.prop @@ -0,0 +1 @@ +{"unicode1_simple_callback.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.prop2 b/test/data/subconfig_unicode1_simple_callback.prop2 new file mode 100644 index 0000000..c2ff7ed --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.prop2 @@ -0,0 +1 @@ +{"unicode1_simple_callback.options.unicode1": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.info b/test/data/subconfig_unicode2.info new file mode 100644 index 0000000..48ba8fb --- /dev/null +++ b/test/data/subconfig_unicode2.info @@ -0,0 +1 @@ +{"unicode2.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode2.options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.owner b/test/data/subconfig_unicode2.owner new file mode 100644 index 0000000..1259e0b --- /dev/null +++ b/test/data/subconfig_unicode2.owner @@ -0,0 +1 @@ +{"unicode2.options.unicode1": "default", "unicode2.options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.prop b/test/data/subconfig_unicode2.prop new file mode 100644 index 0000000..8069d06 --- /dev/null +++ b/test/data/subconfig_unicode2.prop @@ -0,0 +1 @@ +{"unicode2.options.unicode1": [], "unicode2.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.prop2 b/test/data/subconfig_unicode2.prop2 new file mode 100644 index 0000000..8069d06 --- /dev/null +++ b/test/data/subconfig_unicode2.prop2 @@ -0,0 +1 @@ +{"unicode2.options.unicode1": [], "unicode2.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.info b/test/data/subconfig_unicode2_copy.info new file mode 100644 index 0000000..2ec65ed --- /dev/null +++ b/test/data/subconfig_unicode2_copy.info @@ -0,0 +1 @@ +{"unicode2_copy.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "unicode2_copy.options.unicode2": {"doc": "Unicode 2 (copy)", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.owner b/test/data/subconfig_unicode2_copy.owner new file mode 100644 index 0000000..c4ba0f2 --- /dev/null +++ b/test/data/subconfig_unicode2_copy.owner @@ -0,0 +1 @@ +{"unicode2_copy.options.unicode1": "default", "unicode2_copy.options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.prop b/test/data/subconfig_unicode2_copy.prop new file mode 100644 index 0000000..6c4b876 --- /dev/null +++ b/test/data/subconfig_unicode2_copy.prop @@ -0,0 +1 @@ +{"unicode2_copy.options.unicode1": [], "unicode2_copy.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.prop2 b/test/data/subconfig_unicode2_copy.prop2 new file mode 100644 index 0000000..6c4b876 --- /dev/null +++ b/test/data/subconfig_unicode2_copy.prop2 @@ -0,0 +1 @@ +{"unicode2_copy.options.unicode1": [], "unicode2_copy.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.info b/test/data/subconfig_unicode2_multi_copy.info new file mode 100644 index 0000000..3d95514 --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.info @@ -0,0 +1 @@ +{"unicode2_multi_copy.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "unicode2_multi_copy.options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.owner b/test/data/subconfig_unicode2_multi_copy.owner new file mode 100644 index 0000000..0179f14 --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.owner @@ -0,0 +1 @@ +{"unicode2_multi_copy.options.unicode1": "default", "unicode2_multi_copy.options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.prop b/test/data/subconfig_unicode2_multi_copy.prop new file mode 100644 index 0000000..073f45c --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.prop @@ -0,0 +1 @@ +{"unicode2_multi_copy.options.unicode1": ["empty"], "unicode2_multi_copy.options.unicode2": ["empty"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.prop2 b/test/data/subconfig_unicode2_multi_copy.prop2 new file mode 100644 index 0000000..17db4a9 --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.prop2 @@ -0,0 +1 @@ +{"unicode2_multi_copy.options.unicode1": [], "unicode2_multi_copy.options.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.info b/test/data/subconfig_unicode_hidden.info new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode_hidden.info @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.owner b/test/data/subconfig_unicode_hidden.owner new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode_hidden.owner @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.prop b/test/data/subconfig_unicode_hidden.prop new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode_hidden.prop @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.prop2 b/test/data/subconfig_unicode_hidden.prop2 new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode_hidden.prop2 @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.info b/test/data/subconfig_unicode_property.info new file mode 100644 index 0000000..507001a --- /dev/null +++ b/test/data/subconfig_unicode_property.info @@ -0,0 +1 @@ +{"unicode_property.options.unicode": {"doc": "Expert unicode", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.owner b/test/data/subconfig_unicode_property.owner new file mode 100644 index 0000000..c2daea9 --- /dev/null +++ b/test/data/subconfig_unicode_property.owner @@ -0,0 +1 @@ +{"unicode_property.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.prop b/test/data/subconfig_unicode_property.prop new file mode 100644 index 0000000..e9bab17 --- /dev/null +++ b/test/data/subconfig_unicode_property.prop @@ -0,0 +1 @@ +{"unicode_property.options.unicode": ["expert"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.prop2 b/test/data/subconfig_unicode_property.prop2 new file mode 100644 index 0000000..1f79247 --- /dev/null +++ b/test/data/subconfig_unicode_property.prop2 @@ -0,0 +1 @@ +{"unicode_property.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.info b/test/data/subconfig_unicode_property_optiondescription.info new file mode 100644 index 0000000..6c29aa1 --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.info @@ -0,0 +1 @@ +{"unicode_property_optiondescription.options.unicode": {"doc": "Expert unicode", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.owner b/test/data/subconfig_unicode_property_optiondescription.owner new file mode 100644 index 0000000..4b18868 --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.owner @@ -0,0 +1 @@ +{"unicode_property_optiondescription.options.unicode": "default"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.prop b/test/data/subconfig_unicode_property_optiondescription.prop new file mode 100644 index 0000000..688e2aa --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.prop @@ -0,0 +1 @@ +{"unicode_property_optiondescription.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.prop2 b/test/data/subconfig_unicode_property_optiondescription.prop2 new file mode 100644 index 0000000..688e2aa --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.prop2 @@ -0,0 +1 @@ +{"unicode_property_optiondescription.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_username1.info b/test/data/subconfig_username1.info new file mode 100644 index 0000000..fa83ade --- /dev/null +++ b/test/data/subconfig_username1.info @@ -0,0 +1 @@ +{"username1.options.username": {"doc": "Username description", "name": "username", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "username"}} \ No newline at end of file diff --git a/test/data/subconfig_username1.owner b/test/data/subconfig_username1.owner new file mode 100644 index 0000000..6300af8 --- /dev/null +++ b/test/data/subconfig_username1.owner @@ -0,0 +1 @@ +{"username1.options.username": "default"} \ No newline at end of file diff --git a/test/data/subconfig_username1.prop b/test/data/subconfig_username1.prop new file mode 100644 index 0000000..13ea301 --- /dev/null +++ b/test/data/subconfig_username1.prop @@ -0,0 +1 @@ +{"username1.options.username": []} \ No newline at end of file diff --git a/test/data/subconfig_username1.prop2 b/test/data/subconfig_username1.prop2 new file mode 100644 index 0000000..13ea301 --- /dev/null +++ b/test/data/subconfig_username1.prop2 @@ -0,0 +1 @@ +{"username1.options.username": []} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.info b/test/data/subconfig_username1_frozen.info new file mode 100644 index 0000000..5269f31 --- /dev/null +++ b/test/data/subconfig_username1_frozen.info @@ -0,0 +1 @@ +{"username1_frozen.options.username": {"doc": "Username description frozen", "name": "username", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "username"}} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.owner b/test/data/subconfig_username1_frozen.owner new file mode 100644 index 0000000..67d12af --- /dev/null +++ b/test/data/subconfig_username1_frozen.owner @@ -0,0 +1 @@ +{"username1_frozen.options.username": "default"} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.prop b/test/data/subconfig_username1_frozen.prop new file mode 100644 index 0000000..5fced68 --- /dev/null +++ b/test/data/subconfig_username1_frozen.prop @@ -0,0 +1 @@ +{"username1_frozen.options.username": ["frozen"]} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.prop2 b/test/data/subconfig_username1_frozen.prop2 new file mode 100644 index 0000000..c248e14 --- /dev/null +++ b/test/data/subconfig_username1_frozen.prop2 @@ -0,0 +1 @@ +{"username1_frozen.options.username": []} \ No newline at end of file diff --git a/test/data/unicode1.info b/test/data/unicode1.info new file mode 100644 index 0000000..d12e9f0 --- /dev/null +++ b/test/data/unicode1.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1.json b/test/data/unicode1.json index 4f26bfe..9ab28b4 100644 --- a/test/data/unicode1.json +++ b/test/data/unicode1.json @@ -1,27 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Unicode 1", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1.owner b/test/data/unicode1.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1.prop b/test/data/unicode1.prop new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1.prop @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1.prop2 b/test/data/unicode1.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_frozen.info b/test/data/unicode1_frozen.info new file mode 100644 index 0000000..5682a0e --- /dev/null +++ b/test/data/unicode1_frozen.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Unicode 1 frozen", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_frozen.json b/test/data/unicode1_frozen.json index b242423..0494842 100644 --- a/test/data/unicode1_frozen.json +++ b/test/data/unicode1_frozen.json @@ -1,32 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "type": "string", - "title": "Unicode 1 frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "readOnly": true - } - ], - "form": [ - { - "key": "options.unicode", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "readOnly": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_frozen.owner b/test/data/unicode1_frozen.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1_frozen.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1_frozen.prop b/test/data/unicode1_frozen.prop new file mode 100644 index 0000000..652ff08 --- /dev/null +++ b/test/data/unicode1_frozen.prop @@ -0,0 +1 @@ +{"options.unicode": ["frozen"]} \ No newline at end of file diff --git a/test/data/unicode1_frozen.prop2 b/test/data/unicode1_frozen.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_frozen.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.info b/test/data/unicode1_mandatory.info new file mode 100644 index 0000000..d12e9f0 --- /dev/null +++ b/test/data/unicode1_mandatory.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.json b/test/data/unicode1_mandatory.json index 626469e..90cddb2 100644 --- a/test/data/unicode1_mandatory.json +++ b/test/data/unicode1_mandatory.json @@ -1,32 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Unicode 1", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.owner b/test/data/unicode1_mandatory.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1_mandatory.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.prop b/test/data/unicode1_mandatory.prop new file mode 100644 index 0000000..bfef27d --- /dev/null +++ b/test/data/unicode1_mandatory.prop @@ -0,0 +1 @@ +{"options.unicode": ["mandatory"]} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.prop2 b/test/data/unicode1_mandatory.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_mandatory.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_master_hidden_slaves.json b/test/data/unicode1_master_hidden_slaves.json index 96402fb..ea823e8 100644 --- a/test/data/unicode1_master_hidden_slaves.json +++ b/test/data/unicode1_master_hidden_slaves.json @@ -1,72 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "type": "string", - "isMulti": true, - "title": "Unicode master" - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2" - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 3" - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "display": false, - "required": true, - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode.unicode", - "type": "input" - }, - { - "key": "options.unicode.unicode1", - "type": "input" - }, - { - "key": "options.unicode.unicode2", - "type": "input" - }, - { - "key": "options.unicode.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves.json b/test/data/unicode1_master_slaves.json index 5f73f28..7025b33 100644 --- a/test/data/unicode1_master_slaves.json +++ b/test/data/unicode1_master_slaves.json @@ -1,70 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Unicode slave 2", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "type": "input", - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_default_value.json b/test/data/unicode1_master_slaves_default_value.json index f098989..d7985a0 100644 --- a/test/data/unicode1_master_slaves_default_value.json +++ b/test/data/unicode1_master_slaves_default_value.json @@ -1,94 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "value": [ - "val1", - "val2" - ], - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Unicode slave 2 with default multi", - "type": "string", - "isMulti": true, - "default": "slave2" - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true, - "value": [ - "val1", - "val2" - ], - "owner": "default" - }, - { - "key": "options.unicode.unicode2", - "index": 0, - "value": "slave2", - "owner": "default" - }, - { - "key": "options.unicode.unicode2", - "index": 1, - "value": "slave2", - "owner": "default" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "clearable": true, - "type": "input", - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "slave2", "isMulti": true, "title": "Unicode slave 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "default"}, {"key": "options.unicode.unicode2", "index": 0, "value": "slave2", "owner": "default"}, {"key": "options.unicode.unicode2", "index": 1, "value": "slave2", "owner": "default"}], "form": [{"key": "options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_hidden.json b/test/data/unicode1_master_slaves_hidden.json index 06d0187..42bde42 100644 --- a/test/data/unicode1_master_slaves_hidden.json +++ b/test/data/unicode1_master_slaves_hidden.json @@ -1,94 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "type": "string", - "isMulti": true, - "title": "Unicode master" - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2 hidden" - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 3" - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true, - "value": [ - "val1", - "val2" - ], - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "display": false, - "hidden": true, - "index": 0, - "value": "super", - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "display": false, - "hidden": true, - "index": 1 - }, - { - "key": "options.unicode.unicode2", - "display": false, - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode.unicode", - "type": "input" - }, - { - "key": "options.unicode.unicode1", - "type": "input" - }, - { - "key": "options.unicode.unicode2", - "type": "input" - }, - { - "key": "options.unicode.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2 hidden"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "user"}, {"key": "options.unicode.unicode2", "display": false, "hidden": true, "index": 0, "value": "super", "owner": "user"}, {"key": "options.unicode.unicode2", "display": false, "hidden": true, "index": 1}, {"key": "options.unicode.unicode2", "display": false, "hidden": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_hidden_all_default.json b/test/data/unicode1_master_slaves_hidden_all_default.json index 46d641d..97666df 100644 --- a/test/data/unicode1_master_slaves_hidden_all_default.json +++ b/test/data/unicode1_master_slaves_hidden_all_default.json @@ -1,69 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Unicode master", - "type": "string" - }, - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "title": "Unicode slave 2", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1.unicode1", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "type": "input", - "key": "options.unicode1.unicode1" - }, - { - "type": "input", - "key": "options.unicode1.unicode2" - }, - { - "type": "input", - "key": "options.unicode1.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode master"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_not_equal.json b/test/data/unicode1_master_slaves_not_equal.json index 58c75aa..28072e7 100644 --- a/test/data/unicode1_master_slaves_not_equal.json +++ b/test/data/unicode1_master_slaves_not_equal.json @@ -1,76 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Unicode slave 2 not equal", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3 not equal", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "type": "input", - "not_equal": {"options": [ - "options.unicode.unicode3" - ]}, - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "not_equal": {"options": [ - "options.unicode.unicode2" - ]}, - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2 not equal"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input", "not_equal": {"options": ["options.unicode.unicode3"]}}, {"key": "options.unicode.unicode3", "type": "input", "not_equal": {"options": ["options.unicode.unicode2"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires.json b/test/data/unicode1_master_slaves_requires.json index 786a3dd..8df903b 100644 --- a/test/data/unicode1_master_slaves_requires.json +++ b/test/data/unicode1_master_slaves_requires.json @@ -1,84 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Values 'test' must show 'Unicode slave 3'", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode.unicode3" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode.unicode3" - ] - } - } - }, - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 3'"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_all.json b/test/data/unicode1_master_slaves_requires_all.json index 6be66a2..6a2041b 100644 --- a/test/data/unicode1_master_slaves_requires_all.json +++ b/test/data/unicode1_master_slaves_requires_all.json @@ -1,90 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "type": "string", - "title": "Value 'test' must show MasterSlaves" - }, - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "type": "string", - "isMulti": true, - "title": "Unicode master" - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2" - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1", - "properties": [ - "hidden" - ], - "hidden": true - }, - { - "key": "options.unicode1.unicode1", - "required": true - } - ], - "form": [ - { - "key": "options.unicode", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode1" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode1" - ] - } - } - } - }, - { - "key": "options.unicode1.unicode1", - "type": "input" - }, - { - "key": "options.unicode1.unicode2", - "type": "input" - }, - { - "key": "options.unicode1.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show MasterSlaves"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_master.json b/test/data/unicode1_master_slaves_requires_master.json index 7d4f49c..a3fd279 100644 --- a/test/data/unicode1_master_slaves_requires_master.json +++ b/test/data/unicode1_master_slaves_requires_master.json @@ -1,90 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "type": "string", - "title": "Value 'test' must show master" - }, - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "type": "string", - "isMulti": true, - "title": "Unicode master" - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2" - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1", - "properties": [ - "hidden" - ], - "hidden": true - }, - { - "key": "options.unicode1.unicode1", - "required": true - } - ], - "form": [ - { - "key": "options.unicode", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode1" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode1" - ] - } - } - } - }, - { - "key": "options.unicode1.unicode1", - "type": "input" - }, - { - "key": "options.unicode1.unicode2", - "type": "input" - }, - { - "key": "options.unicode1.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show master"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, {"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_slave.json b/test/data/unicode1_master_slaves_requires_slave.json index d3cb944..ab1da21 100644 --- a/test/data/unicode1_master_slaves_requires_slave.json +++ b/test/data/unicode1_master_slaves_requires_slave.json @@ -1,74 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "title": "Values 'test' must show 'Unicode slave 2'", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "title": "Unicode slave 2", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1.unicode1", - "required": true - } - ], - "form": [ - { - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode1.unicode3" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode1.unicode3" - ] - } - } - }, - "key": "options.unicode1.unicode1" - }, - { - "type": "input", - "key": "options.unicode1.unicode2" - }, - { - "type": "input", - "key": "options.unicode1.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_slave_value.json b/test/data/unicode1_master_slaves_requires_slave_value.json index 909c475..a7fdfde 100644 --- a/test/data/unicode1_master_slaves_requires_slave_value.json +++ b/test/data/unicode1_master_slaves_requires_slave_value.json @@ -1,96 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "type": "string", - "isMulti": true, - "title": "Values 'test' must show 'Unicode slave 2'" - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2" - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1.unicode1", - "required": true, - "value": [ - "test", - "pas test" - ], - "owner": "user" - }, - { - "key": "options.unicode1.unicode2", - "index": 0, - "value": "super1", - "owner": "user" - }, - { - "key": "options.unicode1.unicode3", - "index": 0, - "value": "super1", - "owner": "user" - }, - { - "key": "options.unicode1.unicode3", - "hidden": true, - "index": 1 - } - ], - "form": [ - { - "key": "options.unicode1.unicode1", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode1.unicode3" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode1.unicode3" - ] - } - } - } - }, - { - "key": "options.unicode1.unicode2", - "type": "input" - }, - { - "key": "options.unicode1.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true, "value": ["test", "pas test"], "owner": "user"}, {"key": "options.unicode1.unicode2", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode1.unicode3", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode1.unicode3", "hidden": true, "index": 1}], "form": [{"key": "options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode2", "type": "input"}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_slaves.json b/test/data/unicode1_master_slaves_requires_slaves.json index 7111b7c..c557030 100644 --- a/test/data/unicode1_master_slaves_requires_slaves.json +++ b/test/data/unicode1_master_slaves_requires_slaves.json @@ -1,74 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "properties": { - "options.unicode1.unicode1": { - "name": "options.unicode1.unicode1", - "title": "Unicode master", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode2": { - "name": "options.unicode1.unicode2", - "title": "Values 'test' must show 'Unicode slave 2'", - "type": "string", - "isMulti": true - }, - "options.unicode1.unicode3": { - "name": "options.unicode1.unicode3", - "title": "Unicode slave 2", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1.unicode1", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode1.unicode1" - }, - { - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode1.unicode3" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode1.unicode3" - ] - } - } - }, - "key": "options.unicode1.unicode2" - }, - { - "type": "input", - "key": "options.unicode1.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1.unicode1", "required": true}], "form": [{"key": "options.unicode1.unicode1", "type": "input"}, {"key": "options.unicode1.unicode2", "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, {"key": "options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_requires_value.json b/test/data/unicode1_master_slaves_requires_value.json index 3dedfdf..c5d4dfa 100644 --- a/test/data/unicode1_master_slaves_requires_value.json +++ b/test/data/unicode1_master_slaves_requires_value.json @@ -1,120 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "type": "string", - "isMulti": true, - "title": "Values 'test' must show 'Unicode slave 3'" - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "type": "string", - "isMulti": true, - "title": "Unicode slave 1" - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode slave 2" - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "type": "string", - "isMulti": true, - "title": "Unicode slave 3" - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true, - "value": [ - "test", - "val2" - ], - "owner": "user" - }, - { - "key": "options.unicode.unicode1", - "index": 0, - "value": "super1", - "owner": "user" - }, - { - "key": "options.unicode.unicode1", - "index": 1, - "value": "super2", - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "index": 0, - "value": "pas test", - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "index": 1, - "value": "test", - "owner": "user" - }, - { - "key": "options.unicode.unicode3", - "hidden": true, - "index": 1, - "value": "super", - "owner": "user" - } - ], - "form": [ - { - "key": "options.unicode.unicode", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode.unicode3" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode.unicode3" - ] - } - } - } - }, - { - "key": "options.unicode.unicode1", - "type": "input" - }, - { - "key": "options.unicode.unicode2", - "type": "input" - }, - { - "key": "options.unicode.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 3'"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["test", "val2"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "options.unicode.unicode3", "hidden": true, "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "options.unicode.unicode", "type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_submulti.json b/test/data/unicode1_master_slaves_submulti.json index 1771d72..679aa57 100644 --- a/test/data/unicode1_master_slaves_submulti.json +++ b/test/data/unicode1_master_slaves_submulti.json @@ -1,71 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Unicode slave 2 submulti", - "type": "string", - "isMulti": true, - "isSubMulti": true - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "type": "input", - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode slave 2 submulti"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true}], "form": [{"key": "options.unicode.unicode", "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_master_slaves_value.json b/test/data/unicode1_master_slaves_value.json index 9294971..6dd498c 100644 --- a/test/data/unicode1_master_slaves_value.json +++ b/test/data/unicode1_master_slaves_value.json @@ -1,112 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "properties": { - "options.unicode.unicode": { - "name": "options.unicode.unicode", - "title": "Unicode master", - "type": "string", - "value": [ - "val1", - "val2" - ], - "isMulti": true - }, - "options.unicode.unicode1": { - "name": "options.unicode.unicode1", - "title": "Unicode slave 1", - "type": "string", - "isMulti": true - }, - "options.unicode.unicode2": { - "name": "options.unicode.unicode2", - "title": "Unicode slave 2 with default multi", - "type": "string", - "isMulti": true, - "default": "slave2" - }, - "options.unicode.unicode3": { - "name": "options.unicode.unicode3", - "title": "Unicode slave 3", - "type": "string", - "isMulti": true - } - }, - "type": "array", - "title": "Common configuration 1" - } - }, - "type": "object", - "title": "Common configuration 2" - } - }, - "model": [ - { - "key": "options.unicode.unicode", - "required": true, - "value": [ - "val3", - "val4" - ], - "owner": "user" - }, - { - "key": "options.unicode.unicode1", - "index": 0, - "value": "super1", - "owner": "user" - }, - { - "key": "options.unicode.unicode1", - "index": 1, - "value": "super2", - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "index": 0, - "value": "pas test", - "owner": "user" - }, - { - "key": "options.unicode.unicode2", - "index": 1, - "value": "test", - "owner": "user" - }, - { - "key": "options.unicode.unicode3", - "index": 1, - "value": "super", - "owner": "user" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "key": "options.unicode.unicode" - }, - { - "type": "input", - "key": "options.unicode.unicode1" - }, - { - "clearable": true, - "type": "input", - "key": "options.unicode.unicode2" - }, - { - "type": "input", - "key": "options.unicode.unicode3" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode master"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "slave2", "isMulti": true, "title": "Unicode slave 2 with default multi"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": [{"key": "options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode1", "type": "input"}, {"key": "options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.info b/test/data/unicode1_mod_value.info new file mode 100644 index 0000000..d12e9f0 --- /dev/null +++ b/test/data/unicode1_mod_value.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.json b/test/data/unicode1_mod_value.json index c381da8..461dcef 100644 --- a/test/data/unicode1_mod_value.json +++ b/test/data/unicode1_mod_value.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Unicode 1", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "value": "a", - "owner": "user" - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "value": "a", "owner": "user"}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.owner b/test/data/unicode1_mod_value.owner new file mode 100644 index 0000000..0717f11 --- /dev/null +++ b/test/data/unicode1_mod_value.owner @@ -0,0 +1 @@ +{"options.unicode": "user"} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.prop b/test/data/unicode1_mod_value.prop new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_mod_value.prop @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.prop2 b/test/data/unicode1_mod_value.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_mod_value.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_multi.info b/test/data/unicode1_multi.info new file mode 100644 index 0000000..916af2b --- /dev/null +++ b/test/data/unicode1_multi.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi.json b/test/data/unicode1_multi.json index dc8b0b5..6f13695 100644 --- a/test/data/unicode1_multi.json +++ b/test/data/unicode1_multi.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "String 1", - "type": "string", - "isMulti": true - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "required": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi.owner b/test/data/unicode1_multi.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1_multi.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1_multi.prop b/test/data/unicode1_multi.prop new file mode 100644 index 0000000..42d6ae9 --- /dev/null +++ b/test/data/unicode1_multi.prop @@ -0,0 +1 @@ +{"options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/unicode1_multi.prop2 b/test/data/unicode1_multi.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_multi.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.info b/test/data/unicode1_multi_hidden.info new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode1_multi_hidden.info @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.json b/test/data/unicode1_multi_hidden.json index d42395e..e871ed4 100644 --- a/test/data/unicode1_multi_hidden.json +++ b/test/data/unicode1_multi_hidden.json @@ -1,35 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "type": "string", - "isMulti": true, - "title": "Unicode 1" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "display": false, - "required": true, - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.owner b/test/data/unicode1_multi_hidden.owner new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode1_multi_hidden.owner @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.prop b/test/data/unicode1_multi_hidden.prop new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode1_multi_hidden.prop @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.prop2 b/test/data/unicode1_multi_hidden.prop2 new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode1_multi_hidden.prop2 @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.info b/test/data/unicode1_multi_mandatory.info new file mode 100644 index 0000000..60562d8 --- /dev/null +++ b/test/data/unicode1_multi_mandatory.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Unicode 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.json b/test/data/unicode1_multi_mandatory.json index 595efd0..ca6a104 100644 --- a/test/data/unicode1_multi_mandatory.json +++ b/test/data/unicode1_multi_mandatory.json @@ -1,34 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Unicode 1", - "type": "string", - "isMulti": true - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "required": true, - "needs_len": true - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "needs_len": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.owner b/test/data/unicode1_multi_mandatory.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1_multi_mandatory.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.prop b/test/data/unicode1_multi_mandatory.prop new file mode 100644 index 0000000..cb72e5d --- /dev/null +++ b/test/data/unicode1_multi_mandatory.prop @@ -0,0 +1 @@ +{"options.unicode": ["empty", "mandatory"]} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.prop2 b/test/data/unicode1_multi_mandatory.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_multi_mandatory.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.info b/test/data/unicode1_multi_mod_value.info new file mode 100644 index 0000000..916af2b --- /dev/null +++ b/test/data/unicode1_multi_mod_value.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.json b/test/data/unicode1_multi_mod_value.json index 7088763..94f9485 100644 --- a/test/data/unicode1_multi_mod_value.json +++ b/test/data/unicode1_multi_mod_value.json @@ -1,44 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "String 1", - "type": "string", - "value": [ - "a", - "b" - ], - "isMulti": true - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "required": true, - "value": [ - "c", - "d", - "e" - ], - "owner": "user" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "value": ["c", "d", "e"], "owner": "user"}], "form": [{"key": "options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.owner b/test/data/unicode1_multi_mod_value.owner new file mode 100644 index 0000000..0717f11 --- /dev/null +++ b/test/data/unicode1_multi_mod_value.owner @@ -0,0 +1 @@ +{"options.unicode": "user"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.prop b/test/data/unicode1_multi_mod_value.prop new file mode 100644 index 0000000..42d6ae9 --- /dev/null +++ b/test/data/unicode1_multi_mod_value.prop @@ -0,0 +1 @@ +{"options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.prop2 b/test/data/unicode1_multi_mod_value.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_multi_mod_value.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.info b/test/data/unicode1_multi_not_equal_collapse.info new file mode 100644 index 0000000..bbaf8b4 --- /dev/null +++ b/test/data/unicode1_multi_not_equal_collapse.info @@ -0,0 +1 @@ +{"descr1.unicode1": {"doc": "Unicode 1, not equal to 'a'", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "descr1.unicode1_multi": {"doc": "Multi unicode 1, not equal to 'a' or 'b'", "name": "unicode1_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "descr2.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "descr2.unicode2_multi": {"doc": "Multi unicode 2", "name": "unicode2_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "descr3.unicode3": {"doc": "Unicode 3", "name": "unicode3", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "descr3.unicode3_multi": {"doc": "Multi unicode 3", "name": "unicode3_multi", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.json b/test/data/unicode1_multi_not_equal_collapse.json index 292995a..6ca6b75 100644 --- a/test/data/unicode1_multi_not_equal_collapse.json +++ b/test/data/unicode1_multi_not_equal_collapse.json @@ -1,155 +1 @@ -{ - "schema": { - "descr1": { - "name": "descr1", - "properties": { - "descr1.unicode1": { - "name": "descr1.unicode1", - "type": "string", - "title": "Unicode 1, not equal to 'a'" - }, - "descr1.unicode1_multi": { - "name": "descr1.unicode1_multi", - "type": "string", - "isMulti": true, - "title": "Multi unicode 1, not equal to 'a' or 'b'" - } - }, - "type": "object", - "title": "Common configuration 1" - }, - "descr2": { - "name": "descr2", - "properties": { - "descr2.unicode2": { - "name": "descr2.unicode2", - "type": "string", - "value": "a", - "title": "Unicode 2" - }, - "descr2.unicode2_multi": { - "name": "descr2.unicode2_multi", - "type": "string", - "value": [ - "a", - "b" - ], - "isMulti": true, - "title": "Multi unicode 2" - } - }, - "type": "object", - "title": "Common configuration 2" - }, - "descr3": { - "name": "descr3", - "properties": { - "descr3.unicode3": { - "name": "descr3.unicode3", - "type": "string", - "title": "Unicode 3" - }, - "descr3.unicode3_multi": { - "name": "descr3.unicode3_multi", - "type": "string", - "isMulti": true, - "title": "Multi unicode 3" - } - }, - "type": "object", - "title": "Common configuration 3" - } - }, - "model": [ - { - "key": "descr1.unicode1_multi", - "required": true - }, - { - "key": "descr2.unicode2", - "value": "a", - "owner": "default" - }, - { - "key": "descr2.unicode2_multi", - "required": true, - "value": [ - "a", - "b" - ], - "owner": "default" - }, - { - "key": "descr3.unicode3_multi", - "required": true - } - ], - "form": [ - { - "key": "descr1.unicode1", - "type": "input", - "not_equal": {"options": [ - "descr2.unicode2", - "descr3.unicode3" - ]} - }, - { - "key": "descr1.unicode1_multi", - "type": "input", - "not_equal": {"options": [ - "descr2.unicode2_multi", - "descr3.unicode3_multi" - ]} - }, - { - "key": "descr2.unicode2", - "clearable": true, - "type": "input", - "not_equal": {"options": [ - "descr1.unicode1", - "descr3.unicode3" - ]} - }, - { - "key": "descr2.unicode2_multi", - "clearable": true, - "type": "input", - "not_equal": {"options": [ - "descr1.unicode1_multi", - "descr3.unicode3_multi" - ]} - }, - { - "key": "descr3.unicode3", - "type": "input", - "not_equal": {"options": [ - "descr1.unicode1", - "descr2.unicode2" - ]} - }, - { - "key": "descr3.unicode3_multi", - "type": "input", - "not_equal": {"options": [ - "descr1.unicode1_multi", - "descr2.unicode2_multi" - ]} - }, - { - "key": "descr1", - "collapse": true - }, - { - "key": "descr2", - "collapse": true - }, - { - "key": "descr3", - "collapse": true - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"descr1": {"name": "descr1", "properties": {"descr1.unicode1": {"name": "descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"name": "descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"name": "descr2", "properties": {"descr2.unicode2": {"name": "descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"name": "descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"name": "descr3", "properties": {"descr3.unicode3": {"name": "descr3.unicode3", "type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"name": "descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": [{"key": "descr1.unicode1_multi", "required": true}, {"key": "descr2.unicode2", "value": "a", "owner": "default"}, {"key": "descr2.unicode2_multi", "required": true, "value": ["a", "b"], "owner": "default"}, {"key": "descr3.unicode3_multi", "required": true}], "form": [{"key": "descr1.unicode1", "type": "input", "not_equal": {"options": ["descr2.unicode2", "descr3.unicode3"]}}, {"key": "descr1.unicode1_multi", "type": "input", "not_equal": {"options": ["descr2.unicode2_multi", "descr3.unicode3_multi"]}}, {"key": "descr2.unicode2", "clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1", "descr3.unicode3"]}}, {"key": "descr2.unicode2_multi", "clearable": true, "type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr3.unicode3_multi"]}}, {"key": "descr3.unicode3", "type": "input", "not_equal": {"options": ["descr1.unicode1", "descr2.unicode2"]}}, {"key": "descr3.unicode3_multi", "type": "input", "not_equal": {"options": ["descr1.unicode1_multi", "descr2.unicode2_multi"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.owner b/test/data/unicode1_multi_not_equal_collapse.owner new file mode 100644 index 0000000..0e8e2c2 --- /dev/null +++ b/test/data/unicode1_multi_not_equal_collapse.owner @@ -0,0 +1 @@ +{"descr1.unicode1": "default", "descr1.unicode1_multi": "default", "descr2.unicode2": "default", "descr2.unicode2_multi": "default", "descr3.unicode3": "default", "descr3.unicode3_multi": "default"} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.prop b/test/data/unicode1_multi_not_equal_collapse.prop new file mode 100644 index 0000000..40bf80a --- /dev/null +++ b/test/data/unicode1_multi_not_equal_collapse.prop @@ -0,0 +1 @@ +{"descr1.unicode1": [], "descr1.unicode1_multi": ["empty"], "descr2.unicode2": [], "descr2.unicode2_multi": ["empty"], "descr3.unicode3": [], "descr3.unicode3_multi": ["empty"]} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.prop2 b/test/data/unicode1_multi_not_equal_collapse.prop2 new file mode 100644 index 0000000..64a828b --- /dev/null +++ b/test/data/unicode1_multi_not_equal_collapse.prop2 @@ -0,0 +1 @@ +{"descr1.unicode1": [], "descr1.unicode1_multi": [], "descr2.unicode2": [], "descr2.unicode2_multi": [], "descr3.unicode3": [], "descr3.unicode3_multi": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.info b/test/data/unicode1_multi_requires.info new file mode 100644 index 0000000..5bda672 --- /dev/null +++ b/test/data/unicode1_multi_requires.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Value 'test' must show Unicode 2", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.json b/test/data/unicode1_multi_requires.json index 7d727b3..a7a9ee8 100644 --- a/test/data/unicode1_multi_requires.json +++ b/test/data/unicode1_multi_requires.json @@ -1,57 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "type": "string", - "title": "Value 'test' must show Unicode 2" - }, - "options.unicode2": { - "name": "options.unicode2", - "type": "string", - "isMulti": true, - "title": "Unicode 2" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode2", - "required": true, - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode1", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode2" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode2" - ] - } - } - } - }, - { - "key": "options.unicode2", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode2", "required": true, "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.owner b/test/data/unicode1_multi_requires.owner new file mode 100644 index 0000000..dbbcf9d --- /dev/null +++ b/test/data/unicode1_multi_requires.owner @@ -0,0 +1 @@ +{"options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.prop b/test/data/unicode1_multi_requires.prop new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_multi_requires.prop @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_requires.prop2 b/test/data/unicode1_multi_requires.prop2 new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_multi_requires.prop2 @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.info b/test/data/unicode1_multi_value.info new file mode 100644 index 0000000..916af2b --- /dev/null +++ b/test/data/unicode1_multi_value.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "String 1", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.json b/test/data/unicode1_multi_value.json index 4aed1f5..3ed7314 100644 --- a/test/data/unicode1_multi_value.json +++ b/test/data/unicode1_multi_value.json @@ -1,43 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "String 1", - "type": "string", - "value": [ - "a", - "b" - ], - "isMulti": true - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "required": true, - "value": [ - "a", - "b" - ], - "owner": "default" - } - ], - "form": [ - { - "clearable": true, - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "required": true, "value": ["a", "b"], "owner": "default"}], "form": [{"key": "options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.owner b/test/data/unicode1_multi_value.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode1_multi_value.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.prop b/test/data/unicode1_multi_value.prop new file mode 100644 index 0000000..42d6ae9 --- /dev/null +++ b/test/data/unicode1_multi_value.prop @@ -0,0 +1 @@ +{"options.unicode": ["empty"]} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.prop2 b/test/data/unicode1_multi_value.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode1_multi_value.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.info b/test/data/unicode1_not_equal.info new file mode 100644 index 0000000..a7afc95 --- /dev/null +++ b/test/data/unicode1_not_equal.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.json b/test/data/unicode1_not_equal.json index bc44e99..b94ac87 100644 --- a/test/data/unicode1_not_equal.json +++ b/test/data/unicode1_not_equal.json @@ -1,42 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "title": "Unicode 1", - "type": "string" - }, - "options.unicode2": { - "name": "options.unicode2", - "title": "Unicode 2", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "not_equal": {"options": [ - "options.unicode2" - ]}, - "key": "options.unicode1" - }, - { - "type": "input", - "not_equal": {"options": [ - "options.unicode1" - ]}, - "key": "options.unicode2" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input", "not_equal": {"options": ["options.unicode2"]}}, {"key": "options.unicode2", "type": "input", "not_equal": {"options": ["options.unicode1"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.owner b/test/data/unicode1_not_equal.owner new file mode 100644 index 0000000..c23d73f --- /dev/null +++ b/test/data/unicode1_not_equal.owner @@ -0,0 +1 @@ +{"options.unicode1": "default", "options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.prop b/test/data/unicode1_not_equal.prop new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode1_not_equal.prop @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.prop2 b/test/data/unicode1_not_equal.prop2 new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode1_not_equal.prop2 @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.info b/test/data/unicode1_optiondescription_requires.info new file mode 100644 index 0000000..73db638 --- /dev/null +++ b/test/data/unicode1_optiondescription_requires.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Value 'test' must show OptionDescription", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.json b/test/data/unicode1_optiondescription_requires.json index 45c7ef7..ff3fac0 100644 --- a/test/data/unicode1_optiondescription_requires.json +++ b/test/data/unicode1_optiondescription_requires.json @@ -1,74 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "type": "string", - "title": "Value 'test' must show OptionDescription" - } - }, - "type": "object", - "title": "Common configuration" - }, - "unicode1": { - "name": "unicode1", - "properties": { - "unicode1.unicode2": { - "name": "unicode1.unicode2", - "type": "string", - "title": "Unicode 2" - }, - "unicode1.unicode3": { - "name": "unicode1.unicode3", - "type": "string", - "title": "Unicode 3" - } - }, - "type": "object", - "title": "OptionDescription with 2 options" - } - }, - "model": [ - { - "key": "unicode1", - "properties": [ - "hidden" - ], - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode1", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "unicode1" - ] - }, - "expected": { - "test": { - "show": [ - "unicode1" - ] - } - } - } - }, - { - "key": "unicode1.unicode2", - "type": "input" - }, - { - "key": "unicode1.unicode3", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1": {"name": "unicode1", "properties": {"unicode1.unicode2": {"name": "unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1.unicode3": {"name": "unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": [{"key": "unicode1", "properties": ["hidden"], "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1"]}, "expected": {"test": {"show": ["unicode1"]}}}}, {"key": "unicode1.unicode2", "type": "input"}, {"key": "unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.owner b/test/data/unicode1_optiondescription_requires.owner new file mode 100644 index 0000000..dbbcf9d --- /dev/null +++ b/test/data/unicode1_optiondescription_requires.owner @@ -0,0 +1 @@ +{"options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.prop b/test/data/unicode1_optiondescription_requires.prop new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_optiondescription_requires.prop @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.prop2 b/test/data/unicode1_optiondescription_requires.prop2 new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_optiondescription_requires.prop2 @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_requires.info b/test/data/unicode1_requires.info new file mode 100644 index 0000000..5bda672 --- /dev/null +++ b/test/data/unicode1_requires.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Value 'test' must show Unicode 2", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_requires.json b/test/data/unicode1_requires.json index 8b0afe5..d070d49 100644 --- a/test/data/unicode1_requires.json +++ b/test/data/unicode1_requires.json @@ -1,55 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "type": "string", - "title": "Value 'test' must show Unicode 2" - }, - "options.unicode2": { - "name": "options.unicode2", - "type": "string", - "title": "Unicode 2" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode2", - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode1", - "type": "input", - "dependencies": { - "default": { - "hide": [ - "options.unicode2" - ] - }, - "expected": { - "test": { - "show": [ - "options.unicode2" - ] - } - } - } - }, - { - "key": "options.unicode2", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode2", "hidden": true}], "form": [{"key": "options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_requires.owner b/test/data/unicode1_requires.owner new file mode 100644 index 0000000..dbbcf9d --- /dev/null +++ b/test/data/unicode1_requires.owner @@ -0,0 +1 @@ +{"options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/unicode1_requires.prop b/test/data/unicode1_requires.prop new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_requires.prop @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_requires.prop2 b/test/data/unicode1_requires.prop2 new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_requires.prop2 @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.info b/test/data/unicode1_simple_callback.info new file mode 100644 index 0000000..3d6ec45 --- /dev/null +++ b/test/data/unicode1_simple_callback.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.json b/test/data/unicode1_simple_callback.json index 9282567..2b31f86 100644 --- a/test/data/unicode1_simple_callback.json +++ b/test/data/unicode1_simple_callback.json @@ -1,35 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "type": "string", - "value": "word", - "title": "Unicode 1" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1", - "value": "word", - "owner": "default" - } - ], - "form": [ - { - "key": "options.unicode1", - "clearable": true, - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "value": "word", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "value": "word", "owner": "default"}], "form": [{"key": "options.unicode1", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.owner b/test/data/unicode1_simple_callback.owner new file mode 100644 index 0000000..dbbcf9d --- /dev/null +++ b/test/data/unicode1_simple_callback.owner @@ -0,0 +1 @@ +{"options.unicode1": "default"} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.prop b/test/data/unicode1_simple_callback.prop new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_simple_callback.prop @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.prop2 b/test/data/unicode1_simple_callback.prop2 new file mode 100644 index 0000000..69c1d4b --- /dev/null +++ b/test/data/unicode1_simple_callback.prop2 @@ -0,0 +1 @@ +{"options.unicode1": []} \ No newline at end of file diff --git a/test/data/unicode2.info b/test/data/unicode2.info new file mode 100644 index 0000000..a7afc95 --- /dev/null +++ b/test/data/unicode2.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode2.json b/test/data/unicode2.json index d2b1fad..a39c6b7 100644 --- a/test/data/unicode2.json +++ b/test/data/unicode2.json @@ -1,36 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "title": "Unicode 1", - "type": "string" - }, - "options.unicode2": { - "name": "options.unicode2", - "title": "Unicode 2", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "key": "options.unicode1" - }, - { - "type": "input", - "key": "options.unicode2" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input"}, {"key": "options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode2.owner b/test/data/unicode2.owner new file mode 100644 index 0000000..c23d73f --- /dev/null +++ b/test/data/unicode2.owner @@ -0,0 +1 @@ +{"options.unicode1": "default", "options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/unicode2.prop b/test/data/unicode2.prop new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode2.prop @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode2.prop2 b/test/data/unicode2.prop2 new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode2.prop2 @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode2_copy.info b/test/data/unicode2_copy.info new file mode 100644 index 0000000..e24d522 --- /dev/null +++ b/test/data/unicode2_copy.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}, "options.unicode2": {"doc": "Unicode 2 (copy)", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode2_copy.json b/test/data/unicode2_copy.json index f6f7e34..d59cee6 100644 --- a/test/data/unicode2_copy.json +++ b/test/data/unicode2_copy.json @@ -1,40 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "type": "string", - "title": "Unicode 1" - }, - "options.unicode2": { - "name": "options.unicode2", - "type": "string", - "title": "Unicode 2 (copy)" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "key": "options.unicode1", - "type": "input", - "copy": [ - "options.unicode2" - ] - }, - { - "key": "options.unicode2", - "type": "input", - "clearable": true - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.unicode1", "type": "input", "copy": ["options.unicode2"]}, {"key": "options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode2_copy.owner b/test/data/unicode2_copy.owner new file mode 100644 index 0000000..c23d73f --- /dev/null +++ b/test/data/unicode2_copy.owner @@ -0,0 +1 @@ +{"options.unicode1": "default", "options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/unicode2_copy.prop b/test/data/unicode2_copy.prop new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode2_copy.prop @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode2_copy.prop2 b/test/data/unicode2_copy.prop2 new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode2_copy.prop2 @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.info b/test/data/unicode2_multi_copy.info new file mode 100644 index 0000000..c6f41c3 --- /dev/null +++ b/test/data/unicode2_multi_copy.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}, "options.unicode2": {"doc": "Unicode 2", "name": "unicode2", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": true, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.json b/test/data/unicode2_multi_copy.json index 760fe6b..f90d134 100644 --- a/test/data/unicode2_multi_copy.json +++ b/test/data/unicode2_multi_copy.json @@ -1,51 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode1": { - "name": "options.unicode1", - "title": "Unicode 1", - "type": "string", - "isMulti": true - }, - "options.unicode2": { - "name": "options.unicode2", - "title": "Unicode 2", - "type": "string", - "isMulti": true - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode1", - "required": true - }, - { - "key": "options.unicode2", - "required": true - } - ], - "form": [ - { - "type": "input", - "copy": [ - "options.unicode2" - ], - "key": "options.unicode1" - }, - { - "clearable": true, - "type": "input", - "key": "options.unicode2" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode1", "required": true}, {"key": "options.unicode2", "required": true}], "form": [{"key": "options.unicode1", "type": "input", "copy": ["options.unicode2"]}, {"key": "options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.owner b/test/data/unicode2_multi_copy.owner new file mode 100644 index 0000000..c23d73f --- /dev/null +++ b/test/data/unicode2_multi_copy.owner @@ -0,0 +1 @@ +{"options.unicode1": "default", "options.unicode2": "default"} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.prop b/test/data/unicode2_multi_copy.prop new file mode 100644 index 0000000..7c37a7c --- /dev/null +++ b/test/data/unicode2_multi_copy.prop @@ -0,0 +1 @@ +{"options.unicode1": ["empty"], "options.unicode2": ["empty"]} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.prop2 b/test/data/unicode2_multi_copy.prop2 new file mode 100644 index 0000000..fdff5a0 --- /dev/null +++ b/test/data/unicode2_multi_copy.prop2 @@ -0,0 +1 @@ +{"options.unicode1": [], "options.unicode2": []} \ No newline at end of file diff --git a/test/data/unicode_hidden.info b/test/data/unicode_hidden.info new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode_hidden.info @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode_hidden.json b/test/data/unicode_hidden.json index 52d852c..5c65aed 100644 --- a/test/data/unicode_hidden.json +++ b/test/data/unicode_hidden.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "type": "string", - "title": "Unicode 1" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "display": false, - "hidden": true - } - ], - "form": [ - { - "key": "options.unicode", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "display": false, "hidden": true}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode_hidden.owner b/test/data/unicode_hidden.owner new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode_hidden.owner @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode_hidden.prop b/test/data/unicode_hidden.prop new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode_hidden.prop @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode_hidden.prop2 b/test/data/unicode_hidden.prop2 new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/unicode_hidden.prop2 @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/unicode_property.info b/test/data/unicode_property.info new file mode 100644 index 0000000..963752b --- /dev/null +++ b/test/data/unicode_property.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Expert unicode", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode_property.json b/test/data/unicode_property.json index 0cb68f6..d632116 100644 --- a/test/data/unicode_property.json +++ b/test/data/unicode_property.json @@ -1,34 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Expert unicode", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.unicode", - "properties": [ - "expert" - ] - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.unicode", "properties": ["expert"]}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode_property.owner b/test/data/unicode_property.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode_property.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode_property.prop b/test/data/unicode_property.prop new file mode 100644 index 0000000..f85106e --- /dev/null +++ b/test/data/unicode_property.prop @@ -0,0 +1 @@ +{"options.unicode": ["expert"]} \ No newline at end of file diff --git a/test/data/unicode_property.prop2 b/test/data/unicode_property.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode_property.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.info b/test/data/unicode_property_optiondescription.info new file mode 100644 index 0000000..963752b --- /dev/null +++ b/test/data/unicode_property_optiondescription.info @@ -0,0 +1 @@ +{"options.unicode": {"doc": "Expert unicode", "name": "unicode", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "str"}} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.json b/test/data/unicode_property_optiondescription.json index 77d1947..6bf0da0 100644 --- a/test/data/unicode_property_optiondescription.json +++ b/test/data/unicode_property_optiondescription.json @@ -1,34 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.unicode": { - "name": "options.unicode", - "title": "Expert unicode", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options", - "properties": [ - "expert" - ] - } - ], - "form": [ - { - "type": "input", - "key": "options.unicode" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options", "properties": ["expert"]}], "form": [{"key": "options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.owner b/test/data/unicode_property_optiondescription.owner new file mode 100644 index 0000000..29b6bcb --- /dev/null +++ b/test/data/unicode_property_optiondescription.owner @@ -0,0 +1 @@ +{"options.unicode": "default"} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.prop b/test/data/unicode_property_optiondescription.prop new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode_property_optiondescription.prop @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.prop2 b/test/data/unicode_property_optiondescription.prop2 new file mode 100644 index 0000000..c99ce8a --- /dev/null +++ b/test/data/unicode_property_optiondescription.prop2 @@ -0,0 +1 @@ +{"options.unicode": []} \ No newline at end of file diff --git a/test/data/username1.info b/test/data/username1.info new file mode 100644 index 0000000..dd4ada8 --- /dev/null +++ b/test/data/username1.info @@ -0,0 +1 @@ +{"options.username": {"doc": "Username description", "name": "username", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "username"}} \ No newline at end of file diff --git a/test/data/username1.json b/test/data/username1.json index 93a6b9d..2b23515 100644 --- a/test/data/username1.json +++ b/test/data/username1.json @@ -1,28 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.username": { - "name": "options.username", - "title": "Username description", - "type": "string" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [], - "form": [ - { - "type": "input", - "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", - "key": "options.username" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "string", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/username1.owner b/test/data/username1.owner new file mode 100644 index 0000000..654e2aa --- /dev/null +++ b/test/data/username1.owner @@ -0,0 +1 @@ +{"options.username": "default"} \ No newline at end of file diff --git a/test/data/username1.prop b/test/data/username1.prop new file mode 100644 index 0000000..0f1a375 --- /dev/null +++ b/test/data/username1.prop @@ -0,0 +1 @@ +{"options.username": []} \ No newline at end of file diff --git a/test/data/username1.prop2 b/test/data/username1.prop2 new file mode 100644 index 0000000..0f1a375 --- /dev/null +++ b/test/data/username1.prop2 @@ -0,0 +1 @@ +{"options.username": []} \ No newline at end of file diff --git a/test/data/username1_frozen.info b/test/data/username1_frozen.info new file mode 100644 index 0000000..850616e --- /dev/null +++ b/test/data/username1_frozen.info @@ -0,0 +1 @@ +{"options.username": {"doc": "Username description frozen", "name": "username", "isoptiondescription": false, "ismasterslaves": false, "issymlinkoption": false, "ismulti": false, "type": "username"}} \ No newline at end of file diff --git a/test/data/username1_frozen.json b/test/data/username1_frozen.json index d0ace35..d6c0d91 100644 --- a/test/data/username1_frozen.json +++ b/test/data/username1_frozen.json @@ -1,33 +1 @@ -{ - "schema": { - "options": { - "name": "options", - "properties": { - "options.username": { - "name": "options.username", - "type": "string", - "title": "Username description frozen" - } - }, - "type": "object", - "title": "Common configuration" - } - }, - "model": [ - { - "key": "options.username", - "readOnly": true - } - ], - "form": [ - { - "key": "options.username", - "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", - "type": "input" - }, - { - "title": "Configurer", - "type": "submit" - } - ] -} \ No newline at end of file +{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "string", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "options.username", "readOnly": true}], "form": [{"key": "options.username", "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/username1_frozen.owner b/test/data/username1_frozen.owner new file mode 100644 index 0000000..654e2aa --- /dev/null +++ b/test/data/username1_frozen.owner @@ -0,0 +1 @@ +{"options.username": "default"} \ No newline at end of file diff --git a/test/data/username1_frozen.prop b/test/data/username1_frozen.prop new file mode 100644 index 0000000..c5cfac9 --- /dev/null +++ b/test/data/username1_frozen.prop @@ -0,0 +1 @@ +{"options.username": ["frozen"]} \ No newline at end of file diff --git a/test/data/username1_frozen.prop2 b/test/data/username1_frozen.prop2 new file mode 100644 index 0000000..0f1a375 --- /dev/null +++ b/test/data/username1_frozen.prop2 @@ -0,0 +1 @@ +{"options.username": []} \ No newline at end of file diff --git a/test/test_json.py b/test/test_json.py index f1483c5..ef7127e 100644 --- a/test/test_json.py +++ b/test/test_json.py @@ -20,7 +20,7 @@ def list_data(): yield join(datadir, filename) -def test_jsons(): +def test_dict(): debug = False # debug = True for filename in list_data(): @@ -34,3 +34,75 @@ def test_jsons(): config = Config(json) with open(filename[:-4] + 'dict', 'r') as fh: assert loads(fh.read()) == config.value.dict() + + +def test_get(): + for filename in list_data(): + if 'master' in filename: + continue + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'dict', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + assert value == config.option(key).value.get() + + +def test_owner(): + for filename in list_data(): + if 'master' in filename: + continue + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'owner', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + assert value == config.option(key).owner.get() + + +def test_prop(): + for filename in list_data(): + if 'master' in filename: + continue + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'prop', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + props = set(config.option(key).property.get()) + if 'clearable' in props: + props.remove('clearable') + assert set(value) == props, 'error in {}'.format(filename) + + +def test_prop2(): + for filename in list_data(): + if 'master' in filename: + continue + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'prop2', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + props = set(config.option(key).property.get(True)) + assert set(value) == props, 'error in {}'.format(filename) + + +def test_info(): + for filename in list_data(): + if 'master' in filename: + continue + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'info', 'r') as fh: + dico = loads(fh.read()) + for key, values in dico.items(): + for info, value in values.items(): + if info == 'type' and value in ['filename', 'ip', 'email', 'username']: + continue + assert getattr(config.option(key).option, info)() == value, 'error for {} in {}'.format(info, filename) diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index b286848..c42ca6c 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -93,18 +93,8 @@ class TiramisuOptionOption: raise Exception('unsupported type {}'.format(self.schema['type'])) def properties(self) -> List[str]: - props = [] model = self.model.get(self._path, {}) - if model.get('required'): - # FIXME 'empty', 'needs_len' - props.append('mandatory') - if model.get('readOnly'): - props.append('frozen') - if self.config.get_hidden(self._path): - props.append('hidden') - if self.form.get(self._path, {}).get('clearable'): - props.append('clearable') - return props + return self.config.get_properties(self.model, self._path) def requires(self) -> None: # FIXME @@ -121,25 +111,13 @@ class TiramisuOptionProperty: self.model = model def get(self, only_raises=False): - # FIXME if slave: - #if not isslave and childapi.option.ismulti(): - # if 'empty' in props: - # obj['required'] = True - # props.remove('empty') - # if 'mandatory' in props: - # obj['needs_len'] = True - # props.remove('mandatory') if not only_raises: - properties = self.model.get('properties', [])[:] - if self.model.get('required', False): - properties.append('mandatory') - if self.model.get('readOnly', False): - properties.append('frozen') + props = self.config.get_properties(self.model, self.path, only_raises) else: - properties = [] + props = [] if self.config.get_hidden(self.path): - properties.append('hidden') - return properties + props.append('hidden') + return props class _Value: @@ -216,6 +194,9 @@ class TiramisuOptionOwner: def isdefault(self) -> Any: return self.config.get_owner(self.path) == 'default' + def get(self) -> str: + return self.config.get_owner(self.path) + class TiramisuOptionValue(_Value): # config.option(path).value @@ -572,6 +553,26 @@ class Config: remote, None) + def get_properties(self, + model, + path, + only_raises=True): + props = model.get('properties', [])[:] + if model.get('required'): + if self.get_schema(path).get('isMulti', False): + props.append('empty') + else: + props.append('mandatory') + if model.get('needs_len'): + props.append('mandatory') + if model.get('readOnly'): + props.append('frozen') + if only_raises and self.get_hidden(path): + props.append('hidden') + if self.form.get(path, {}).get('clearable'): + props.append('clearable') + return props + def get_schema(self, path): root_path = self.root