diff --git a/test/data/subconfig_boolean1.dict b/test/data/subconfig_boolean1.dict new file mode 100644 index 0000000..f46055f --- /dev/null +++ b/test/data/subconfig_boolean1.dict @@ -0,0 +1 @@ +{"boolean1.options.boolean": null} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.json b/test/data/subconfig_boolean1.json new file mode 100644 index 0000000..88c7764 --- /dev/null +++ b/test/data/subconfig_boolean1.json @@ -0,0 +1 @@ +{"schema": {"boolean1.options": {"name": "boolean1.options", "properties": {"boolean1.options.boolean": {"name": "boolean1.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/subconfig_boolean1_frozen.dict b/test/data/subconfig_boolean1_frozen.dict new file mode 100644 index 0000000..b42f543 --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.dict @@ -0,0 +1 @@ +{"boolean1_frozen.options.boolean": null} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.json b/test/data/subconfig_boolean1_frozen.json new file mode 100644 index 0000000..98f4327 --- /dev/null +++ b/test/data/subconfig_boolean1_frozen.json @@ -0,0 +1 @@ +{"schema": {"boolean1_frozen.options": {"name": "boolean1_frozen.options", "properties": {"boolean1_frozen.options.boolean": {"name": "boolean1_frozen.options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "boolean1_frozen.options.boolean", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1.dict b/test/data/subconfig_choice1.dict new file mode 100644 index 0000000..58e2385 --- /dev/null +++ b/test/data/subconfig_choice1.dict @@ -0,0 +1 @@ +{"choice1.options.choice": null} \ No newline at end of file diff --git a/test/data/subconfig_choice1.json b/test/data/subconfig_choice1.json new file mode 100644 index 0000000..c20fd69 --- /dev/null +++ b/test/data/subconfig_choice1.json @@ -0,0 +1 @@ +{"schema": {"choice1.options": {"name": "choice1.options", "properties": {"choice1.options.choice": {"name": "choice1.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "choice1.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.dict b/test/data/subconfig_choice1_frozen.dict new file mode 100644 index 0000000..faf1c15 --- /dev/null +++ b/test/data/subconfig_choice1_frozen.dict @@ -0,0 +1 @@ +{"choice1_frozen.options.choice": null} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.json b/test/data/subconfig_choice1_frozen.json new file mode 100644 index 0000000..f9045d4 --- /dev/null +++ b/test/data/subconfig_choice1_frozen.json @@ -0,0 +1 @@ +{"schema": {"choice1_frozen.options": {"name": "choice1_frozen.options", "properties": {"choice1_frozen.options.choice": {"name": "choice1_frozen.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_frozen.options.choice", "readOnly": true}], "form": [{"key": "choice1_frozen.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves.dict b/test/data/subconfig_choice1_master_slaves.dict new file mode 100644 index 0000000..96ce623 --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves.dict @@ -0,0 +1 @@ +{"choice1_master_slaves.options.choice1.choice1": [], "choice1_master_slaves.options.choice1.choice2": [], "choice1_master_slaves.options.choice1.choice3": [], "choice1_master_slaves.options.choice1.choice4": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves.json b/test/data/subconfig_choice1_master_slaves.json new file mode 100644 index 0000000..13e39a1 --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves.json @@ -0,0 +1 @@ +{"schema": {"choice1_master_slaves.options": {"name": "choice1_master_slaves.options", "properties": {"choice1_master_slaves.options.choice1": {"name": "choice1_master_slaves.options.choice1", "properties": {"choice1_master_slaves.options.choice1.choice1": {"name": "choice1_master_slaves.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description master"}, "choice1_master_slaves.options.choice1.choice2": {"name": "choice1_master_slaves.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description slave 1"}, "choice1_master_slaves.options.choice1.choice3": {"name": "choice1_master_slaves.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description slave 2"}, "choice1_master_slaves.options.choice1.choice4": {"name": "choice1_master_slaves.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": "choice1_master_slaves.options.choice1.choice1", "required": true}], "form": [{"key": "choice1_master_slaves.options.choice1.choice1", "type": "choice"}, {"key": "choice1_master_slaves.options.choice1.choice2", "type": "choice"}, {"key": "choice1_master_slaves.options.choice1.choice3", "type": "choice"}, {"key": "choice1_master_slaves.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves_hidden.dict b/test/data/subconfig_choice1_master_slaves_hidden.dict new file mode 100644 index 0000000..56c081a --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves_hidden.dict @@ -0,0 +1 @@ +{"choice1_master_slaves_hidden.options.choice1.choice1": [], "choice1_master_slaves_hidden.options.choice1.choice2": [], "choice1_master_slaves_hidden.options.choice1.choice4": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves_hidden.json b/test/data/subconfig_choice1_master_slaves_hidden.json new file mode 100644 index 0000000..6ebd5a1 --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves_hidden.json @@ -0,0 +1 @@ +{"schema": {"choice1_master_slaves_hidden.options": {"name": "choice1_master_slaves_hidden.options", "properties": {"choice1_master_slaves_hidden.options.choice1": {"name": "choice1_master_slaves_hidden.options.choice1", "properties": {"choice1_master_slaves_hidden.options.choice1.choice1": {"name": "choice1_master_slaves_hidden.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description master"}, "choice1_master_slaves_hidden.options.choice1.choice2": {"name": "choice1_master_slaves_hidden.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description slave 1"}, "choice1_master_slaves_hidden.options.choice1.choice3": {"name": "choice1_master_slaves_hidden.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description slave 2 hidden"}, "choice1_master_slaves_hidden.options.choice1.choice4": {"name": "choice1_master_slaves_hidden.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": "choice1_master_slaves_hidden.options.choice1.choice1", "required": true}, {"key": "choice1_master_slaves_hidden.options.choice1.choice3", "display": false, "hidden": true}], "form": [{"key": "choice1_master_slaves_hidden.options.choice1.choice1", "type": "choice"}, {"key": "choice1_master_slaves_hidden.options.choice1.choice2", "type": "choice"}, {"key": "choice1_master_slaves_hidden.options.choice1.choice3", "type": "choice"}, {"key": "choice1_master_slaves_hidden.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves_value.dict b/test/data/subconfig_choice1_master_slaves_value.dict new file mode 100644 index 0000000..66ea228 --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves_value.dict @@ -0,0 +1 @@ +{"choice1_master_slaves_value.options.choice1.choice1": ["choice 2"], "choice1_master_slaves_value.options.choice1.choice2": ["choice 4"], "choice1_master_slaves_value.options.choice1.choice3": [null], "choice1_master_slaves_value.options.choice1.choice4": [null]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_master_slaves_value.json b/test/data/subconfig_choice1_master_slaves_value.json new file mode 100644 index 0000000..c1d1c9a --- /dev/null +++ b/test/data/subconfig_choice1_master_slaves_value.json @@ -0,0 +1 @@ +{"schema": {"choice1_master_slaves_value.options": {"name": "choice1_master_slaves_value.options", "properties": {"choice1_master_slaves_value.options.choice1": {"name": "choice1_master_slaves_value.options.choice1", "properties": {"choice1_master_slaves_value.options.choice1.choice1": {"name": "choice1_master_slaves_value.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice master"}, "choice1_master_slaves_value.options.choice1.choice2": {"name": "choice1_master_slaves_value.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice slave 1"}, "choice1_master_slaves_value.options.choice1.choice3": {"name": "choice1_master_slaves_value.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice slave 2"}, "choice1_master_slaves_value.options.choice1.choice4": {"name": "choice1_master_slaves_value.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": "choice1_master_slaves_value.options.choice1.choice1", "required": true, "value": ["choice 2"], "owner": "user"}, {"key": "choice1_master_slaves_value.options.choice1.choice2", "index": 0, "value": "choice 4", "owner": "user"}], "form": [{"key": "choice1_master_slaves_value.options.choice1.choice1", "type": "choice"}, {"key": "choice1_master_slaves_value.options.choice1.choice2", "type": "choice"}, {"key": "choice1_master_slaves_value.options.choice1.choice3", "type": "choice"}, {"key": "choice1_master_slaves_value.options.choice1.choice4", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.dict b/test/data/subconfig_choice1_multi.dict new file mode 100644 index 0000000..6487267 --- /dev/null +++ b/test/data/subconfig_choice1_multi.dict @@ -0,0 +1 @@ +{"choice1_multi.options.choice": []} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.json b/test/data/subconfig_choice1_multi.json new file mode 100644 index 0000000..21e7589 --- /dev/null +++ b/test/data/subconfig_choice1_multi.json @@ -0,0 +1 @@ +{"schema": {"choice1_multi.options": {"name": "choice1_multi.options", "properties": {"choice1_multi.options.choice": {"name": "choice1_multi.options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_multi.options.choice", "required": true}], "form": [{"key": "choice1_multi.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.dict b/test/data/subconfig_choice1_rename.dict new file mode 100644 index 0000000..48008a2 --- /dev/null +++ b/test/data/subconfig_choice1_rename.dict @@ -0,0 +1 @@ +{"choice1_rename.options.choice": null} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.json b/test/data/subconfig_choice1_rename.json new file mode 100644 index 0000000..e4331cb --- /dev/null +++ b/test/data/subconfig_choice1_rename.json @@ -0,0 +1 @@ +{"schema": {"choice1_rename.options": {"name": "choice1_rename.options", "properties": {"choice1_rename.options.choice": {"name": "choice1_rename.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "choice1_rename.options.choice", "type": "choice"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.dict b/test/data/subconfig_choice1_requires.dict new file mode 100644 index 0000000..19f2661 --- /dev/null +++ b/test/data/subconfig_choice1_requires.dict @@ -0,0 +1 @@ +{"choice1_requires.options.choice": "hide"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.json b/test/data/subconfig_choice1_requires.json new file mode 100644 index 0000000..6b27c04 --- /dev/null +++ b/test/data/subconfig_choice1_requires.json @@ -0,0 +1 @@ +{"schema": {"choice1_requires.options": {"name": "choice1_requires.options", "properties": {"choice1_requires.options.choice": {"name": "choice1_requires.options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "choice1_requires.options.unicode2": {"name": "choice1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "choice1_requires.options.choice", "required": true, "value": "hide", "owner": "default"}, {"key": "choice1_requires.options.unicode2", "hidden": true}], "form": [{"key": "choice1_requires.options.choice", "clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"hide": {"hide": ["choice1_requires.options.unicode2"]}, "show": {"show": ["choice1_requires.options.unicode2"]}}}}, {"key": "choice1_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_date1.dict b/test/data/subconfig_date1.dict new file mode 100644 index 0000000..023bc71 --- /dev/null +++ b/test/data/subconfig_date1.dict @@ -0,0 +1 @@ +{"date1.options.date": null} \ No newline at end of file diff --git a/test/data/subconfig_date1.json b/test/data/subconfig_date1.json new file mode 100644 index 0000000..cc4a5f6 --- /dev/null +++ b/test/data/subconfig_date1.json @@ -0,0 +1 @@ +{"schema": {"date1.options": {"name": "date1.options", "properties": {"date1.options.date": {"name": "date1.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/subconfig_date1_frozen.dict b/test/data/subconfig_date1_frozen.dict new file mode 100644 index 0000000..dc930f3 --- /dev/null +++ b/test/data/subconfig_date1_frozen.dict @@ -0,0 +1 @@ +{"date1_frozen.options.date": null} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.json b/test/data/subconfig_date1_frozen.json new file mode 100644 index 0000000..f09d5ac --- /dev/null +++ b/test/data/subconfig_date1_frozen.json @@ -0,0 +1 @@ +{"schema": {"date1_frozen.options": {"name": "date1_frozen.options", "properties": {"date1_frozen.options.date": {"name": "date1_frozen.options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "date1_frozen.options.date", "readOnly": true}], "form": [{"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_filename1.dict b/test/data/subconfig_filename1.dict new file mode 100644 index 0000000..ac60a9a --- /dev/null +++ b/test/data/subconfig_filename1.dict @@ -0,0 +1 @@ +{"filename1.usbpath": null} \ No newline at end of file diff --git a/test/data/subconfig_filename1.json b/test/data/subconfig_filename1.json new file mode 100644 index 0000000..12da117 --- /dev/null +++ b/test/data/subconfig_filename1.json @@ -0,0 +1 @@ +{"schema": {"filename1.usbpath": {"name": "filename1.usbpath", "type": "string", "title": "Chemin d'acc\u00e8s"}}, "model": [{"key": "filename1.usbpath", "required": true}], "form": [{"key": "filename1.usbpath", "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.dict b/test/data/subconfig_hostname1.dict new file mode 100644 index 0000000..3d9b268 --- /dev/null +++ b/test/data/subconfig_hostname1.dict @@ -0,0 +1 @@ +{"hostname1.options.hostname1": null, "hostname1.options.hostname2": null, "hostname1.options.hostname3": null, "hostname1.options.hostname4": null} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.json b/test/data/subconfig_hostname1.json new file mode 100644 index 0000000..05981e8 --- /dev/null +++ b/test/data/subconfig_hostname1.json @@ -0,0 +1 @@ +{"schema": {"hostname1.options": {"name": "hostname1.options", "properties": {"hostname1.options.hostname1": {"name": "hostname1.options.hostname1", "type": "domain", "title": "Domainname Description"}, "hostname1.options.hostname2": {"name": "hostname1.options.hostname2", "type": "domain", "title": "Domainname without dot Description"}, "hostname1.options.hostname3": {"name": "hostname1.options.hostname3", "type": "domain", "title": "Hostname or IP Description"}, "hostname1.options.hostname4": {"name": "hostname1.options.hostname4", "type": "domain", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "hostname1.options.hostname1", "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "hostname1.options.hostname2", "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, {"key": "hostname1.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": "hostname1.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/subconfig_ip1.dict b/test/data/subconfig_ip1.dict new file mode 100644 index 0000000..0aeb15a --- /dev/null +++ b/test/data/subconfig_ip1.dict @@ -0,0 +1 @@ +{"ip1.options.ip": null} \ No newline at end of file diff --git a/test/data/subconfig_ip1.json b/test/data/subconfig_ip1.json new file mode 100644 index 0000000..3b38db1 --- /dev/null +++ b/test/data/subconfig_ip1.json @@ -0,0 +1 @@ +{"schema": {"ip1.options": {"name": "ip1.options", "properties": {"ip1.options.ip": {"name": "ip1.options.ip", "type": "string", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "ip1.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/subconfig_ip1_frozen.dict b/test/data/subconfig_ip1_frozen.dict new file mode 100644 index 0000000..8e229c3 --- /dev/null +++ b/test/data/subconfig_ip1_frozen.dict @@ -0,0 +1 @@ +{"ip1_frozen.options.ip": null} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.json b/test/data/subconfig_ip1_frozen.json new file mode 100644 index 0000000..e47e48a --- /dev/null +++ b/test/data/subconfig_ip1_frozen.json @@ -0,0 +1 @@ +{"schema": {"ip1_frozen.options": {"name": "ip1_frozen.options", "properties": {"ip1_frozen.options.ip": {"name": "ip1_frozen.options.ip", "type": "string", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "ip1_frozen.options.ip", "readOnly": true}], "form": [{"key": "ip1_frozen.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/subconfig_mail1.dict b/test/data/subconfig_mail1.dict new file mode 100644 index 0000000..b1de068 --- /dev/null +++ b/test/data/subconfig_mail1.dict @@ -0,0 +1 @@ +{"mail1.options.mail": null} \ No newline at end of file diff --git a/test/data/subconfig_mail1.json b/test/data/subconfig_mail1.json new file mode 100644 index 0000000..d6436a1 --- /dev/null +++ b/test/data/subconfig_mail1.json @@ -0,0 +1 @@ +{"schema": {"mail1.options": {"name": "mail1.options", "properties": {"mail1.options.mail": {"name": "mail1.options.mail", "type": "string", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "mail1.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/subconfig_number1.dict b/test/data/subconfig_number1.dict new file mode 100644 index 0000000..f4af0eb --- /dev/null +++ b/test/data/subconfig_number1.dict @@ -0,0 +1 @@ +{"number1.options.integer": null} \ No newline at end of file diff --git a/test/data/subconfig_number1.json b/test/data/subconfig_number1.json new file mode 100644 index 0000000..c38996c --- /dev/null +++ b/test/data/subconfig_number1.json @@ -0,0 +1 @@ +{"schema": {"number1.options": {"name": "number1.options", "properties": {"number1.options.integer": {"name": "number1.options.integer", "type": "number", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "number1.options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.dict b/test/data/subconfig_number1_frozen.dict new file mode 100644 index 0000000..65a85f3 --- /dev/null +++ b/test/data/subconfig_number1_frozen.dict @@ -0,0 +1 @@ +{"number1_frozen.options.integer": null} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.json b/test/data/subconfig_number1_frozen.json new file mode 100644 index 0000000..09964a4 --- /dev/null +++ b/test/data/subconfig_number1_frozen.json @@ -0,0 +1 @@ +{"schema": {"number1_frozen.options": {"name": "number1_frozen.options", "properties": {"number1_frozen.options.integer": {"name": "number1_frozen.options.integer", "type": "number", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_frozen.options.integer", "readOnly": true}], "form": [{"key": "number1_frozen.options.integer", "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.dict b/test/data/subconfig_number1_mod_value.dict new file mode 100644 index 0000000..2924638 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.dict @@ -0,0 +1 @@ +{"number1_mod_value.options.integer": 3} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.json b/test/data/subconfig_number1_mod_value.json new file mode 100644 index 0000000..8c66192 --- /dev/null +++ b/test/data/subconfig_number1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"number1_mod_value.options": {"name": "number1_mod_value.options", "properties": {"number1_mod_value.options.integer": {"name": "number1_mod_value.options.integer", "type": "number", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_mod_value.options.integer", "value": 3, "owner": "user"}], "form": [{"key": "number1_mod_value.options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.dict b/test/data/subconfig_number1_value.dict new file mode 100644 index 0000000..8220886 --- /dev/null +++ b/test/data/subconfig_number1_value.dict @@ -0,0 +1 @@ +{"number1_value.options.integer": 0} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.json b/test/data/subconfig_number1_value.json new file mode 100644 index 0000000..7ffc540 --- /dev/null +++ b/test/data/subconfig_number1_value.json @@ -0,0 +1 @@ +{"schema": {"number1_value.options": {"name": "number1_value.options", "properties": {"number1_value.options.integer": {"name": "number1_value.options.integer", "type": "number", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "number1_value.options.integer", "value": 0, "owner": "default"}], "form": [{"key": "number1_value.options.integer", "clearable": true, "allowedpattern": "[0-9]", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.dict b/test/data/subconfig_unicode1.dict new file mode 100644 index 0000000..b72d6d6 --- /dev/null +++ b/test/data/subconfig_unicode1.dict @@ -0,0 +1 @@ +{"unicode1.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.json b/test/data/subconfig_unicode1.json new file mode 100644 index 0000000..a349400 --- /dev/null +++ b/test/data/subconfig_unicode1.json @@ -0,0 +1 @@ +{"schema": {"unicode1.options": {"name": "unicode1.options", "properties": {"unicode1.options.unicode": {"name": "unicode1.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode1.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.dict b/test/data/subconfig_unicode1_frozen.dict new file mode 100644 index 0000000..cb09b98 --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.dict @@ -0,0 +1 @@ +{"unicode1_frozen.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.json b/test/data/subconfig_unicode1_frozen.json new file mode 100644 index 0000000..06ea590 --- /dev/null +++ b/test/data/subconfig_unicode1_frozen.json @@ -0,0 +1 @@ +{"schema": {"unicode1_frozen.options": {"name": "unicode1_frozen.options", "properties": {"unicode1_frozen.options.unicode": {"name": "unicode1_frozen.options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_frozen.options.unicode", "readOnly": true}], "form": [{"key": "unicode1_frozen.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.dict b/test/data/subconfig_unicode1_mandatory.dict new file mode 100644 index 0000000..55d950d --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.dict @@ -0,0 +1 @@ +{"unicode1_mandatory.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.json b/test/data/subconfig_unicode1_mandatory.json new file mode 100644 index 0000000..9a898fd --- /dev/null +++ b/test/data/subconfig_unicode1_mandatory.json @@ -0,0 +1 @@ +{"schema": {"unicode1_mandatory.options": {"name": "unicode1_mandatory.options", "properties": {"unicode1_mandatory.options.unicode": {"name": "unicode1_mandatory.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_mandatory.options.unicode", "required": true}], "form": [{"key": "unicode1_mandatory.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_hidden_slaves.dict b/test/data/subconfig_unicode1_master_hidden_slaves.dict new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_master_hidden_slaves.dict @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_hidden_slaves.json b/test/data/subconfig_unicode1_master_hidden_slaves.json new file mode 100644 index 0000000..fb1275c --- /dev/null +++ b/test/data/subconfig_unicode1_master_hidden_slaves.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_hidden_slaves.options": {"name": "unicode1_master_hidden_slaves.options", "properties": {"unicode1_master_hidden_slaves.options.unicode": {"name": "unicode1_master_hidden_slaves.options.unicode", "properties": {"unicode1_master_hidden_slaves.options.unicode.unicode": {"name": "unicode1_master_hidden_slaves.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_hidden_slaves.options.unicode.unicode1": {"name": "unicode1_master_hidden_slaves.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_hidden_slaves.options.unicode.unicode2": {"name": "unicode1_master_hidden_slaves.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "unicode1_master_hidden_slaves.options.unicode.unicode3": {"name": "unicode1_master_hidden_slaves.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_hidden_slaves.options.unicode.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "unicode1_master_hidden_slaves.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_hidden_slaves.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_hidden_slaves.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_master_hidden_slaves.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves.dict b/test/data/subconfig_unicode1_master_slaves.dict new file mode 100644 index 0000000..9fed7c1 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves.options.unicode.unicode": [], "unicode1_master_slaves.options.unicode.unicode1": [], "unicode1_master_slaves.options.unicode.unicode2": [], "unicode1_master_slaves.options.unicode.unicode3": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves.json b/test/data/subconfig_unicode1_master_slaves.json new file mode 100644 index 0000000..df86371 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves.options": {"name": "unicode1_master_slaves.options", "properties": {"unicode1_master_slaves.options.unicode": {"name": "unicode1_master_slaves.options.unicode", "properties": {"unicode1_master_slaves.options.unicode.unicode": {"name": "unicode1_master_slaves.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves.options.unicode.unicode1": {"name": "unicode1_master_slaves.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves.options.unicode.unicode2": {"name": "unicode1_master_slaves.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "unicode1_master_slaves.options.unicode.unicode3": {"name": "unicode1_master_slaves.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": "unicode1_master_slaves.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_master_slaves.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_slaves.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_master_slaves.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_default_value.dict b/test/data/subconfig_unicode1_master_slaves_default_value.dict new file mode 100644 index 0000000..84ae71e --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_default_value.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_default_value.options.unicode.unicode": ["val1", "val2"], "unicode1_master_slaves_default_value.options.unicode.unicode1": [null, null], "unicode1_master_slaves_default_value.options.unicode.unicode2": ["slave2", "slave2"], "unicode1_master_slaves_default_value.options.unicode.unicode3": [null, null]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_default_value.json b/test/data/subconfig_unicode1_master_slaves_default_value.json new file mode 100644 index 0000000..61d380e --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_default_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_default_value.options": {"name": "unicode1_master_slaves_default_value.options", "properties": {"unicode1_master_slaves_default_value.options.unicode": {"name": "unicode1_master_slaves_default_value.options.unicode", "properties": {"unicode1_master_slaves_default_value.options.unicode.unicode": {"name": "unicode1_master_slaves_default_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_default_value.options.unicode.unicode1": {"name": "unicode1_master_slaves_default_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_default_value.options.unicode.unicode2": {"name": "unicode1_master_slaves_default_value.options.unicode.unicode2", "type": "string", "default": "slave2", "isMulti": true, "title": "Unicode slave 2 with default multi"}, "unicode1_master_slaves_default_value.options.unicode.unicode3": {"name": "unicode1_master_slaves_default_value.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": "unicode1_master_slaves_default_value.options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "default"}, {"key": "unicode1_master_slaves_default_value.options.unicode.unicode2", "index": 0, "value": "slave2", "owner": "default"}, {"key": "unicode1_master_slaves_default_value.options.unicode.unicode2", "index": 1, "value": "slave2", "owner": "default"}], "form": [{"key": "unicode1_master_slaves_default_value.options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "unicode1_master_slaves_default_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_default_value.options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "unicode1_master_slaves_default_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_hidden.dict b/test/data/subconfig_unicode1_master_slaves_hidden.dict new file mode 100644 index 0000000..cdfbe77 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_hidden.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_hidden.options.unicode.unicode": ["val1", "val2"], "unicode1_master_slaves_hidden.options.unicode.unicode1": [null, null], "unicode1_master_slaves_hidden.options.unicode.unicode3": [null, null]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_hidden.json b/test/data/subconfig_unicode1_master_slaves_hidden.json new file mode 100644 index 0000000..c614b47 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_hidden.options": {"name": "unicode1_master_slaves_hidden.options", "properties": {"unicode1_master_slaves_hidden.options.unicode": {"name": "unicode1_master_slaves_hidden.options.unicode", "properties": {"unicode1_master_slaves_hidden.options.unicode.unicode": {"name": "unicode1_master_slaves_hidden.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_hidden.options.unicode.unicode1": {"name": "unicode1_master_slaves_hidden.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_hidden.options.unicode.unicode2": {"name": "unicode1_master_slaves_hidden.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2 hidden"}, "unicode1_master_slaves_hidden.options.unicode.unicode3": {"name": "unicode1_master_slaves_hidden.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_hidden.options.unicode.unicode", "required": true, "value": ["val1", "val2"], "owner": "user"}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode2", "display": false, "hidden": true, "index": 0, "value": "super", "owner": "user"}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode2", "display": false, "hidden": true, "index": 1}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode2", "display": false, "hidden": true}], "form": [{"key": "unicode1_master_slaves_hidden.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_hidden.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_hidden_all_default.dict b/test/data/subconfig_unicode1_master_slaves_hidden_all_default.dict new file mode 100644 index 0000000..88cc431 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_hidden_all_default.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_hidden_all_default.options.unicode": null, "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode1": [], "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode2": [], "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode3": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_hidden_all_default.json b/test/data/subconfig_unicode1_master_slaves_hidden_all_default.json new file mode 100644 index 0000000..3d223d8 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_hidden_all_default.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_hidden_all_default.options": {"name": "unicode1_master_slaves_hidden_all_default.options", "properties": {"unicode1_master_slaves_hidden_all_default.options.unicode": {"name": "unicode1_master_slaves_hidden_all_default.options.unicode", "type": "string", "title": "Unicode master"}, "unicode1_master_slaves_hidden_all_default.options.unicode1": {"name": "unicode1_master_slaves_hidden_all_default.options.unicode1", "properties": {"unicode1_master_slaves_hidden_all_default.options.unicode1.unicode1": {"name": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode2": {"name": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode3": {"name": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_master_slaves_hidden_all_default.options.unicode", "type": "input"}, {"key": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_hidden_all_default.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_not_equal.dict b/test/data/subconfig_unicode1_master_slaves_not_equal.dict new file mode 100644 index 0000000..3555f85 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_not_equal.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_not_equal.options.unicode.unicode": [], "unicode1_master_slaves_not_equal.options.unicode.unicode1": [], "unicode1_master_slaves_not_equal.options.unicode.unicode2": [], "unicode1_master_slaves_not_equal.options.unicode.unicode3": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_not_equal.json b/test/data/subconfig_unicode1_master_slaves_not_equal.json new file mode 100644 index 0000000..b85e5b3 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_not_equal.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_not_equal.options": {"name": "unicode1_master_slaves_not_equal.options", "properties": {"unicode1_master_slaves_not_equal.options.unicode": {"name": "unicode1_master_slaves_not_equal.options.unicode", "properties": {"unicode1_master_slaves_not_equal.options.unicode.unicode": {"name": "unicode1_master_slaves_not_equal.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_not_equal.options.unicode.unicode1": {"name": "unicode1_master_slaves_not_equal.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_not_equal.options.unicode.unicode2": {"name": "unicode1_master_slaves_not_equal.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2 not equal"}, "unicode1_master_slaves_not_equal.options.unicode.unicode3": {"name": "unicode1_master_slaves_not_equal.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": "unicode1_master_slaves_not_equal.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_master_slaves_not_equal.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_slaves_not_equal.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_not_equal.options.unicode.unicode2", "type": "input", "not_equal": {"options": ["unicode1_master_slaves_not_equal.options.unicode.unicode3"]}}, {"key": "unicode1_master_slaves_not_equal.options.unicode.unicode3", "type": "input", "not_equal": {"options": ["unicode1_master_slaves_not_equal.options.unicode.unicode2"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires.dict b/test/data/subconfig_unicode1_master_slaves_requires.dict new file mode 100644 index 0000000..005ca1a --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires.options.unicode.unicode": [], "unicode1_master_slaves_requires.options.unicode.unicode1": [], "unicode1_master_slaves_requires.options.unicode.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires.json b/test/data/subconfig_unicode1_master_slaves_requires.json new file mode 100644 index 0000000..e1a6e51 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires.options": {"name": "unicode1_master_slaves_requires.options", "properties": {"unicode1_master_slaves_requires.options.unicode": {"name": "unicode1_master_slaves_requires.options.unicode", "properties": {"unicode1_master_slaves_requires.options.unicode.unicode": {"name": "unicode1_master_slaves_requires.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_requires.options.unicode.unicode1": {"name": "unicode1_master_slaves_requires.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires.options.unicode.unicode2": {"name": "unicode1_master_slaves_requires.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 3'"}, "unicode1_master_slaves_requires.options.unicode.unicode3": {"name": "unicode1_master_slaves_requires.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": "unicode1_master_slaves_requires.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_master_slaves_requires.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_slaves_requires.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_requires.options.unicode.unicode2", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires.options.unicode.unicode3"]}}}}, {"key": "unicode1_master_slaves_requires.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_all.dict b/test/data/subconfig_unicode1_master_slaves_requires_all.dict new file mode 100644 index 0000000..17236fe --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_all.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_all.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_all.json b/test/data/subconfig_unicode1_master_slaves_requires_all.json new file mode 100644 index 0000000..fbf4ebc --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_all.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_all.options": {"name": "unicode1_master_slaves_requires_all.options", "properties": {"unicode1_master_slaves_requires_all.options.unicode": {"name": "unicode1_master_slaves_requires_all.options.unicode", "type": "string", "title": "Value 'test' must show MasterSlaves"}, "unicode1_master_slaves_requires_all.options.unicode1": {"name": "unicode1_master_slaves_requires_all.options.unicode1", "properties": {"unicode1_master_slaves_requires_all.options.unicode1.unicode1": {"name": "unicode1_master_slaves_requires_all.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_requires_all.options.unicode1.unicode2": {"name": "unicode1_master_slaves_requires_all.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires_all.options.unicode1.unicode3": {"name": "unicode1_master_slaves_requires_all.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_requires_all.options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "unicode1_master_slaves_requires_all.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_master_slaves_requires_all.options.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_all.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_all.options.unicode1"]}}}}, {"key": "unicode1_master_slaves_requires_all.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_requires_all.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_requires_all.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_master.dict b/test/data/subconfig_unicode1_master_slaves_requires_master.dict new file mode 100644 index 0000000..9ca3ec0 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_master.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_master.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_master.json b/test/data/subconfig_unicode1_master_slaves_requires_master.json new file mode 100644 index 0000000..1c52ad1 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_master.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_master.options": {"name": "unicode1_master_slaves_requires_master.options", "properties": {"unicode1_master_slaves_requires_master.options.unicode": {"name": "unicode1_master_slaves_requires_master.options.unicode", "type": "string", "title": "Value 'test' must show master"}, "unicode1_master_slaves_requires_master.options.unicode1": {"name": "unicode1_master_slaves_requires_master.options.unicode1", "properties": {"unicode1_master_slaves_requires_master.options.unicode1.unicode1": {"name": "unicode1_master_slaves_requires_master.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_requires_master.options.unicode1.unicode2": {"name": "unicode1_master_slaves_requires_master.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires_master.options.unicode1.unicode3": {"name": "unicode1_master_slaves_requires_master.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_requires_master.options.unicode1", "properties": ["hidden"], "hidden": true}, {"key": "unicode1_master_slaves_requires_master.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_master_slaves_requires_master.options.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_master.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_master.options.unicode1"]}}}}, {"key": "unicode1_master_slaves_requires_master.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_requires_master.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_requires_master.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slave.dict b/test/data/subconfig_unicode1_master_slaves_requires_slave.dict new file mode 100644 index 0000000..fd50f77 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slave.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_slave.options.unicode1.unicode1": [], "unicode1_master_slaves_requires_slave.options.unicode1.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slave.json b/test/data/subconfig_unicode1_master_slaves_requires_slave.json new file mode 100644 index 0000000..1746599 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slave.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_slave.options": {"name": "unicode1_master_slaves_requires_slave.options", "properties": {"unicode1_master_slaves_requires_slave.options.unicode1": {"name": "unicode1_master_slaves_requires_slave.options.unicode1", "properties": {"unicode1_master_slaves_requires_slave.options.unicode1.unicode1": {"name": "unicode1_master_slaves_requires_slave.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "unicode1_master_slaves_requires_slave.options.unicode1.unicode2": {"name": "unicode1_master_slaves_requires_slave.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires_slave.options.unicode1.unicode3": {"name": "unicode1_master_slaves_requires_slave.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_requires_slave.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_master_slaves_requires_slave.options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_slave.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_slave.options.unicode1.unicode3"]}}}}, {"key": "unicode1_master_slaves_requires_slave.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_requires_slave.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slave_value.dict b/test/data/subconfig_unicode1_master_slaves_requires_slave_value.dict new file mode 100644 index 0000000..d6e98b0 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slave_value.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_slave_value.options.unicode1.unicode1": ["test", "pas test"], "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode2": ["super1", null]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slave_value.json b/test/data/subconfig_unicode1_master_slaves_requires_slave_value.json new file mode 100644 index 0000000..2727f88 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slave_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_slave_value.options": {"name": "unicode1_master_slaves_requires_slave_value.options", "properties": {"unicode1_master_slaves_requires_slave_value.options.unicode1": {"name": "unicode1_master_slaves_requires_slave_value.options.unicode1", "properties": {"unicode1_master_slaves_requires_slave_value.options.unicode1.unicode1": {"name": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode2": {"name": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3": {"name": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode1", "required": true, "value": ["test", "pas test"], "owner": "user"}, {"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode2", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3", "hidden": true, "index": 1}], "form": [{"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3"]}}}}, {"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_requires_slave_value.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slaves.dict b/test/data/subconfig_unicode1_master_slaves_requires_slaves.dict new file mode 100644 index 0000000..a692910 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slaves.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_slaves.options.unicode1.unicode1": [], "unicode1_master_slaves_requires_slaves.options.unicode1.unicode2": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_slaves.json b/test/data/subconfig_unicode1_master_slaves_requires_slaves.json new file mode 100644 index 0000000..865c3e1 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_slaves.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_slaves.options": {"name": "unicode1_master_slaves_requires_slaves.options", "properties": {"unicode1_master_slaves_requires_slaves.options.unicode1": {"name": "unicode1_master_slaves_requires_slaves.options.unicode1", "properties": {"unicode1_master_slaves_requires_slaves.options.unicode1.unicode1": {"name": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_requires_slaves.options.unicode1.unicode2": {"name": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 2'"}, "unicode1_master_slaves_requires_slaves.options.unicode1.unicode3": {"name": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode slave 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode1", "required": true}], "form": [{"key": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode2", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_slaves.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_slaves.options.unicode1.unicode3"]}}}}, {"key": "unicode1_master_slaves_requires_slaves.options.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_value.dict b/test/data/subconfig_unicode1_master_slaves_requires_value.dict new file mode 100644 index 0000000..9f2c6cd --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_value.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_requires_value.options.unicode.unicode": ["test", "val2"], "unicode1_master_slaves_requires_value.options.unicode.unicode1": ["super1", "super2"], "unicode1_master_slaves_requires_value.options.unicode.unicode2": ["pas test", "test"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_requires_value.json b/test/data/subconfig_unicode1_master_slaves_requires_value.json new file mode 100644 index 0000000..2dc49b4 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_requires_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_requires_value.options": {"name": "unicode1_master_slaves_requires_value.options", "properties": {"unicode1_master_slaves_requires_value.options.unicode": {"name": "unicode1_master_slaves_requires_value.options.unicode", "properties": {"unicode1_master_slaves_requires_value.options.unicode.unicode": {"name": "unicode1_master_slaves_requires_value.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode slave 3'"}, "unicode1_master_slaves_requires_value.options.unicode.unicode1": {"name": "unicode1_master_slaves_requires_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_requires_value.options.unicode.unicode2": {"name": "unicode1_master_slaves_requires_value.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode slave 2"}, "unicode1_master_slaves_requires_value.options.unicode.unicode3": {"name": "unicode1_master_slaves_requires_value.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": "unicode1_master_slaves_requires_value.options.unicode.unicode", "required": true, "value": ["test", "val2"], "owner": "user"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode3", "hidden": true, "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "unicode1_master_slaves_requires_value.options.unicode.unicode", "type": "input", "dependencies": {"default": {"hide": ["unicode1_master_slaves_requires_value.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_master_slaves_requires_value.options.unicode.unicode3"]}}}}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_requires_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_submulti.dict b/test/data/subconfig_unicode1_master_slaves_submulti.dict new file mode 100644 index 0000000..3a534fa --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_submulti.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_submulti.options.unicode.unicode": [], "unicode1_master_slaves_submulti.options.unicode.unicode1": [], "unicode1_master_slaves_submulti.options.unicode.unicode2": [], "unicode1_master_slaves_submulti.options.unicode.unicode3": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_submulti.json b/test/data/subconfig_unicode1_master_slaves_submulti.json new file mode 100644 index 0000000..0af7eca --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_submulti.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_submulti.options": {"name": "unicode1_master_slaves_submulti.options", "properties": {"unicode1_master_slaves_submulti.options.unicode": {"name": "unicode1_master_slaves_submulti.options.unicode", "properties": {"unicode1_master_slaves_submulti.options.unicode.unicode": {"name": "unicode1_master_slaves_submulti.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_submulti.options.unicode.unicode1": {"name": "unicode1_master_slaves_submulti.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_submulti.options.unicode.unicode2": {"name": "unicode1_master_slaves_submulti.options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode slave 2 submulti"}, "unicode1_master_slaves_submulti.options.unicode.unicode3": {"name": "unicode1_master_slaves_submulti.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": "unicode1_master_slaves_submulti.options.unicode.unicode", "required": true}], "form": [{"key": "unicode1_master_slaves_submulti.options.unicode.unicode", "type": "input"}, {"key": "unicode1_master_slaves_submulti.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_submulti.options.unicode.unicode2", "type": "input"}, {"key": "unicode1_master_slaves_submulti.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_value.dict b/test/data/subconfig_unicode1_master_slaves_value.dict new file mode 100644 index 0000000..90dee07 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_value.dict @@ -0,0 +1 @@ +{"unicode1_master_slaves_value.options.unicode.unicode": ["val3", "val4"], "unicode1_master_slaves_value.options.unicode.unicode1": ["super1", "super2"], "unicode1_master_slaves_value.options.unicode.unicode2": ["pas test", "test"], "unicode1_master_slaves_value.options.unicode.unicode3": [null, "super"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_master_slaves_value.json b/test/data/subconfig_unicode1_master_slaves_value.json new file mode 100644 index 0000000..907a1d4 --- /dev/null +++ b/test/data/subconfig_unicode1_master_slaves_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_master_slaves_value.options": {"name": "unicode1_master_slaves_value.options", "properties": {"unicode1_master_slaves_value.options.unicode": {"name": "unicode1_master_slaves_value.options.unicode", "properties": {"unicode1_master_slaves_value.options.unicode.unicode": {"name": "unicode1_master_slaves_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode master"}, "unicode1_master_slaves_value.options.unicode.unicode1": {"name": "unicode1_master_slaves_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode slave 1"}, "unicode1_master_slaves_value.options.unicode.unicode2": {"name": "unicode1_master_slaves_value.options.unicode.unicode2", "type": "string", "default": "slave2", "isMulti": true, "title": "Unicode slave 2 with default multi"}, "unicode1_master_slaves_value.options.unicode.unicode3": {"name": "unicode1_master_slaves_value.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": "unicode1_master_slaves_value.options.unicode.unicode", "required": true, "value": ["val3", "val4"], "owner": "user"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode1", "index": 0, "value": "super1", "owner": "user"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode1", "index": 1, "value": "super2", "owner": "user"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode2", "index": 0, "value": "pas test", "owner": "user"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode2", "index": 1, "value": "test", "owner": "user"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode3", "index": 1, "value": "super", "owner": "user"}], "form": [{"key": "unicode1_master_slaves_value.options.unicode.unicode", "clearable": true, "type": "input"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode1", "type": "input"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode2", "clearable": true, "type": "input"}, {"key": "unicode1_master_slaves_value.options.unicode.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.dict b/test/data/subconfig_unicode1_mod_value.dict new file mode 100644 index 0000000..fd5db80 --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.dict @@ -0,0 +1 @@ +{"unicode1_mod_value.options.unicode": "a"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.json b/test/data/subconfig_unicode1_mod_value.json new file mode 100644 index 0000000..7957ac1 --- /dev/null +++ b/test/data/subconfig_unicode1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_mod_value.options": {"name": "unicode1_mod_value.options", "properties": {"unicode1_mod_value.options.unicode": {"name": "unicode1_mod_value.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_mod_value.options.unicode", "value": "a", "owner": "user"}], "form": [{"key": "unicode1_mod_value.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.dict b/test/data/subconfig_unicode1_multi.dict new file mode 100644 index 0000000..b72058d --- /dev/null +++ b/test/data/subconfig_unicode1_multi.dict @@ -0,0 +1 @@ +{"unicode1_multi.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.json b/test/data/subconfig_unicode1_multi.json new file mode 100644 index 0000000..ffab873 --- /dev/null +++ b/test/data/subconfig_unicode1_multi.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi.options": {"name": "unicode1_multi.options", "properties": {"unicode1_multi.options.unicode": {"name": "unicode1_multi.options.unicode", "type": "string", "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi.options.unicode", "required": true}], "form": [{"key": "unicode1_multi.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.dict b/test/data/subconfig_unicode1_multi_hidden.dict new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.dict @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.json b/test/data/subconfig_unicode1_multi_hidden.json new file mode 100644 index 0000000..6719180 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_hidden.options": {"name": "unicode1_multi_hidden.options", "properties": {"unicode1_multi_hidden.options.unicode": {"name": "unicode1_multi_hidden.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_hidden.options.unicode", "display": false, "required": true, "hidden": true}], "form": [{"key": "unicode1_multi_hidden.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.dict b/test/data/subconfig_unicode1_multi_mandatory.dict new file mode 100644 index 0000000..5b9bbe9 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.dict @@ -0,0 +1 @@ +{"unicode1_multi_mandatory.options.unicode": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.json b/test/data/subconfig_unicode1_multi_mandatory.json new file mode 100644 index 0000000..a0c301f --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mandatory.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_mandatory.options": {"name": "unicode1_multi_mandatory.options", "properties": {"unicode1_multi_mandatory.options.unicode": {"name": "unicode1_multi_mandatory.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_mandatory.options.unicode", "required": true, "needs_len": true}], "form": [{"key": "unicode1_multi_mandatory.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.dict b/test/data/subconfig_unicode1_multi_mod_value.dict new file mode 100644 index 0000000..9be4daa --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.dict @@ -0,0 +1 @@ +{"unicode1_multi_mod_value.options.unicode": ["c", "d", "e"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.json b/test/data/subconfig_unicode1_multi_mod_value.json new file mode 100644 index 0000000..840ebb6 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_mod_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_mod_value.options": {"name": "unicode1_multi_mod_value.options", "properties": {"unicode1_multi_mod_value.options.unicode": {"name": "unicode1_multi_mod_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_mod_value.options.unicode", "required": true, "value": ["c", "d", "e"], "owner": "user"}], "form": [{"key": "unicode1_multi_mod_value.options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.dict b/test/data/subconfig_unicode1_multi_not_equal_collapse.dict new file mode 100644 index 0000000..c812e47 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.dict @@ -0,0 +1 @@ +{"unicode1_multi_not_equal_collapse.descr1.unicode1": null, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": [], "unicode1_multi_not_equal_collapse.descr2.unicode2": "a", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": ["a", "b"], "unicode1_multi_not_equal_collapse.descr3.unicode3": null, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": []} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.json b/test/data/subconfig_unicode1_multi_not_equal_collapse.json new file mode 100644 index 0000000..d9ce19e --- /dev/null +++ b/test/data/subconfig_unicode1_multi_not_equal_collapse.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"name": "unicode1_multi_not_equal_collapse.descr1", "properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "unicode1_multi_not_equal_collapse.descr2": {"name": "unicode1_multi_not_equal_collapse.descr2", "properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"name": "unicode1_multi_not_equal_collapse.descr3", "properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": [{"key": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "required": true}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2", "value": "a", "owner": "default"}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "required": true, "value": ["a", "b"], "owner": "default"}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "required": true}], "form": [{"key": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, {"key": "unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2", "clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}}, {"key": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "clearable": true, "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr2.unicode2"]}}, {"key": "unicode1_multi_not_equal_collapse.descr3.unicode3_multi", "type": "input", "not_equal": {"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.dict b/test/data/subconfig_unicode1_multi_requires.dict new file mode 100644 index 0000000..c528492 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.dict @@ -0,0 +1 @@ +{"unicode1_multi_requires.options.unicode1": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.json b/test/data/subconfig_unicode1_multi_requires.json new file mode 100644 index 0000000..99c2e17 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_requires.options": {"name": "unicode1_multi_requires.options", "properties": {"unicode1_multi_requires.options.unicode1": {"name": "unicode1_multi_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_multi_requires.options.unicode2": {"name": "unicode1_multi_requires.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_requires.options.unicode2", "required": true, "hidden": true}], "form": [{"key": "unicode1_multi_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_multi_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_multi_requires.options.unicode2"]}}}}, {"key": "unicode1_multi_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.dict b/test/data/subconfig_unicode1_multi_value.dict new file mode 100644 index 0000000..4f871e0 --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.dict @@ -0,0 +1 @@ +{"unicode1_multi_value.options.unicode": ["a", "b"]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.json b/test/data/subconfig_unicode1_multi_value.json new file mode 100644 index 0000000..04ea41e --- /dev/null +++ b/test/data/subconfig_unicode1_multi_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_value.options": {"name": "unicode1_multi_value.options", "properties": {"unicode1_multi_value.options.unicode": {"name": "unicode1_multi_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_multi_value.options.unicode", "required": true, "value": ["a", "b"], "owner": "default"}], "form": [{"key": "unicode1_multi_value.options.unicode", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.dict b/test/data/subconfig_unicode1_not_equal.dict new file mode 100644 index 0000000..865ab27 --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.dict @@ -0,0 +1 @@ +{"unicode1_not_equal.options.unicode1": null, "unicode1_not_equal.options.unicode2": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.json b/test/data/subconfig_unicode1_not_equal.json new file mode 100644 index 0000000..d1aaba2 --- /dev/null +++ b/test/data/subconfig_unicode1_not_equal.json @@ -0,0 +1 @@ +{"schema": {"unicode1_not_equal.options": {"name": "unicode1_not_equal.options", "properties": {"unicode1_not_equal.options.unicode1": {"name": "unicode1_not_equal.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode1_not_equal.options.unicode2": {"name": "unicode1_not_equal.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode1_not_equal.options.unicode1", "type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode2"]}}, {"key": "unicode1_not_equal.options.unicode2", "type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode1"]}}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.dict b/test/data/subconfig_unicode1_optiondescription_requires.dict new file mode 100644 index 0000000..672b1be --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.dict @@ -0,0 +1 @@ +{"unicode1_optiondescription_requires.options.unicode1": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.json b/test/data/subconfig_unicode1_optiondescription_requires.json new file mode 100644 index 0000000..42dd85c --- /dev/null +++ b/test/data/subconfig_unicode1_optiondescription_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_optiondescription_requires.options": {"name": "unicode1_optiondescription_requires.options", "properties": {"unicode1_optiondescription_requires.options.unicode1": {"name": "unicode1_optiondescription_requires.options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1_optiondescription_requires.unicode1": {"name": "unicode1_optiondescription_requires.unicode1", "properties": {"unicode1_optiondescription_requires.unicode1.unicode2": {"name": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"name": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": [{"key": "unicode1_optiondescription_requires.unicode1", "properties": ["hidden"], "hidden": true}], "form": [{"key": "unicode1_optiondescription_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_optiondescription_requires.unicode1"]}, "expected": {"test": {"show": ["unicode1_optiondescription_requires.unicode1"]}}}}, {"key": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "input"}, {"key": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.dict b/test/data/subconfig_unicode1_requires.dict new file mode 100644 index 0000000..0fd1131 --- /dev/null +++ b/test/data/subconfig_unicode1_requires.dict @@ -0,0 +1 @@ +{"unicode1_requires.options.unicode1": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.json b/test/data/subconfig_unicode1_requires.json new file mode 100644 index 0000000..5edf3f7 --- /dev/null +++ b/test/data/subconfig_unicode1_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_requires.options": {"name": "unicode1_requires.options", "properties": {"unicode1_requires.options.unicode1": {"name": "unicode1_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_requires.options.unicode2": {"name": "unicode1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_requires.options.unicode2", "hidden": true}], "form": [{"key": "unicode1_requires.options.unicode1", "type": "input", "dependencies": {"default": {"hide": ["unicode1_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_requires.options.unicode2"]}}}}, {"key": "unicode1_requires.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.dict b/test/data/subconfig_unicode1_simple_callback.dict new file mode 100644 index 0000000..88b9b48 --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.dict @@ -0,0 +1 @@ +{"unicode1_simple_callback.options.unicode1": "word"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.json b/test/data/subconfig_unicode1_simple_callback.json new file mode 100644 index 0000000..73ce149 --- /dev/null +++ b/test/data/subconfig_unicode1_simple_callback.json @@ -0,0 +1 @@ +{"schema": {"unicode1_simple_callback.options": {"name": "unicode1_simple_callback.options", "properties": {"unicode1_simple_callback.options.unicode1": {"name": "unicode1_simple_callback.options.unicode1", "type": "string", "value": "word", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode1_simple_callback.options.unicode1", "value": "word", "owner": "default"}], "form": [{"key": "unicode1_simple_callback.options.unicode1", "clearable": true, "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.dict b/test/data/subconfig_unicode2.dict new file mode 100644 index 0000000..14016d8 --- /dev/null +++ b/test/data/subconfig_unicode2.dict @@ -0,0 +1 @@ +{"unicode2.options.unicode1": null, "unicode2.options.unicode2": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.json b/test/data/subconfig_unicode2.json new file mode 100644 index 0000000..8e69e9b --- /dev/null +++ b/test/data/subconfig_unicode2.json @@ -0,0 +1 @@ +{"schema": {"unicode2.options": {"name": "unicode2.options", "properties": {"unicode2.options.unicode1": {"name": "unicode2.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2.options.unicode2": {"name": "unicode2.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode2.options.unicode1", "type": "input"}, {"key": "unicode2.options.unicode2", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.dict b/test/data/subconfig_unicode2_copy.dict new file mode 100644 index 0000000..998c3d3 --- /dev/null +++ b/test/data/subconfig_unicode2_copy.dict @@ -0,0 +1 @@ +{"unicode2_copy.options.unicode1": null, "unicode2_copy.options.unicode2": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.json b/test/data/subconfig_unicode2_copy.json new file mode 100644 index 0000000..a0036dc --- /dev/null +++ b/test/data/subconfig_unicode2_copy.json @@ -0,0 +1 @@ +{"schema": {"unicode2_copy.options": {"name": "unicode2_copy.options", "properties": {"unicode2_copy.options.unicode1": {"name": "unicode2_copy.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2_copy.options.unicode2": {"name": "unicode2_copy.options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "unicode2_copy.options.unicode1", "type": "input", "copy": ["unicode2_copy.options.unicode2"]}, {"key": "unicode2_copy.options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.dict b/test/data/subconfig_unicode2_multi_copy.dict new file mode 100644 index 0000000..17db4a9 --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.dict @@ -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_unicode2_multi_copy.json b/test/data/subconfig_unicode2_multi_copy.json new file mode 100644 index 0000000..333adab --- /dev/null +++ b/test/data/subconfig_unicode2_multi_copy.json @@ -0,0 +1 @@ +{"schema": {"unicode2_multi_copy.options": {"name": "unicode2_multi_copy.options", "properties": {"unicode2_multi_copy.options.unicode1": {"name": "unicode2_multi_copy.options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "unicode2_multi_copy.options.unicode2": {"name": "unicode2_multi_copy.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode2_multi_copy.options.unicode1", "required": true}, {"key": "unicode2_multi_copy.options.unicode2", "required": true}], "form": [{"key": "unicode2_multi_copy.options.unicode1", "type": "input", "copy": ["unicode2_multi_copy.options.unicode2"]}, {"key": "unicode2_multi_copy.options.unicode2", "type": "input", "clearable": true}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.dict b/test/data/subconfig_unicode_hidden.dict new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test/data/subconfig_unicode_hidden.dict @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.json b/test/data/subconfig_unicode_hidden.json new file mode 100644 index 0000000..4c8a136 --- /dev/null +++ b/test/data/subconfig_unicode_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode_hidden.options": {"name": "unicode_hidden.options", "properties": {"unicode_hidden.options.unicode": {"name": "unicode_hidden.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_hidden.options.unicode", "display": false, "hidden": true}], "form": [{"key": "unicode_hidden.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.dict b/test/data/subconfig_unicode_property.dict new file mode 100644 index 0000000..43af9ce --- /dev/null +++ b/test/data/subconfig_unicode_property.dict @@ -0,0 +1 @@ +{"unicode_property.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.json b/test/data/subconfig_unicode_property.json new file mode 100644 index 0000000..e5211f3 --- /dev/null +++ b/test/data/subconfig_unicode_property.json @@ -0,0 +1 @@ +{"schema": {"unicode_property.options": {"name": "unicode_property.options", "properties": {"unicode_property.options.unicode": {"name": "unicode_property.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_property.options.unicode", "properties": ["expert"]}], "form": [{"key": "unicode_property.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.dict b/test/data/subconfig_unicode_property_optiondescription.dict new file mode 100644 index 0000000..d041e69 --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.dict @@ -0,0 +1 @@ +{"unicode_property_optiondescription.options.unicode": null} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.json b/test/data/subconfig_unicode_property_optiondescription.json new file mode 100644 index 0000000..b60b986 --- /dev/null +++ b/test/data/subconfig_unicode_property_optiondescription.json @@ -0,0 +1 @@ +{"schema": {"unicode_property_optiondescription.options": {"name": "unicode_property_optiondescription.options", "properties": {"unicode_property_optiondescription.options.unicode": {"name": "unicode_property_optiondescription.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "unicode_property_optiondescription.options", "properties": ["expert"]}], "form": [{"key": "unicode_property_optiondescription.options.unicode", "type": "input"}, {"title": "Configurer", "type": "submit"}]} \ No newline at end of file diff --git a/test/data/subconfig_username1.dict b/test/data/subconfig_username1.dict new file mode 100644 index 0000000..7572537 --- /dev/null +++ b/test/data/subconfig_username1.dict @@ -0,0 +1 @@ +{"username1.options.username": null} \ No newline at end of file diff --git a/test/data/subconfig_username1.json b/test/data/subconfig_username1.json new file mode 100644 index 0000000..adcf159 --- /dev/null +++ b/test/data/subconfig_username1.json @@ -0,0 +1 @@ +{"schema": {"username1.options": {"name": "username1.options", "properties": {"username1.options.username": {"name": "username1.options.username", "type": "string", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": [], "form": [{"key": "username1.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/subconfig_username1_frozen.dict b/test/data/subconfig_username1_frozen.dict new file mode 100644 index 0000000..2b68de3 --- /dev/null +++ b/test/data/subconfig_username1_frozen.dict @@ -0,0 +1 @@ +{"username1_frozen.options.username": null} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.json b/test/data/subconfig_username1_frozen.json new file mode 100644 index 0000000..547e40a --- /dev/null +++ b/test/data/subconfig_username1_frozen.json @@ -0,0 +1 @@ +{"schema": {"username1_frozen.options": {"name": "username1_frozen.options", "properties": {"username1_frozen.options.username": {"name": "username1_frozen.options.username", "type": "string", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": [{"key": "username1_frozen.options.username", "readOnly": true}], "form": [{"key": "username1_frozen.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/test_json.py b/test/test_json.py index c9cb2e8..f1483c5 100644 --- a/test/test_json.py +++ b/test/test_json.py @@ -31,7 +31,6 @@ def test_jsons(): with open(filename, 'r') as fh: json = loads(fh.read()) # - print(filename) config = Config(json) with open(filename[:-4] + 'dict', 'r') as fh: assert loads(fh.read()) == config.value.dict() diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index a2f44b7..66b3640 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -578,7 +578,7 @@ class Config: 'type': 'object'} if root_path: root = self.root.split('.') - if not path.startswith(root): + if not path.startswith(self.root): raise Exception('cannot find {0}'.format(path)) subpaths = path.split('.')[len(root):] else: