diff --git a/tests/results/test/00_2default_calculated_variable.json b/tests/results/test/00_2default_calculated_variable.json new file mode 100644 index 0000000..4bfbb13 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable.json @@ -0,0 +1,10 @@ +{ + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] +} \ No newline at end of file diff --git a/tests/results/test/00_6ip.json b/tests/results/test/00_6ip.json new file mode 100644 index 0000000..1c3b929 --- /dev/null +++ b/tests/results/test/00_6ip.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" +} \ No newline at end of file diff --git a/tests/results/test/00_6network.json b/tests/results/test/00_6network.json new file mode 100644 index 0000000..940f017 --- /dev/null +++ b/tests/results/test/00_6network.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" +} \ No newline at end of file diff --git a/tests/results/test/00_9default_calculation_multi_optional_default.json b/tests/results/test/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..7b135d7 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,8 @@ +{ + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] +} \ No newline at end of file diff --git a/tests/results/test/01_9choice_variable_optional.json b/tests/results/test/01_9choice_variable_optional.json new file mode 100644 index 0000000..dde6293 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional.json @@ -0,0 +1,3 @@ +{ + "variable": "a" +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_optional_default.json b/tests/results/test/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..4cedf57 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default.json @@ -0,0 +1,7 @@ +{ + "condition": true, + "var1": null, + "var2": null, + "var3": null, + "var4": null +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index.json b/tests/results/test/40_2leadership_calculation_index.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index_2.json b/tests/results/test/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test/60_0family_dynamic_variable_optional.json b/tests/results/test/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..2f477e4 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional.json @@ -0,0 +1,8 @@ +{ + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } +} \ No newline at end of file diff --git a/tests/results/test_mandatory/00_2default_calculated_variable.json b/tests/results/test_mandatory/00_2default_calculated_variable.json new file mode 100644 index 0000000..4bfbb13 --- /dev/null +++ b/tests/results/test_mandatory/00_2default_calculated_variable.json @@ -0,0 +1,10 @@ +{ + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] +} \ No newline at end of file diff --git a/tests/results/test_mandatory/00_6ip.json b/tests/results/test_mandatory/00_6ip.json new file mode 100644 index 0000000..1c3b929 --- /dev/null +++ b/tests/results/test_mandatory/00_6ip.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" +} \ No newline at end of file diff --git a/tests/results/test_mandatory/00_6network.json b/tests/results/test_mandatory/00_6network.json new file mode 100644 index 0000000..940f017 --- /dev/null +++ b/tests/results/test_mandatory/00_6network.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" +} \ No newline at end of file diff --git a/tests/results/test_mandatory/00_9default_calculation_multi_optional_default.json b/tests/results/test_mandatory/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..7b135d7 --- /dev/null +++ b/tests/results/test_mandatory/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,8 @@ +{ + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] +} \ No newline at end of file diff --git a/tests/results/test_mandatory/01_9choice_variable_optional.json b/tests/results/test_mandatory/01_9choice_variable_optional.json new file mode 100644 index 0000000..dde6293 --- /dev/null +++ b/tests/results/test_mandatory/01_9choice_variable_optional.json @@ -0,0 +1,3 @@ +{ + "variable": "a" +} \ No newline at end of file diff --git a/tests/results/test_mandatory/04_5disabled_calculation_optional_default.json b/tests/results/test_mandatory/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..4cedf57 --- /dev/null +++ b/tests/results/test_mandatory/04_5disabled_calculation_optional_default.json @@ -0,0 +1,7 @@ +{ + "condition": true, + "var1": null, + "var2": null, + "var3": null, + "var4": null +} \ No newline at end of file diff --git a/tests/results/test_mandatory/40_2leadership_calculation_index.json b/tests/results/test_mandatory/40_2leadership_calculation_index.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test_mandatory/40_2leadership_calculation_index.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_mandatory/40_2leadership_calculation_index_2.json b/tests/results/test_mandatory/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test_mandatory/40_2leadership_calculation_index_2.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_mandatory/60_0family_dynamic_variable_optional.json b/tests/results/test_mandatory/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..2f477e4 --- /dev/null +++ b/tests/results/test_mandatory/60_0family_dynamic_variable_optional.json @@ -0,0 +1,8 @@ +{ + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_2default_calculated_variable.json b/tests/results/test_namespace/00_2default_calculated_variable.json new file mode 100644 index 0000000..416a963 --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable.json @@ -0,0 +1,12 @@ +{ + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6ip.json b/tests/results/test_namespace/00_6ip.json new file mode 100644 index 0000000..f970d03 --- /dev/null +++ b/tests/results/test_namespace/00_6ip.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6network.json b/tests/results/test_namespace/00_6network.json new file mode 100644 index 0000000..825329e --- /dev/null +++ b/tests/results/test_namespace/00_6network.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default.json b/tests/results/test_namespace/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..41d2f2c --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/01_9choice_variable_optional.json b/tests/results/test_namespace/01_9choice_variable_optional.json new file mode 100644 index 0000000..504f896 --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "variable": "a" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..15ef077 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default.json @@ -0,0 +1,9 @@ +{ + "rougail": { + "condition": true, + "var1": null, + "var2": null, + "var3": null, + "var4": null + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2.json b/tests/results/test_namespace/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..5a1a54f --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2.json @@ -0,0 +1,18 @@ +{ + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional.json b/tests/results/test_namespace/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..c31f2d3 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/00_2default_calculated_variable.json b/tests/results/test_namespace_mandatory/00_2default_calculated_variable.json new file mode 100644 index 0000000..416a963 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_2default_calculated_variable.json @@ -0,0 +1,12 @@ +{ + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/00_6ip.json b/tests/results/test_namespace_mandatory/00_6ip.json new file mode 100644 index 0000000..f970d03 --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6ip.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/00_6network.json b/tests/results/test_namespace_mandatory/00_6network.json new file mode 100644 index 0000000..825329e --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_6network.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional_default.json b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..41d2f2c --- /dev/null +++ b/tests/results/test_namespace_mandatory/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/01_9choice_variable_optional.json b/tests/results/test_namespace_mandatory/01_9choice_variable_optional.json new file mode 100644 index 0000000..504f896 --- /dev/null +++ b/tests/results/test_namespace_mandatory/01_9choice_variable_optional.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "variable": "a" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional_default.json b/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..15ef077 --- /dev/null +++ b/tests/results/test_namespace_mandatory/04_5disabled_calculation_optional_default.json @@ -0,0 +1,9 @@ +{ + "rougail": { + "condition": true, + "var1": null, + "var2": null, + "var3": null, + "var4": null + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/40_2leadership_calculation_index_2.json b/tests/results/test_namespace_mandatory/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..5a1a54f --- /dev/null +++ b/tests/results/test_namespace_mandatory/40_2leadership_calculation_index_2.json @@ -0,0 +1,18 @@ +{ + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_optional.json b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..c31f2d3 --- /dev/null +++ b/tests/results/test_namespace_mandatory/60_0family_dynamic_variable_optional.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/00_2default_calculated_variable.json b/tests/results/test_namespace_read_write/00_2default_calculated_variable.json new file mode 100644 index 0000000..9c7f6ce --- /dev/null +++ b/tests/results/test_namespace_read_write/00_2default_calculated_variable.json @@ -0,0 +1,6 @@ +{ + "rougail": { + "var1": [], + "var2": [] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/00_6ip.json b/tests/results/test_namespace_read_write/00_6ip.json new file mode 100644 index 0000000..5a4fb5f --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6ip.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "1.1.1.1", + "var2": "1.1.1.1/24", + "var3": "1.1.1.1/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/00_6network.json b/tests/results/test_namespace_read_write/00_6network.json new file mode 100644 index 0000000..6733ee8 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_6network.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "1.1.1.0", + "var2": "1.1.1.0/24", + "var3": "1.1.1.0/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional_default.json b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..8b7fff4 --- /dev/null +++ b/tests/results/test_namespace_read_write/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,9 @@ +{ + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1", + "value" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/01_9choice_variable_optional.json b/tests/results/test_namespace_read_write/01_9choice_variable_optional.json new file mode 100644 index 0000000..0d1442e --- /dev/null +++ b/tests/results/test_namespace_read_write/01_9choice_variable_optional.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "variable": "c" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_optional_default.json b/tests/results/test_namespace_read_write/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..981a54a --- /dev/null +++ b/tests/results/test_namespace_read_write/04_5disabled_calculation_optional_default.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "condition": false, + "var3": null, + "var4": null + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/40_2leadership_calculation_index_2.json b/tests/results/test_namespace_read_write/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..6d40760 --- /dev/null +++ b/tests/results/test_namespace_read_write/40_2leadership_calculation_index_2.json @@ -0,0 +1,18 @@ +{ + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write/60_0family_dynamic_variable_optional.json b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..e0ec1f1 --- /dev/null +++ b/tests/results/test_namespace_read_write/60_0family_dynamic_variable_optional.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "dyna": { + "var": "val" + }, + "dynb": { + "var": "val" + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable.json b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable.json new file mode 100644 index 0000000..416a963 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_2default_calculated_variable.json @@ -0,0 +1,12 @@ +{ + "rougail": { + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/00_6ip.json b/tests/results/test_namespace_read_write_mandatory/00_6ip.json new file mode 100644 index 0000000..f970d03 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6ip.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/00_6network.json b/tests/results/test_namespace_read_write_mandatory/00_6network.json new file mode 100644 index 0000000..825329e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_6network.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional_default.json b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..41d2f2c --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_optional.json b/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_optional.json new file mode 100644 index 0000000..504f896 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/01_9choice_variable_optional.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "variable": "a" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional_default.json b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..2b8f867 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_optional_default.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "condition": true + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index_2.json b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..5a1a54f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/40_2leadership_calculation_index_2.json @@ -0,0 +1,18 @@ +{ + "rougail": { + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_optional.json b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..c31f2d3 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory/60_0family_dynamic_variable_optional.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable.json b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable.json new file mode 100644 index 0000000..e766340 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_2default_calculated_variable.json @@ -0,0 +1,7 @@ +{ + "_errors": [ + "The following variables are mandatory but have no value:", + " - rougail.var1 (a first variable)", + " - rougail.var2 (a second variable)" + ] +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6ip.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6ip.json new file mode 100644 index 0000000..5a4fb5f --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6ip.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "1.1.1.1", + "var2": "1.1.1.1/24", + "var3": "1.1.1.1/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_6network.json b/tests/results/test_namespace_read_write_mandatory_errors/00_6network.json new file mode 100644 index 0000000..6733ee8 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_6network.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "var1": "1.1.1.0", + "var2": "1.1.1.0/24", + "var3": "1.1.1.0/24" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..8b7fff4 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,9 @@ +{ + "rougail": { + "my_variable": "val1", + "my_calculated_variable": [ + "val1", + "value" + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_optional.json new file mode 100644 index 0000000..0d1442e --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/01_9choice_variable_optional.json @@ -0,0 +1,5 @@ +{ + "rougail": { + "variable": "c" + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..981a54a --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json @@ -0,0 +1,7 @@ +{ + "rougail": { + "condition": false, + "var3": null, + "var4": null + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index_2.json b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..6d40760 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/40_2leadership_calculation_index_2.json @@ -0,0 +1,18 @@ +{ + "rougail": { + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] + } +} \ No newline at end of file diff --git a/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..e0ec1f1 --- /dev/null +++ b/tests/results/test_namespace_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json @@ -0,0 +1,10 @@ +{ + "rougail": { + "dyna": { + "var": "val" + }, + "dynb": { + "var": "val" + } + } +} \ No newline at end of file diff --git a/tests/results/test_read_write/00_2default_calculated_variable.json b/tests/results/test_read_write/00_2default_calculated_variable.json new file mode 100644 index 0000000..98418d2 --- /dev/null +++ b/tests/results/test_read_write/00_2default_calculated_variable.json @@ -0,0 +1,4 @@ +{ + "var1": [], + "var2": [] +} \ No newline at end of file diff --git a/tests/results/test_read_write/00_6ip.json b/tests/results/test_read_write/00_6ip.json new file mode 100644 index 0000000..ac26e49 --- /dev/null +++ b/tests/results/test_read_write/00_6ip.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.1", + "var2": "1.1.1.1/24", + "var3": "1.1.1.1/24" +} \ No newline at end of file diff --git a/tests/results/test_read_write/00_6network.json b/tests/results/test_read_write/00_6network.json new file mode 100644 index 0000000..ee34a60 --- /dev/null +++ b/tests/results/test_read_write/00_6network.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.0", + "var2": "1.1.1.0/24", + "var3": "1.1.1.0/24" +} \ No newline at end of file diff --git a/tests/results/test_read_write/00_9default_calculation_multi_optional_default.json b/tests/results/test_read_write/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..afb4757 --- /dev/null +++ b/tests/results/test_read_write/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,7 @@ +{ + "my_variable": "val1", + "my_calculated_variable": [ + "val1", + "value" + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write/01_9choice_variable_optional.json b/tests/results/test_read_write/01_9choice_variable_optional.json new file mode 100644 index 0000000..50b2e15 --- /dev/null +++ b/tests/results/test_read_write/01_9choice_variable_optional.json @@ -0,0 +1,3 @@ +{ + "variable": "c" +} \ No newline at end of file diff --git a/tests/results/test_read_write/04_5disabled_calculation_optional_default.json b/tests/results/test_read_write/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..4eb135b --- /dev/null +++ b/tests/results/test_read_write/04_5disabled_calculation_optional_default.json @@ -0,0 +1,5 @@ +{ + "condition": false, + "var3": null, + "var4": null +} \ No newline at end of file diff --git a/tests/results/test_read_write/40_2leadership_calculation_index.json b/tests/results/test_read_write/40_2leadership_calculation_index.json new file mode 100644 index 0000000..ce11078 --- /dev/null +++ b/tests/results/test_read_write/40_2leadership_calculation_index.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write/40_2leadership_calculation_index_2.json b/tests/results/test_read_write/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..ce11078 --- /dev/null +++ b/tests/results/test_read_write/40_2leadership_calculation_index_2.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write/60_0family_dynamic_variable_optional.json b/tests/results/test_read_write/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..7fd833b --- /dev/null +++ b/tests/results/test_read_write/60_0family_dynamic_variable_optional.json @@ -0,0 +1,8 @@ +{ + "dyna": { + "var": "val" + }, + "dynb": { + "var": "val" + } +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/00_2default_calculated_variable.json b/tests/results/test_read_write_mandatory/00_2default_calculated_variable.json new file mode 100644 index 0000000..4bfbb13 --- /dev/null +++ b/tests/results/test_read_write_mandatory/00_2default_calculated_variable.json @@ -0,0 +1,10 @@ +{ + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/00_6ip.json b/tests/results/test_read_write_mandatory/00_6ip.json new file mode 100644 index 0000000..1c3b929 --- /dev/null +++ b/tests/results/test_read_write_mandatory/00_6ip.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/00_6network.json b/tests/results/test_read_write_mandatory/00_6network.json new file mode 100644 index 0000000..940f017 --- /dev/null +++ b/tests/results/test_read_write_mandatory/00_6network.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/00_9default_calculation_multi_optional_default.json b/tests/results/test_read_write_mandatory/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..7b135d7 --- /dev/null +++ b/tests/results/test_read_write_mandatory/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,8 @@ +{ + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/01_9choice_variable_optional.json b/tests/results/test_read_write_mandatory/01_9choice_variable_optional.json new file mode 100644 index 0000000..dde6293 --- /dev/null +++ b/tests/results/test_read_write_mandatory/01_9choice_variable_optional.json @@ -0,0 +1,3 @@ +{ + "variable": "a" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_optional_default.json b/tests/results/test_read_write_mandatory/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..8a62275 --- /dev/null +++ b/tests/results/test_read_write_mandatory/04_5disabled_calculation_optional_default.json @@ -0,0 +1,3 @@ +{ + "condition": true +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/40_2leadership_calculation_index.json b/tests/results/test_read_write_mandatory/40_2leadership_calculation_index.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test_read_write_mandatory/40_2leadership_calculation_index.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/40_2leadership_calculation_index_2.json b/tests/results/test_read_write_mandatory/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..72c2a3f --- /dev/null +++ b/tests/results/test_read_write_mandatory/40_2leadership_calculation_index_2.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "string1", + "follower1": 1 + }, + { + "leader": "string2", + "follower1": 2 + }, + { + "leader": "string3", + "follower1": 3 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory/60_0family_dynamic_variable_optional.json b/tests/results/test_read_write_mandatory/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..2f477e4 --- /dev/null +++ b/tests/results/test_read_write_mandatory/60_0family_dynamic_variable_optional.json @@ -0,0 +1,8 @@ +{ + "dyna": { + "var": "string1" + }, + "dynb": { + "var": "string1" + } +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/00_2default_calculated_variable.json b/tests/results/test_read_write_mandatory_errors/00_2default_calculated_variable.json new file mode 100644 index 0000000..a1a6d82 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/00_2default_calculated_variable.json @@ -0,0 +1,7 @@ +{ + "_errors": [ + "The following variables are mandatory but have no value:", + " - var1 (a first variable)", + " - var2 (a second variable)" + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/00_6ip.json b/tests/results/test_read_write_mandatory_errors/00_6ip.json new file mode 100644 index 0000000..ac26e49 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/00_6ip.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.1", + "var2": "1.1.1.1/24", + "var3": "1.1.1.1/24" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/00_6network.json b/tests/results/test_read_write_mandatory_errors/00_6network.json new file mode 100644 index 0000000..ee34a60 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/00_6network.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.0", + "var2": "1.1.1.0/24", + "var3": "1.1.1.0/24" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json b/tests/results/test_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json new file mode 100644 index 0000000..afb4757 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/00_9default_calculation_multi_optional_default.json @@ -0,0 +1,7 @@ +{ + "my_variable": "val1", + "my_calculated_variable": [ + "val1", + "value" + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/01_9choice_variable_optional.json b/tests/results/test_read_write_mandatory_errors/01_9choice_variable_optional.json new file mode 100644 index 0000000..50b2e15 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/01_9choice_variable_optional.json @@ -0,0 +1,3 @@ +{ + "variable": "c" +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json b/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json new file mode 100644 index 0000000..4eb135b --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/04_5disabled_calculation_optional_default.json @@ -0,0 +1,5 @@ +{ + "condition": false, + "var3": null, + "var4": null +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index.json b/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index.json new file mode 100644 index 0000000..ce11078 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index_2.json b/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index_2.json new file mode 100644 index 0000000..ce11078 --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/40_2leadership_calculation_index_2.json @@ -0,0 +1,16 @@ +{ + "leader": [ + { + "leader": "a", + "follower1": 0 + }, + { + "leader": "b", + "follower1": 1 + }, + { + "leader": "c", + "follower1": 2 + } + ] +} \ No newline at end of file diff --git a/tests/results/test_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json b/tests/results/test_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json new file mode 100644 index 0000000..7fd833b --- /dev/null +++ b/tests/results/test_read_write_mandatory_errors/60_0family_dynamic_variable_optional.json @@ -0,0 +1,8 @@ +{ + "dyna": { + "var": "val" + }, + "dynb": { + "var": "val" + } +} \ No newline at end of file