From 626184fee7c809d96c7c57f8564f7be32481c151 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 17 Apr 2019 19:16:05 +0200 Subject: [PATCH] add tests --- test/data/subconfig_unicode2_symlink.dict | 1 + test/data/subconfig_unicode2_symlink.info | 1 + test/data/subconfig_unicode2_symlink.json | 1 + test/data/subconfig_unicode2_symlink.owner | 1 + test/data/subconfig_unicode2_symlink.prop | 1 + test/data/subconfig_unicode2_symlink.prop2 | 1 + test/data/unicode2_symlink.dict | 1 + test/data/unicode2_symlink.dict1 | 1 + test/data/unicode2_symlink.info | 1 + test/data/unicode2_symlink.json | 1 + test/data/unicode2_symlink.mod1 | 1 + test/data/unicode2_symlink.owner | 1 + test/data/unicode2_symlink.prop | 1 + test/data/unicode2_symlink.prop2 | 1 + test/data/unicode2_symlink.updates1 | 1 + 15 files changed, 15 insertions(+) create mode 100644 test/data/subconfig_unicode2_symlink.dict create mode 100644 test/data/subconfig_unicode2_symlink.info create mode 100644 test/data/subconfig_unicode2_symlink.json create mode 100644 test/data/subconfig_unicode2_symlink.owner create mode 100644 test/data/subconfig_unicode2_symlink.prop create mode 100644 test/data/subconfig_unicode2_symlink.prop2 create mode 100644 test/data/unicode2_symlink.dict create mode 100644 test/data/unicode2_symlink.dict1 create mode 100644 test/data/unicode2_symlink.info create mode 100644 test/data/unicode2_symlink.json create mode 100644 test/data/unicode2_symlink.mod1 create mode 100644 test/data/unicode2_symlink.owner create mode 100644 test/data/unicode2_symlink.prop create mode 100644 test/data/unicode2_symlink.prop2 create mode 100644 test/data/unicode2_symlink.updates1 diff --git a/test/data/subconfig_unicode2_symlink.dict b/test/data/subconfig_unicode2_symlink.dict new file mode 100644 index 0000000..2626834 --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.dict @@ -0,0 +1 @@ +{"unicode2_symlink.options.unicode1": "test", "unicode2_symlink.options.unicode2": "test"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.info b/test/data/subconfig_unicode2_symlink.info new file mode 100644 index 0000000..a65b00b --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.info @@ -0,0 +1 @@ +{"unicode2_symlink.options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "isleader": false, "isfollower": false, "issymlinkoption": false, "ismulti": false, "type": "string"}, "unicode2_symlink.options.unicode2": {"doc": "Unicode 1", "name": "unicode2", "isoptiondescription": false, "isleader": false, "isfollower": false, "issymlinkoption": true, "ismulti": false, "type": "string"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.json b/test/data/subconfig_unicode2_symlink.json new file mode 100644 index 0000000..12866a6 --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.json @@ -0,0 +1 @@ +{"schema": {"unicode2_symlink.options": {"name": "unicode2_symlink.options", "properties": {"unicode2_symlink.options.unicode1": {"name": "unicode2_symlink.options.unicode1", "type": "string", "value": "test", "title": "Unicode 1"}, "unicode2_symlink.options.unicode2": {"name": "unicode2_symlink.options.unicode2", "type": "symlink", "opt_path": "unicode2_symlink.options.unicode1", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_symlink.options.unicode1": {"value": "test", "owner": "default"}}, "form": {"unicode2_symlink.options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.owner b/test/data/subconfig_unicode2_symlink.owner new file mode 100644 index 0000000..8d23ebd --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.owner @@ -0,0 +1 @@ +{"unicode2_symlink.options.unicode1": {"null": "default"}, "unicode2_symlink.options.unicode2": {"null": "default"}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.prop b/test/data/subconfig_unicode2_symlink.prop new file mode 100644 index 0000000..e994b0e --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.prop @@ -0,0 +1 @@ +{"unicode2_symlink.options.unicode1": {"null": []}, "unicode2_symlink.options.unicode2": {"null": []}} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.prop2 b/test/data/subconfig_unicode2_symlink.prop2 new file mode 100644 index 0000000..e994b0e --- /dev/null +++ b/test/data/subconfig_unicode2_symlink.prop2 @@ -0,0 +1 @@ +{"unicode2_symlink.options.unicode1": {"null": []}, "unicode2_symlink.options.unicode2": {"null": []}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.dict b/test/data/unicode2_symlink.dict new file mode 100644 index 0000000..462b12c --- /dev/null +++ b/test/data/unicode2_symlink.dict @@ -0,0 +1 @@ +{"options.unicode1": "test", "options.unicode2": "test"} \ No newline at end of file diff --git a/test/data/unicode2_symlink.dict1 b/test/data/unicode2_symlink.dict1 new file mode 100644 index 0000000..ac9ad0e --- /dev/null +++ b/test/data/unicode2_symlink.dict1 @@ -0,0 +1 @@ +{"options.unicode1": "val", "options.unicode2": "val"} \ No newline at end of file diff --git a/test/data/unicode2_symlink.info b/test/data/unicode2_symlink.info new file mode 100644 index 0000000..cf029c0 --- /dev/null +++ b/test/data/unicode2_symlink.info @@ -0,0 +1 @@ +{"options.unicode1": {"doc": "Unicode 1", "name": "unicode1", "isoptiondescription": false, "isleader": false, "isfollower": false, "issymlinkoption": false, "ismulti": false, "type": "string"}, "options.unicode2": {"doc": "Unicode 1", "name": "unicode2", "isoptiondescription": false, "isleader": false, "isfollower": false, "issymlinkoption": true, "ismulti": false, "type": "string"}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.json b/test/data/unicode2_symlink.json new file mode 100644 index 0000000..d8c617c --- /dev/null +++ b/test/data/unicode2_symlink.json @@ -0,0 +1 @@ +{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "value": "test", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "symlink", "opt_path": "options.unicode1", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "test", "owner": "default"}}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_symlink.mod1 b/test/data/unicode2_symlink.mod1 new file mode 100644 index 0000000..c683c9f --- /dev/null +++ b/test/data/unicode2_symlink.mod1 @@ -0,0 +1 @@ +{"cmd": "config.option('options.unicode1').value.set('val')", "body": {"updates": [{"action": "modify", "name": "options.unicode1", "value": "val"}]}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.owner b/test/data/unicode2_symlink.owner new file mode 100644 index 0000000..a59ba96 --- /dev/null +++ b/test/data/unicode2_symlink.owner @@ -0,0 +1 @@ +{"options.unicode1": {"null": "default"}, "options.unicode2": {"null": "default"}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.prop b/test/data/unicode2_symlink.prop new file mode 100644 index 0000000..a1d6927 --- /dev/null +++ b/test/data/unicode2_symlink.prop @@ -0,0 +1 @@ +{"options.unicode1": {"null": []}, "options.unicode2": {"null": []}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.prop2 b/test/data/unicode2_symlink.prop2 new file mode 100644 index 0000000..a1d6927 --- /dev/null +++ b/test/data/unicode2_symlink.prop2 @@ -0,0 +1 @@ +{"options.unicode1": {"null": []}, "options.unicode2": {"null": []}} \ No newline at end of file diff --git a/test/data/unicode2_symlink.updates1 b/test/data/unicode2_symlink.updates1 new file mode 100644 index 0000000..9d4adde --- /dev/null +++ b/test/data/unicode2_symlink.updates1 @@ -0,0 +1 @@ +{"updates": ["options.unicode1"], "model": {"options.unicode1": {"value": "val", "owner": "user"}}} \ No newline at end of file