diff --git a/src/rougail/user_data_environment/config.py b/src/rougail/user_data_environment/config.py index 7f01d52..e97594b 100644 --- a/src/rougail/user_data_environment/config.py +++ b/src/rougail/user_data_environment/config.py @@ -22,24 +22,32 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ +from .i18n import _ + + def get_rougail_config( *, backward_compatibility=True, ) -> dict: - options = """ + options = f""" environment: - description: Define values from the environment + description: {_("Configuration loading environment variables")} disabled: jinja: | - {% if step.user_data is propertyerror or 'environment' not in step.user_data %} + {{% if _.step.user_data is propertyerror or 'environment' not in _.step.user_data %}} disabled - {% endif %} + {{% endif %}} + default_environment_name: - description: Name of the default environment prefix + description: {_("Name of the default environment prefix")} default: rougail disabled: - variable: main_namespace + variable: __.main_namespace when_not: null + + with_secrets: + description: {_("Environnement variables may contain secrets")} + default: true """ return { "name": "environment", diff --git a/src/rougail/user_data_environment/data.py b/src/rougail/user_data_environment/data.py index 5e403b4..d968b96 100644 --- a/src/rougail/user_data_environment/data.py +++ b/src/rougail/user_data_environment/data.py @@ -45,6 +45,10 @@ class RougailUserDataEnvironment: self.rougailconfig = rougailconfig if "environment" not in user_data: raise ExtentionError("environment is not set in step.user_data") + if "environment.with_secrets" in self.rougailconfig: + self.with_secrets = self.rougailconfig["environment.with_secrets"] + else: + self.with_secrets = True self.errors = [] self.warnings = [] @@ -59,6 +63,7 @@ class RougailUserDataEnvironment: "options": { "multi_separator": ",", "needs_convert": True, + "allow_secrets_variables": self.with_secrets, }, } ] diff --git a/src/rougail/user_data_environment/i18n.py b/src/rougail/user_data_environment/i18n.py new file mode 100644 index 0000000..64d109b --- /dev/null +++ b/src/rougail/user_data_environment/i18n.py @@ -0,0 +1,27 @@ +"""Internationalisation utilities +Silique (https://www.silique.fr) +Copyright (C) 2025 + +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU Lesser General Public License as published by the +Free Software Foundation, either version 3 of the License, or (at your +option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see . +""" + +from gettext import translation +from pathlib import Path + +t = translation( + "rougail_user_data_environment", str(Path(__file__).parent / "locale"), fallback=True +) + +_ = t.gettext + diff --git a/src/rougail/user_data_environment/locale/fr/LC_MESSAGES/rougail_user_data_environment.mo b/src/rougail/user_data_environment/locale/fr/LC_MESSAGES/rougail_user_data_environment.mo new file mode 100644 index 0000000..725ca6b Binary files /dev/null and b/src/rougail/user_data_environment/locale/fr/LC_MESSAGES/rougail_user_data_environment.mo differ diff --git a/tests/errors/results/01_wrong_type.env b/tests/errors/results/01_wrong_type.env index c970efa..10c2157 100644 --- a/tests/errors/results/01_wrong_type.env +++ b/tests/errors/results/01_wrong_type.env @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "the value \"test\" is invalid for \"variable_int\", which is not an integer, it will be ignored when loading from environment variable" + "the value \"test\" is an invalid integer for \"variable_int\", which is not an integer, it will be ignored when loading from environment variable" ] } \ No newline at end of file diff --git a/tests/errors/results/04_value_secret.env b/tests/errors/results/04_value_secret.env index 6502c9b..1ef2a27 100644 --- a/tests/errors/results/04_value_secret.env +++ b/tests/errors/results/04_value_secret.env @@ -1,6 +1,6 @@ { "errors": [], "warnings": [ - "the value \"**********\" is invalid for \"secret\", at least 10 characters are required, it will be ignored when loading from environment variable" + "the value \"**********\" is an invalid password for \"secret\", at least 10 characters are required, it will be ignored when loading from environment variable" ] } \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable10/errors/all.json b/tests/results/test/04_5disabled_calculation_variable10/errors/all.json new file mode 100644 index 0000000..cdfdb11 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable10/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable10/errors/mandatories.json new file mode 100644 index 0000000..cdfdb11 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/errors/mandatories.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable10/file/all.env b/tests/results/test/04_5disabled_calculation_variable10/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable10/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable10/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable10/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable10/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable10/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable10/makedict/all.json new file mode 100644 index 0000000..f537995 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/makedict/all.json @@ -0,0 +1,3 @@ +{ + "condition": true +} diff --git a/tests/results/test/04_5disabled_calculation_variable10/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable10/makedict/mandatories.json new file mode 100644 index 0000000..f537995 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable10/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "condition": true +} diff --git a/tests/results/test/04_5disabled_calculation_variable5/errors/all.json b/tests/results/test/04_5disabled_calculation_variable5/errors/all.json new file mode 100644 index 0000000..f28c76f --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"condition\" (a condition) 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_variable5/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable5/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable5/file/all.env b/tests/results/test/04_5disabled_calculation_variable5/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable5/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable5/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable5/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable5/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable5/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable5/makedict/all.json new file mode 100644 index 0000000..4de8ab2 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/makedict/all.json @@ -0,0 +1,4 @@ +{ + "condition": false, + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable5/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable5/makedict/mandatories.json new file mode 100644 index 0000000..4de8ab2 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable5/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "condition": false, + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable6/errors/all.json b/tests/results/test/04_5disabled_calculation_variable6/errors/all.json new file mode 100644 index 0000000..0555688 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"condition\" (a condition) is disabled, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable6/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable6/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable6/file/all.env b/tests/results/test/04_5disabled_calculation_variable6/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable6/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable6/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable6/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable6/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable6/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable6/makedict/all.json new file mode 100644 index 0000000..782f159 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/makedict/all.json @@ -0,0 +1,3 @@ +{ + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable6/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable6/makedict/mandatories.json new file mode 100644 index 0000000..782f159 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable6/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable7/errors/all.json b/tests/results/test/04_5disabled_calculation_variable7/errors/all.json new file mode 100644 index 0000000..cdfdb11 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable7/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable7/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable7/file/all.env b/tests/results/test/04_5disabled_calculation_variable7/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable7/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable7/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable7/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable7/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable7/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable7/makedict/all.json new file mode 100644 index 0000000..f537995 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/makedict/all.json @@ -0,0 +1,3 @@ +{ + "condition": true +} diff --git a/tests/results/test/04_5disabled_calculation_variable7/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable7/makedict/mandatories.json new file mode 100644 index 0000000..4de8ab2 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable7/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "condition": false, + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable8/errors/all.json b/tests/results/test/04_5disabled_calculation_variable8/errors/all.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/errors/all.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable8/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable8/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable8/file/all.env b/tests/results/test/04_5disabled_calculation_variable8/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable8/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable8/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable8/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable8/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable8/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable8/makedict/all.json new file mode 100644 index 0000000..f537995 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/makedict/all.json @@ -0,0 +1,3 @@ +{ + "condition": true +} diff --git a/tests/results/test/04_5disabled_calculation_variable8/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable8/makedict/mandatories.json new file mode 100644 index 0000000..f537995 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable8/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "condition": true +} diff --git a/tests/results/test/04_5disabled_calculation_variable9/errors/all.json b/tests/results/test/04_5disabled_calculation_variable9/errors/all.json new file mode 100644 index 0000000..0555688 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"condition\" (a condition) is disabled, it will be ignored when loading from environment variable" + ] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable9/errors/mandatories.json b/tests/results/test/04_5disabled_calculation_variable9/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/errors/mandatories.json @@ -0,0 +1,4 @@ +{ + "errors": [], + "warnings": [] +} \ No newline at end of file diff --git a/tests/results/test/04_5disabled_calculation_variable9/file/all.env b/tests/results/test/04_5disabled_calculation_variable9/file/all.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable9/file/all_exclude.env b/tests/results/test/04_5disabled_calculation_variable9/file/all_exclude.env new file mode 100644 index 0000000..79b0cef --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL_CONDITION="True" +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable9/file/mandatories.env b/tests/results/test/04_5disabled_calculation_variable9/file/mandatories.env new file mode 100644 index 0000000..0f489bd --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL_VARIABLE="string1" diff --git a/tests/results/test/04_5disabled_calculation_variable9/makedict/all.json b/tests/results/test/04_5disabled_calculation_variable9/makedict/all.json new file mode 100644 index 0000000..782f159 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/makedict/all.json @@ -0,0 +1,3 @@ +{ + "variable": "string1" +} diff --git a/tests/results/test/04_5disabled_calculation_variable9/makedict/mandatories.json b/tests/results/test/04_5disabled_calculation_variable9/makedict/mandatories.json new file mode 100644 index 0000000..782f159 --- /dev/null +++ b/tests/results/test/04_5disabled_calculation_variable9/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json new file mode 100644 index 0000000..9cf9c9c --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.variable\" (a variable) is disabled, 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_variable10/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json new file mode 100644 index 0000000..9cf9c9c --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/errors/mandatories.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.variable\" (a variable) is disabled, 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_variable10/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/all.json new file mode 100644 index 0000000..18b52fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/mandatories.json new file mode 100644 index 0000000..18b52fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable10/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json new file mode 100644 index 0000000..95bd519 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.condition\" (a condition) 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_variable5/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable5/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/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_variable5/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/all.json new file mode 100644 index 0000000..8d72421 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/all.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/mandatories.json new file mode 100644 index 0000000..8d72421 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable5/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json new file mode 100644 index 0000000..50a8eb8 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.condition\" (a condition) is disabled, 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_variable6/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable6/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/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_variable6/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/all.json new file mode 100644 index 0000000..66da3f1 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/mandatories.json new file mode 100644 index 0000000..66da3f1 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable6/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json new file mode 100644 index 0000000..9cf9c9c --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.variable\" (a variable) is disabled, 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_variable7/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable7/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/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_variable7/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/all.json new file mode 100644 index 0000000..18b52fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/mandatories.json new file mode 100644 index 0000000..8d72421 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable7/makedict/mandatories.json @@ -0,0 +1,4 @@ +{ + "rougail.condition": false, + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json new file mode 100644 index 0000000..c64d8fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/all.json @@ -0,0 +1,7 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.condition\" (a condition) is hidden, it will be ignored when loading from environment variable", + "variable \"rougail.variable\" (a variable) is disabled, 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_variable8/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json new file mode 100644 index 0000000..9cf9c9c --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/errors/mandatories.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.variable\" (a variable) is disabled, 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_variable8/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/all.json new file mode 100644 index 0000000..18b52fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/mandatories.json new file mode 100644 index 0000000..18b52fa --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable8/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "rougail.condition": true +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json new file mode 100644 index 0000000..50a8eb8 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/all.json @@ -0,0 +1,6 @@ +{ + "errors": [], + "warnings": [ + "variable \"rougail.condition\" (a condition) is disabled, 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_variable9/errors/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable9/errors/mandatories.json new file mode 100644 index 0000000..217db0a --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/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_variable9/file/all.env b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/all.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/all.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/file/all_exclude.env b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/all_exclude.env new file mode 100644 index 0000000..39618ad --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/all_exclude.env @@ -0,0 +1,2 @@ +ROUGAIL.CONDITION="True" +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/file/mandatories.env b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/mandatories.env new file mode 100644 index 0000000..6a36f07 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/file/mandatories.env @@ -0,0 +1 @@ +ROUGAIL.VARIABLE="string1" diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/all.json b/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/all.json new file mode 100644 index 0000000..66da3f1 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/all.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "string1" +} diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/mandatories.json b/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/mandatories.json new file mode 100644 index 0000000..66da3f1 --- /dev/null +++ b/tests/results/test_namespace/04_5disabled_calculation_variable9/makedict/mandatories.json @@ -0,0 +1,3 @@ +{ + "rougail.variable": "string1" +}