From bccea20dedd934e3827f01dd40dcb65797ca4a85 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 28 Sep 2025 15:46:40 +0200 Subject: [PATCH] feat: default value for a calculated variable with an unknown optional variable --- .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../00_2default_calculated_variable/file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 10 ++++++++++ .../makedict/mandatories.json | 10 ++++++++++ tests/results/test/00_6ip/errors/all.json | 4 ++++ .../results/test/00_6ip/errors/mandatories.json | 4 ++++ tests/results/test/00_6ip/file/all.env | 3 +++ tests/results/test/00_6ip/file/all_exclude.env | 3 +++ tests/results/test/00_6ip/file/mandatories.env | 1 + tests/results/test/00_6ip/makedict/all.json | 5 +++++ .../test/00_6ip/makedict/mandatories.json | 5 +++++ tests/results/test/00_6network/errors/all.json | 4 ++++ .../test/00_6network/errors/mandatories.json | 4 ++++ tests/results/test/00_6network/file/all.env | 3 +++ .../test/00_6network/file/all_exclude.env | 3 +++ .../test/00_6network/file/mandatories.env | 1 + tests/results/test/00_6network/makedict/all.json | 5 +++++ .../test/00_6network/makedict/mandatories.json | 5 +++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 8 ++++++++ .../makedict/mandatories.json | 7 +++++++ .../01_9choice_variable_optional/errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../01_9choice_variable_optional/file/all.env | 1 + .../file/all_exclude.env | 1 + .../file/mandatories.env | 1 + .../makedict/all.json | 3 +++ .../makedict/mandatories.json | 3 +++ .../errors/all.json | 8 ++++++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 4 ++++ .../file/all_exclude.env | 4 ++++ .../file/mandatories.env | 1 + .../makedict/all.json | 7 +++++++ .../makedict/mandatories.json | 7 +++++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 16 ++++++++++++++++ .../makedict/mandatories.json | 16 ++++++++++++++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 16 ++++++++++++++++ .../makedict/mandatories.json | 16 ++++++++++++++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 4 ++++ .../makedict/mandatories.json | 4 ++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../00_2default_calculated_variable/file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 10 ++++++++++ .../makedict/mandatories.json | 10 ++++++++++ .../test_namespace/00_6ip/errors/all.json | 4 ++++ .../00_6ip/errors/mandatories.json | 4 ++++ tests/results/test_namespace/00_6ip/file/all.env | 3 +++ .../test_namespace/00_6ip/file/all_exclude.env | 3 +++ .../test_namespace/00_6ip/file/mandatories.env | 1 + .../test_namespace/00_6ip/makedict/all.json | 5 +++++ .../00_6ip/makedict/mandatories.json | 5 +++++ .../test_namespace/00_6network/errors/all.json | 4 ++++ .../00_6network/errors/mandatories.json | 4 ++++ .../test_namespace/00_6network/file/all.env | 3 +++ .../00_6network/file/all_exclude.env | 3 +++ .../00_6network/file/mandatories.env | 1 + .../test_namespace/00_6network/makedict/all.json | 5 +++++ .../00_6network/makedict/mandatories.json | 5 +++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 8 ++++++++ .../makedict/mandatories.json | 7 +++++++ .../01_9choice_variable_optional/errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../01_9choice_variable_optional/file/all.env | 1 + .../file/all_exclude.env | 1 + .../file/mandatories.env | 1 + .../makedict/all.json | 3 +++ .../makedict/mandatories.json | 3 +++ .../errors/all.json | 8 ++++++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 4 ++++ .../file/all_exclude.env | 4 ++++ .../file/mandatories.env | 1 + .../makedict/all.json | 7 +++++++ .../makedict/mandatories.json | 7 +++++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 16 ++++++++++++++++ .../makedict/mandatories.json | 16 ++++++++++++++++ .../errors/all.json | 4 ++++ .../errors/mandatories.json | 4 ++++ .../file/all.env | 2 ++ .../file/all_exclude.env | 2 ++ .../file/mandatories.env | 1 + .../makedict/all.json | 4 ++++ .../makedict/mandatories.json | 4 ++++ 119 files changed, 503 insertions(+) create mode 100644 tests/results/test/00_2default_calculated_variable/errors/all.json create mode 100644 tests/results/test/00_2default_calculated_variable/errors/mandatories.json create mode 100644 tests/results/test/00_2default_calculated_variable/file/all.env create mode 100644 tests/results/test/00_2default_calculated_variable/file/all_exclude.env create mode 100644 tests/results/test/00_2default_calculated_variable/file/mandatories.env create mode 100644 tests/results/test/00_2default_calculated_variable/makedict/all.json create mode 100644 tests/results/test/00_2default_calculated_variable/makedict/mandatories.json create mode 100644 tests/results/test/00_6ip/errors/all.json create mode 100644 tests/results/test/00_6ip/errors/mandatories.json create mode 100644 tests/results/test/00_6ip/file/all.env create mode 100644 tests/results/test/00_6ip/file/all_exclude.env create mode 100644 tests/results/test/00_6ip/file/mandatories.env create mode 100644 tests/results/test/00_6ip/makedict/all.json create mode 100644 tests/results/test/00_6ip/makedict/mandatories.json create mode 100644 tests/results/test/00_6network/errors/all.json create mode 100644 tests/results/test/00_6network/errors/mandatories.json create mode 100644 tests/results/test/00_6network/file/all.env create mode 100644 tests/results/test/00_6network/file/all_exclude.env create mode 100644 tests/results/test/00_6network/file/mandatories.env create mode 100644 tests/results/test/00_6network/makedict/all.json create mode 100644 tests/results/test/00_6network/makedict/mandatories.json create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/errors/all.json create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/errors/mandatories.json create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/file/all.env create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/file/all_exclude.env create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/file/mandatories.env create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/makedict/all.json create mode 100644 tests/results/test/00_9default_calculation_multi_optional_default/makedict/mandatories.json create mode 100644 tests/results/test/01_9choice_variable_optional/errors/all.json create mode 100644 tests/results/test/01_9choice_variable_optional/errors/mandatories.json create mode 100644 tests/results/test/01_9choice_variable_optional/file/all.env create mode 100644 tests/results/test/01_9choice_variable_optional/file/all_exclude.env create mode 100644 tests/results/test/01_9choice_variable_optional/file/mandatories.env create mode 100644 tests/results/test/01_9choice_variable_optional/makedict/all.json create mode 100644 tests/results/test/01_9choice_variable_optional/makedict/mandatories.json create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/errors/all.json create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/errors/mandatories.json create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/file/all.env create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/file/all_exclude.env create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/file/mandatories.env create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/makedict/all.json create mode 100644 tests/results/test/04_5disabled_calculation_optional_default/makedict/mandatories.json create mode 100644 tests/results/test/40_2leadership_calculation_index/errors/all.json create mode 100644 tests/results/test/40_2leadership_calculation_index/errors/mandatories.json create mode 100644 tests/results/test/40_2leadership_calculation_index/file/all.env create mode 100644 tests/results/test/40_2leadership_calculation_index/file/all_exclude.env create mode 100644 tests/results/test/40_2leadership_calculation_index/file/mandatories.env create mode 100644 tests/results/test/40_2leadership_calculation_index/makedict/all.json create mode 100644 tests/results/test/40_2leadership_calculation_index/makedict/mandatories.json create mode 100644 tests/results/test/40_2leadership_calculation_index_2/errors/all.json create mode 100644 tests/results/test/40_2leadership_calculation_index_2/errors/mandatories.json create mode 100644 tests/results/test/40_2leadership_calculation_index_2/file/all.env create mode 100644 tests/results/test/40_2leadership_calculation_index_2/file/all_exclude.env create mode 100644 tests/results/test/40_2leadership_calculation_index_2/file/mandatories.env create mode 100644 tests/results/test/40_2leadership_calculation_index_2/makedict/all.json create mode 100644 tests/results/test/40_2leadership_calculation_index_2/makedict/mandatories.json create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/errors/all.json create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/errors/mandatories.json create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/file/all.env create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/file/all_exclude.env create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/file/mandatories.env create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/makedict/all.json create mode 100644 tests/results/test/60_0family_dynamic_variable_optional/makedict/mandatories.json create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/errors/all.json create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/errors/mandatories.json create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/file/all.env create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/file/all_exclude.env create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/file/mandatories.env create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/makedict/all.json create mode 100644 tests/results/test_namespace/00_2default_calculated_variable/makedict/mandatories.json create mode 100644 tests/results/test_namespace/00_6ip/errors/all.json create mode 100644 tests/results/test_namespace/00_6ip/errors/mandatories.json create mode 100644 tests/results/test_namespace/00_6ip/file/all.env create mode 100644 tests/results/test_namespace/00_6ip/file/all_exclude.env create mode 100644 tests/results/test_namespace/00_6ip/file/mandatories.env create mode 100644 tests/results/test_namespace/00_6ip/makedict/all.json create mode 100644 tests/results/test_namespace/00_6ip/makedict/mandatories.json create mode 100644 tests/results/test_namespace/00_6network/errors/all.json create mode 100644 tests/results/test_namespace/00_6network/errors/mandatories.json create mode 100644 tests/results/test_namespace/00_6network/file/all.env create mode 100644 tests/results/test_namespace/00_6network/file/all_exclude.env create mode 100644 tests/results/test_namespace/00_6network/file/mandatories.env create mode 100644 tests/results/test_namespace/00_6network/makedict/all.json create mode 100644 tests/results/test_namespace/00_6network/makedict/mandatories.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/all.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/mandatories.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all.env create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all_exclude.env create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/mandatories.env create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/all.json create mode 100644 tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/mandatories.json create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/errors/all.json create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/errors/mandatories.json create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/file/all.env create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/file/all_exclude.env create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/file/mandatories.env create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/makedict/all.json create mode 100644 tests/results/test_namespace/01_9choice_variable_optional/makedict/mandatories.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/mandatories.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all.env create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all_exclude.env create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/file/mandatories.env create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/all.json create mode 100644 tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/mandatories.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/errors/all.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/errors/mandatories.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/file/all.env create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/file/all_exclude.env create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/file/mandatories.env create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/all.json create mode 100644 tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/mandatories.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/all.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/mandatories.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all.env create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all_exclude.env create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/file/mandatories.env create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/all.json create mode 100644 tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/mandatories.json diff --git a/tests/results/test/00_2default_calculated_variable/errors/all.json b/tests/results/test/00_2default_calculated_variable/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_2default_calculated_variable/errors/mandatories.json b/tests/results/test/00_2default_calculated_variable/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_2default_calculated_variable/file/all.env b/tests/results/test/00_2default_calculated_variable/file/all.env new file mode 100644 index 0000000..f76c770 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_VAR1="domain1.lan,domain2.lan" +ROUGAIL_VAR2="domain1.lan,domain2.lan" diff --git a/tests/results/test/00_2default_calculated_variable/file/all_exclude.env b/tests/results/test/00_2default_calculated_variable/file/all_exclude.env new file mode 100644 index 0000000..f76c770 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_VAR1="domain1.lan,domain2.lan" +ROUGAIL_VAR2="domain1.lan,domain2.lan" diff --git a/tests/results/test/00_2default_calculated_variable/file/mandatories.env b/tests/results/test/00_2default_calculated_variable/file/mandatories.env new file mode 100644 index 0000000..a0ec662 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VAR1="domain1.lan,domain2.lan" diff --git a/tests/results/test/00_2default_calculated_variable/makedict/all.json b/tests/results/test/00_2default_calculated_variable/makedict/all.json new file mode 100644 index 0000000..8f6d223 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/makedict/all.json @@ -0,0 +1,10 @@ +{ + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] +} diff --git a/tests/results/test/00_2default_calculated_variable/makedict/mandatories.json b/tests/results/test/00_2default_calculated_variable/makedict/mandatories.json new file mode 100644 index 0000000..8f6d223 --- /dev/null +++ b/tests/results/test/00_2default_calculated_variable/makedict/mandatories.json @@ -0,0 +1,10 @@ +{ + "var1": [ + "domain1.lan", + "domain2.lan" + ], + "var2": [ + "domain1.lan", + "domain2.lan" + ] +} diff --git a/tests/results/test/00_6ip/errors/all.json b/tests/results/test/00_6ip/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_6ip/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_6ip/errors/mandatories.json b/tests/results/test/00_6ip/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_6ip/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_6ip/file/all.env b/tests/results/test/00_6ip/file/all.env new file mode 100644 index 0000000..d79f197 --- /dev/null +++ b/tests/results/test/00_6ip/file/all.env @@ -0,0 +1,3 @@ +ROUGAIL_VAR1="192.168.1.6" +ROUGAIL_VAR2="192.168.1.6/24" +ROUGAIL_VAR3="192.168.1.6/24" diff --git a/tests/results/test/00_6ip/file/all_exclude.env b/tests/results/test/00_6ip/file/all_exclude.env new file mode 100644 index 0000000..d79f197 --- /dev/null +++ b/tests/results/test/00_6ip/file/all_exclude.env @@ -0,0 +1,3 @@ +ROUGAIL_VAR1="192.168.1.6" +ROUGAIL_VAR2="192.168.1.6/24" +ROUGAIL_VAR3="192.168.1.6/24" diff --git a/tests/results/test/00_6ip/file/mandatories.env b/tests/results/test/00_6ip/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/00_6ip/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/00_6ip/makedict/all.json b/tests/results/test/00_6ip/makedict/all.json new file mode 100644 index 0000000..07900fb --- /dev/null +++ b/tests/results/test/00_6ip/makedict/all.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.6", + "var2": "192.168.1.6/24", + "var3": "192.168.1.6/24" +} diff --git a/tests/results/test/00_6ip/makedict/mandatories.json b/tests/results/test/00_6ip/makedict/mandatories.json new file mode 100644 index 0000000..8e455ee --- /dev/null +++ b/tests/results/test/00_6ip/makedict/mandatories.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.1", + "var2": "1.1.1.1/24", + "var3": "1.1.1.1/24" +} diff --git a/tests/results/test/00_6network/errors/all.json b/tests/results/test/00_6network/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_6network/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_6network/errors/mandatories.json b/tests/results/test/00_6network/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_6network/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_6network/file/all.env b/tests/results/test/00_6network/file/all.env new file mode 100644 index 0000000..0d5ce6d --- /dev/null +++ b/tests/results/test/00_6network/file/all.env @@ -0,0 +1,3 @@ +ROUGAIL_VAR1="192.168.1.0" +ROUGAIL_VAR2="192.168.1.6/32" +ROUGAIL_VAR3="192.168.1.6/32" diff --git a/tests/results/test/00_6network/file/all_exclude.env b/tests/results/test/00_6network/file/all_exclude.env new file mode 100644 index 0000000..0d5ce6d --- /dev/null +++ b/tests/results/test/00_6network/file/all_exclude.env @@ -0,0 +1,3 @@ +ROUGAIL_VAR1="192.168.1.0" +ROUGAIL_VAR2="192.168.1.6/32" +ROUGAIL_VAR3="192.168.1.6/32" diff --git a/tests/results/test/00_6network/file/mandatories.env b/tests/results/test/00_6network/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/00_6network/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/00_6network/makedict/all.json b/tests/results/test/00_6network/makedict/all.json new file mode 100644 index 0000000..71bf570 --- /dev/null +++ b/tests/results/test/00_6network/makedict/all.json @@ -0,0 +1,5 @@ +{ + "var1": "192.168.1.0", + "var2": "192.168.1.6/32", + "var3": "192.168.1.6/32" +} diff --git a/tests/results/test/00_6network/makedict/mandatories.json b/tests/results/test/00_6network/makedict/mandatories.json new file mode 100644 index 0000000..c085a2a --- /dev/null +++ b/tests/results/test/00_6network/makedict/mandatories.json @@ -0,0 +1,5 @@ +{ + "var1": "1.1.1.0", + "var2": "1.1.1.0/24", + "var3": "1.1.1.0/24" +} diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/errors/all.json b/tests/results/test/00_9default_calculation_multi_optional_default/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/errors/mandatories.json b/tests/results/test/00_9default_calculation_multi_optional_default/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/file/all.env b/tests/results/test/00_9default_calculation_multi_optional_default/file/all.env new file mode 100644 index 0000000..7795806 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_MY_VARIABLE="string1" +ROUGAIL_MY_CALCULATED_VARIABLE="string1,string2,string3" diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/file/all_exclude.env b/tests/results/test/00_9default_calculation_multi_optional_default/file/all_exclude.env new file mode 100644 index 0000000..7795806 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_MY_VARIABLE="string1" +ROUGAIL_MY_CALCULATED_VARIABLE="string1,string2,string3" diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/file/mandatories.env b/tests/results/test/00_9default_calculation_multi_optional_default/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/makedict/all.json b/tests/results/test/00_9default_calculation_multi_optional_default/makedict/all.json new file mode 100644 index 0000000..9b80712 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/makedict/all.json @@ -0,0 +1,8 @@ +{ + "my_variable": "string1", + "my_calculated_variable": [ + "string1", + "string2", + "string3" + ] +} diff --git a/tests/results/test/00_9default_calculation_multi_optional_default/makedict/mandatories.json b/tests/results/test/00_9default_calculation_multi_optional_default/makedict/mandatories.json new file mode 100644 index 0000000..4787625 --- /dev/null +++ b/tests/results/test/00_9default_calculation_multi_optional_default/makedict/mandatories.json @@ -0,0 +1,7 @@ +{ + "my_variable": "val1", + "my_calculated_variable": [ + "val1", + "value" + ] +} diff --git a/tests/results/test/01_9choice_variable_optional/errors/all.json b/tests/results/test/01_9choice_variable_optional/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/01_9choice_variable_optional/errors/mandatories.json b/tests/results/test/01_9choice_variable_optional/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/01_9choice_variable_optional/file/all.env b/tests/results/test/01_9choice_variable_optional/file/all.env new file mode 100644 index 0000000..4504f15 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/file/all.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="a" diff --git a/tests/results/test/01_9choice_variable_optional/file/all_exclude.env b/tests/results/test/01_9choice_variable_optional/file/all_exclude.env new file mode 100644 index 0000000..4504f15 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/file/all_exclude.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="a" diff --git a/tests/results/test/01_9choice_variable_optional/file/mandatories.env b/tests/results/test/01_9choice_variable_optional/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/01_9choice_variable_optional/makedict/all.json b/tests/results/test/01_9choice_variable_optional/makedict/all.json new file mode 100644 index 0000000..7769845 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/makedict/all.json @@ -0,0 +1,3 @@ +{ + "variable": "a" +} diff --git a/tests/results/test/01_9choice_variable_optional/makedict/mandatories.json b/tests/results/test/01_9choice_variable_optional/makedict/mandatories.json new file mode 100644 index 0000000..9a23f85 --- /dev/null +++ b/tests/results/test/01_9choice_variable_optional/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "variable": "c" +} diff --git a/tests/results/test/04_5disabled_calculation_optional_default/errors/all.json b/tests/results/test/04_5disabled_calculation_optional_default/errors/all.json new file mode 100644 index 0000000..0b6b1fb --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/errors/all.json @@ -0,0 +1,8 @@ +{ + "errors": [], + "warnings": [ + "variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable", + "variable \"var2\" (a first variable) is hidden, it will be ignored when loading from environment variable", + "variable \"var3\" (a second variable) is hidden, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_optional_default/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_optional_default/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_optional_default/file/all.env b/tests/results/test/04_5disabled_calculation_optional_default/file/all.env new file mode 100644 index 0000000..8bb0ca0 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/file/all.env @@ -0,0 +1,4 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VAR1="string1" +ROUGAIL_VAR2="string1" +ROUGAIL_VAR3="string1" diff --git a/tests/results/test/04_5disabled_calculation_optional_default/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_optional_default/file/all_exclude.env new file mode 100644 index 0000000..8bb0ca0 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/file/all_exclude.env @@ -0,0 +1,4 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VAR1="string1" +ROUGAIL_VAR2="string1" +ROUGAIL_VAR3="string1" diff --git a/tests/results/test/04_5disabled_calculation_optional_default/file/mandatories.env b/tests/results/test/04_5disabled_calculation_optional_default/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/04_5disabled_calculation_optional_default/makedict/all.json b/tests/results/test/04_5disabled_calculation_optional_default/makedict/all.json new file mode 100644 index 0000000..e6a0694 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/makedict/all.json @@ -0,0 +1,7 @@ +{ + "condition": true, + "var1": null, + "var2": null, + "var3": null, + "var4": null +} diff --git a/tests/results/test/04_5disabled_calculation_optional_default/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_optional_default/makedict/mandatories.json new file mode 100644 index 0000000..c58e015 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_optional_default/makedict/mandatories.json @@ -0,0 +1,7 @@ +{ + "condition": false, + "var1": null, + "var2": null, + "var3": null, + "var4": null +} diff --git a/tests/results/test/40_2leadership_calculation_index/errors/all.json b/tests/results/test/40_2leadership_calculation_index/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index/errors/mandatories.json b/tests/results/test/40_2leadership_calculation_index/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index/file/all.env b/tests/results/test/40_2leadership_calculation_index/file/all.env new file mode 100644 index 0000000..f5f6583 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_LEADER.LEADER="string1,string2,string3" +ROUGAIL_LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test/40_2leadership_calculation_index/file/all_exclude.env b/tests/results/test/40_2leadership_calculation_index/file/all_exclude.env new file mode 100644 index 0000000..f5f6583 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_LEADER.LEADER="string1,string2,string3" +ROUGAIL_LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test/40_2leadership_calculation_index/file/mandatories.env b/tests/results/test/40_2leadership_calculation_index/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/40_2leadership_calculation_index/makedict/all.json b/tests/results/test/40_2leadership_calculation_index/makedict/all.json new file mode 100644 index 0000000..5016089 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/makedict/all.json @@ -0,0 +1,16 @@ +{ + "leader.leader": [ + { + "leader.leader": "string1", + "leader.follower1": 1 + }, + { + "leader.leader": "string2", + "leader.follower1": 2 + }, + { + "leader.leader": "string3", + "leader.follower1": 3 + } + ] +} diff --git a/tests/results/test/40_2leadership_calculation_index/makedict/mandatories.json b/tests/results/test/40_2leadership_calculation_index/makedict/mandatories.json new file mode 100644 index 0000000..2b8de27 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index/makedict/mandatories.json @@ -0,0 +1,16 @@ +{ + "leader.leader": [ + { + "leader.leader": "a", + "leader.follower1": 0 + }, + { + "leader.leader": "b", + "leader.follower1": 1 + }, + { + "leader.leader": "c", + "leader.follower1": 2 + } + ] +} diff --git a/tests/results/test/40_2leadership_calculation_index_2/errors/all.json b/tests/results/test/40_2leadership_calculation_index_2/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index_2/errors/mandatories.json b/tests/results/test/40_2leadership_calculation_index_2/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/40_2leadership_calculation_index_2/file/all.env b/tests/results/test/40_2leadership_calculation_index_2/file/all.env new file mode 100644 index 0000000..f5f6583 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_LEADER.LEADER="string1,string2,string3" +ROUGAIL_LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test/40_2leadership_calculation_index_2/file/all_exclude.env b/tests/results/test/40_2leadership_calculation_index_2/file/all_exclude.env new file mode 100644 index 0000000..f5f6583 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_LEADER.LEADER="string1,string2,string3" +ROUGAIL_LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test/40_2leadership_calculation_index_2/file/mandatories.env b/tests/results/test/40_2leadership_calculation_index_2/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/40_2leadership_calculation_index_2/makedict/all.json b/tests/results/test/40_2leadership_calculation_index_2/makedict/all.json new file mode 100644 index 0000000..5016089 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/makedict/all.json @@ -0,0 +1,16 @@ +{ + "leader.leader": [ + { + "leader.leader": "string1", + "leader.follower1": 1 + }, + { + "leader.leader": "string2", + "leader.follower1": 2 + }, + { + "leader.leader": "string3", + "leader.follower1": 3 + } + ] +} diff --git a/tests/results/test/40_2leadership_calculation_index_2/makedict/mandatories.json b/tests/results/test/40_2leadership_calculation_index_2/makedict/mandatories.json new file mode 100644 index 0000000..2b8de27 --- /dev/null +++ b/tests/results/test/40_2leadership_calculation_index_2/makedict/mandatories.json @@ -0,0 +1,16 @@ +{ + "leader.leader": [ + { + "leader.leader": "a", + "leader.follower1": 0 + }, + { + "leader.leader": "b", + "leader.follower1": 1 + }, + { + "leader.leader": "c", + "leader.follower1": 2 + } + ] +} diff --git a/tests/results/test/60_0family_dynamic_variable_optional/errors/all.json b/tests/results/test/60_0family_dynamic_variable_optional/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/60_0family_dynamic_variable_optional/errors/mandatories.json b/tests/results/test/60_0family_dynamic_variable_optional/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/60_0family_dynamic_variable_optional/file/all.env b/tests/results/test/60_0family_dynamic_variable_optional/file/all.env new file mode 100644 index 0000000..1d919e3 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_DYNA.VAR="string1" +ROUGAIL_DYNB.VAR="string1" diff --git a/tests/results/test/60_0family_dynamic_variable_optional/file/all_exclude.env b/tests/results/test/60_0family_dynamic_variable_optional/file/all_exclude.env new file mode 100644 index 0000000..1d919e3 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_DYNA.VAR="string1" +ROUGAIL_DYNB.VAR="string1" diff --git a/tests/results/test/60_0family_dynamic_variable_optional/file/mandatories.env b/tests/results/test/60_0family_dynamic_variable_optional/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test/60_0family_dynamic_variable_optional/makedict/all.json b/tests/results/test/60_0family_dynamic_variable_optional/makedict/all.json new file mode 100644 index 0000000..4289a88 --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/makedict/all.json @@ -0,0 +1,4 @@ +{ + "dyna.var": "string1", + "dynb.var": "string1" +} diff --git a/tests/results/test/60_0family_dynamic_variable_optional/makedict/mandatories.json b/tests/results/test/60_0family_dynamic_variable_optional/makedict/mandatories.json new file mode 100644 index 0000000..6e43abb --- /dev/null +++ b/tests/results/test/60_0family_dynamic_variable_optional/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "dyna.var": "val", + "dynb.var": "val" +} diff --git a/tests/results/test_namespace/00_2default_calculated_variable/errors/all.json b/tests/results/test_namespace/00_2default_calculated_variable/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_2default_calculated_variable/errors/mandatories.json b/tests/results/test_namespace/00_2default_calculated_variable/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_2default_calculated_variable/file/all.env b/tests/results/test_namespace/00_2default_calculated_variable/file/all.env new file mode 100644 index 0000000..665878a --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.VAR1="domain1.lan,domain2.lan" +ROUGAIL.VAR2="domain1.lan,domain2.lan" diff --git a/tests/results/test_namespace/00_2default_calculated_variable/file/all_exclude.env b/tests/results/test_namespace/00_2default_calculated_variable/file/all_exclude.env new file mode 100644 index 0000000..665878a --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.VAR1="domain1.lan,domain2.lan" +ROUGAIL.VAR2="domain1.lan,domain2.lan" diff --git a/tests/results/test_namespace/00_2default_calculated_variable/file/mandatories.env b/tests/results/test_namespace/00_2default_calculated_variable/file/mandatories.env new file mode 100644 index 0000000..407237d --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VAR1="domain1.lan,domain2.lan" diff --git a/tests/results/test_namespace/00_2default_calculated_variable/makedict/all.json b/tests/results/test_namespace/00_2default_calculated_variable/makedict/all.json new file mode 100644 index 0000000..243ff25 --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/makedict/all.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": [ + "domain1.lan", + "domain2.lan" + ], + "rougail.var2": [ + "domain1.lan", + "domain2.lan" + ] +} diff --git a/tests/results/test_namespace/00_2default_calculated_variable/makedict/mandatories.json b/tests/results/test_namespace/00_2default_calculated_variable/makedict/mandatories.json new file mode 100644 index 0000000..243ff25 --- /dev/null +++ b/tests/results/test_namespace/00_2default_calculated_variable/makedict/mandatories.json @@ -0,0 +1,10 @@ +{ + "rougail.var1": [ + "domain1.lan", + "domain2.lan" + ], + "rougail.var2": [ + "domain1.lan", + "domain2.lan" + ] +} diff --git a/tests/results/test_namespace/00_6ip/errors/all.json b/tests/results/test_namespace/00_6ip/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_6ip/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6ip/errors/mandatories.json b/tests/results/test_namespace/00_6ip/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_6ip/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6ip/file/all.env b/tests/results/test_namespace/00_6ip/file/all.env new file mode 100644 index 0000000..b3347cb --- /dev/null +++ b/tests/results/test_namespace/00_6ip/file/all.env @@ -0,0 +1,3 @@ +ROUGAIL.VAR1="192.168.1.6" +ROUGAIL.VAR2="192.168.1.6/24" +ROUGAIL.VAR3="192.168.1.6/24" diff --git a/tests/results/test_namespace/00_6ip/file/all_exclude.env b/tests/results/test_namespace/00_6ip/file/all_exclude.env new file mode 100644 index 0000000..b3347cb --- /dev/null +++ b/tests/results/test_namespace/00_6ip/file/all_exclude.env @@ -0,0 +1,3 @@ +ROUGAIL.VAR1="192.168.1.6" +ROUGAIL.VAR2="192.168.1.6/24" +ROUGAIL.VAR3="192.168.1.6/24" diff --git a/tests/results/test_namespace/00_6ip/file/mandatories.env b/tests/results/test_namespace/00_6ip/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/00_6ip/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/00_6ip/makedict/all.json b/tests/results/test_namespace/00_6ip/makedict/all.json new file mode 100644 index 0000000..562578b --- /dev/null +++ b/tests/results/test_namespace/00_6ip/makedict/all.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "192.168.1.6", + "rougail.var2": "192.168.1.6/24", + "rougail.var3": "192.168.1.6/24" +} diff --git a/tests/results/test_namespace/00_6ip/makedict/mandatories.json b/tests/results/test_namespace/00_6ip/makedict/mandatories.json new file mode 100644 index 0000000..7a572ad --- /dev/null +++ b/tests/results/test_namespace/00_6ip/makedict/mandatories.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "1.1.1.1", + "rougail.var2": "1.1.1.1/24", + "rougail.var3": "1.1.1.1/24" +} diff --git a/tests/results/test_namespace/00_6network/errors/all.json b/tests/results/test_namespace/00_6network/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_6network/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6network/errors/mandatories.json b/tests/results/test_namespace/00_6network/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_6network/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_6network/file/all.env b/tests/results/test_namespace/00_6network/file/all.env new file mode 100644 index 0000000..5e9861b --- /dev/null +++ b/tests/results/test_namespace/00_6network/file/all.env @@ -0,0 +1,3 @@ +ROUGAIL.VAR1="192.168.1.0" +ROUGAIL.VAR2="192.168.1.6/32" +ROUGAIL.VAR3="192.168.1.6/32" diff --git a/tests/results/test_namespace/00_6network/file/all_exclude.env b/tests/results/test_namespace/00_6network/file/all_exclude.env new file mode 100644 index 0000000..5e9861b --- /dev/null +++ b/tests/results/test_namespace/00_6network/file/all_exclude.env @@ -0,0 +1,3 @@ +ROUGAIL.VAR1="192.168.1.0" +ROUGAIL.VAR2="192.168.1.6/32" +ROUGAIL.VAR3="192.168.1.6/32" diff --git a/tests/results/test_namespace/00_6network/file/mandatories.env b/tests/results/test_namespace/00_6network/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/00_6network/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/00_6network/makedict/all.json b/tests/results/test_namespace/00_6network/makedict/all.json new file mode 100644 index 0000000..8e48ffa --- /dev/null +++ b/tests/results/test_namespace/00_6network/makedict/all.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "192.168.1.0", + "rougail.var2": "192.168.1.6/32", + "rougail.var3": "192.168.1.6/32" +} diff --git a/tests/results/test_namespace/00_6network/makedict/mandatories.json b/tests/results/test_namespace/00_6network/makedict/mandatories.json new file mode 100644 index 0000000..891a6f9 --- /dev/null +++ b/tests/results/test_namespace/00_6network/makedict/mandatories.json @@ -0,0 +1,5 @@ +{ + "rougail.var1": "1.1.1.0", + "rougail.var2": "1.1.1.0/24", + "rougail.var3": "1.1.1.0/24" +} diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/all.json b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/mandatories.json b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all.env b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all.env new file mode 100644 index 0000000..e0b04e9 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.MY_VARIABLE="string1" +ROUGAIL.MY_CALCULATED_VARIABLE="string1,string2,string3" diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all_exclude.env b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all_exclude.env new file mode 100644 index 0000000..e0b04e9 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.MY_VARIABLE="string1" +ROUGAIL.MY_CALCULATED_VARIABLE="string1,string2,string3" diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/mandatories.env b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/all.json b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/all.json new file mode 100644 index 0000000..18bba3c --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/all.json @@ -0,0 +1,8 @@ +{ + "rougail.my_variable": "string1", + "rougail.my_calculated_variable": [ + "string1", + "string2", + "string3" + ] +} diff --git a/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/mandatories.json b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/mandatories.json new file mode 100644 index 0000000..d22eb01 --- /dev/null +++ b/tests/results/test_namespace/00_9default_calculation_multi_optional_default/makedict/mandatories.json @@ -0,0 +1,7 @@ +{ + "rougail.my_variable": "val1", + "rougail.my_calculated_variable": [ + "val1", + "value" + ] +} diff --git a/tests/results/test_namespace/01_9choice_variable_optional/errors/all.json b/tests/results/test_namespace/01_9choice_variable_optional/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/01_9choice_variable_optional/errors/mandatories.json b/tests/results/test_namespace/01_9choice_variable_optional/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/01_9choice_variable_optional/file/all.env b/tests/results/test_namespace/01_9choice_variable_optional/file/all.env new file mode 100644 index 0000000..c6b6133 --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/file/all.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="a" diff --git a/tests/results/test_namespace/01_9choice_variable_optional/file/all_exclude.env b/tests/results/test_namespace/01_9choice_variable_optional/file/all_exclude.env new file mode 100644 index 0000000..c6b6133 --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/file/all_exclude.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="a" diff --git a/tests/results/test_namespace/01_9choice_variable_optional/file/mandatories.env b/tests/results/test_namespace/01_9choice_variable_optional/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/01_9choice_variable_optional/makedict/all.json b/tests/results/test_namespace/01_9choice_variable_optional/makedict/all.json new file mode 100644 index 0000000..d9da1ce --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "a" +} diff --git a/tests/results/test_namespace/01_9choice_variable_optional/makedict/mandatories.json b/tests/results/test_namespace/01_9choice_variable_optional/makedict/mandatories.json new file mode 100644 index 0000000..6f3783e --- /dev/null +++ b/tests/results/test_namespace/01_9choice_variable_optional/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "c" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json new file mode 100644 index 0000000..2cbda34 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/all.json @@ -0,0 +1,8 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.var1\" (a first variable) is hidden, it will be ignored when loading from environment variable", + "variable \"rougail.var2\" (a first variable) is hidden, it will be ignored when loading from environment variable", + "variable \"rougail.var3\" (a second variable) is hidden, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all.env new file mode 100644 index 0000000..69c898e --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all.env @@ -0,0 +1,4 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VAR1="string1" +ROUGAIL.VAR2="string1" +ROUGAIL.VAR3="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all_exclude.env new file mode 100644 index 0000000..69c898e --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/all_exclude.env @@ -0,0 +1,4 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VAR1="string1" +ROUGAIL.VAR2="string1" +ROUGAIL.VAR3="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/all.json new file mode 100644 index 0000000..7986869 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/all.json @@ -0,0 +1,7 @@ +{ + "rougail.condition": true, + "rougail.var1": null, + "rougail.var2": null, + "rougail.var3": null, + "rougail.var4": null +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/mandatories.json new file mode 100644 index 0000000..b24f695 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_optional_default/makedict/mandatories.json @@ -0,0 +1,7 @@ +{ + "rougail.condition": false, + "rougail.var1": null, + "rougail.var2": null, + "rougail.var3": null, + "rougail.var4": null +} diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/all.json b/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/mandatories.json b/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all.env b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all.env new file mode 100644 index 0000000..51475c8 --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.LEADER.LEADER="string1,string2,string3" +ROUGAIL.LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all_exclude.env b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all_exclude.env new file mode 100644 index 0000000..51475c8 --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.LEADER.LEADER="string1,string2,string3" +ROUGAIL.LEADER.FOLLOWER1="1,2,3" diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/file/mandatories.env b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/all.json b/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/all.json new file mode 100644 index 0000000..3da001d --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/all.json @@ -0,0 +1,16 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "string1", + "rougail.leader.follower1": 1 + }, + { + "rougail.leader.leader": "string2", + "rougail.leader.follower1": 2 + }, + { + "rougail.leader.leader": "string3", + "rougail.leader.follower1": 3 + } + ] +} diff --git a/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/mandatories.json b/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/mandatories.json new file mode 100644 index 0000000..33b6cf4 --- /dev/null +++ b/tests/results/test_namespace/40_2leadership_calculation_index_2/makedict/mandatories.json @@ -0,0 +1,16 @@ +{ + "rougail.leader.leader": [ + { + "rougail.leader.leader": "a", + "rougail.leader.follower1": 0 + }, + { + "rougail.leader.leader": "b", + "rougail.leader.follower1": 1 + }, + { + "rougail.leader.leader": "c", + "rougail.leader.follower1": 2 + } + ] +} diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/all.json b/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/mandatories.json b/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all.env b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all.env new file mode 100644 index 0000000..53dede8 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.DYNA.VAR="string1" +ROUGAIL.DYNB.VAR="string1" diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all_exclude.env b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all_exclude.env new file mode 100644 index 0000000..53dede8 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.DYNA.VAR="string1" +ROUGAIL.DYNB.VAR="string1" diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/mandatories.env b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/mandatories.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/file/mandatories.env @@ -0,0 +1 @@ + diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/all.json b/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/all.json new file mode 100644 index 0000000..ec48f3a --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/all.json @@ -0,0 +1,4 @@ +{ + "rougail.dyna.var": "string1", + "rougail.dynb.var": "string1" +} diff --git a/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/mandatories.json b/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/mandatories.json new file mode 100644 index 0000000..4a69e98 --- /dev/null +++ b/tests/results/test_namespace/60_0family_dynamic_variable_optional/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "rougail.dyna.var": "val", + "rougail.dynb.var": "val" +}