Compare commits
3 commits
e3e531bfba
...
fce409cde9
| Author | SHA1 | Date | |
|---|---|---|---|
| fce409cde9 | |||
| 58677d06c0 | |||
| 7646c85546 |
264 changed files with 1063 additions and 105 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -1,3 +1,13 @@
|
||||||
|
## 0.1.0a8 (2025-05-12)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- display loaded_from informations
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- black
|
||||||
|
|
||||||
## 0.1.0a7 (2025-05-02)
|
## 0.1.0a7 (2025-05-02)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.user_data_environment"
|
name = "rougail.user_data_environment"
|
||||||
version = "0.1.0a7"
|
version = "0.1.0a8"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail user_data environment"
|
description = "Rougail user_data environment"
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ from .__version__ import __version__
|
||||||
|
|
||||||
|
|
||||||
RougailUserData = RougailUserDataEnvironment
|
RougailUserData = RougailUserDataEnvironment
|
||||||
__all__ = ('RougailUserDataEnvironment',)
|
__all__ = ("RougailUserDataEnvironment",)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.0a7"
|
__version__ = "0.1.0a8"
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from rougail.error import DictConsistencyError
|
from rougail.error import DictConsistencyError
|
||||||
from rougail.annotator.variable import Walk
|
from rougail.annotator.variable import Walk
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
@ -25,9 +26,9 @@ from .i18n import _
|
||||||
|
|
||||||
class Annotator(Walk):
|
class Annotator(Walk):
|
||||||
"""Annotate for environment"""
|
"""Annotate for environment"""
|
||||||
|
|
||||||
level = 95
|
level = 95
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
objectspace,
|
objectspace,
|
||||||
|
|
@ -42,11 +43,19 @@ class Annotator(Walk):
|
||||||
def check_family(self):
|
def check_family(self):
|
||||||
for family in self.get_families():
|
for family in self.get_families():
|
||||||
if family.name != family.name.lower():
|
if family.name != family.name.lower():
|
||||||
msg = _('family name must be a lowercase name when we want to use user data "environment", so "{0}" is invalid')
|
msg = _(
|
||||||
raise DictConsistencyError(msg.format(family.name), 200, family.xmlfiles)
|
'family name must be a lowercase name when we want to use user data "environment", so "{0}" is invalid'
|
||||||
|
)
|
||||||
|
raise DictConsistencyError(
|
||||||
|
msg.format(family.name), 200, family.xmlfiles
|
||||||
|
)
|
||||||
|
|
||||||
def check_variable(self):
|
def check_variable(self):
|
||||||
for variable in self.get_variables():
|
for variable in self.get_variables():
|
||||||
if variable.name != variable.name.lower():
|
if variable.name != variable.name.lower():
|
||||||
msg = _('variable name must be a lowercase name when we want to use user data "environment", so "{0}" is invalid')
|
msg = _(
|
||||||
raise DictConsistencyError(msg.format(variable.name), 201, variable.xmlfiles)
|
'variable name must be a lowercase name when we want to use user data "environment", so "{0}" is invalid'
|
||||||
|
)
|
||||||
|
raise DictConsistencyError(
|
||||||
|
msg.format(variable.name), 201, variable.xmlfiles
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def get_rougail_config(*,
|
def get_rougail_config(
|
||||||
backward_compatibility=True,
|
*,
|
||||||
) -> dict:
|
backward_compatibility=True,
|
||||||
|
) -> dict:
|
||||||
options = """
|
options = """
|
||||||
environment:
|
environment:
|
||||||
description: Define values from the environment
|
description: Define values from the environment
|
||||||
|
|
@ -40,11 +41,12 @@ environment:
|
||||||
variable: main_namespace
|
variable: main_namespace
|
||||||
when_not: null
|
when_not: null
|
||||||
"""
|
"""
|
||||||
return {'name': 'environment',
|
return {
|
||||||
'process': 'user data',
|
"name": "environment",
|
||||||
'options': options,
|
"process": "user data",
|
||||||
'level': 50,
|
"options": options,
|
||||||
}
|
"level": 50,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
__all__ = ('get_rougail_config',)
|
__all__ = ("get_rougail_config",)
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from rougail.object_model import CONVERT_OPTION
|
from rougail.object_model import CONVERT_OPTION
|
||||||
from rougail.config import RougailConfig
|
from rougail.config import RougailConfig
|
||||||
|
|
@ -26,36 +27,41 @@ from tiramisu.error import ValueOptionError
|
||||||
|
|
||||||
|
|
||||||
class RougailUserDataEnvironment:
|
class RougailUserDataEnvironment:
|
||||||
def __init__(self,
|
def __init__(
|
||||||
config: 'Config',
|
self,
|
||||||
*,
|
config: "Config",
|
||||||
rougailconfig: RougailConfig=None,
|
*,
|
||||||
):
|
rougailconfig: RougailConfig = None,
|
||||||
|
):
|
||||||
# this is the tiramisu config object
|
# this is the tiramisu config object
|
||||||
self.config = config
|
self.config = config
|
||||||
if rougailconfig is None:
|
if rougailconfig is None:
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
user_data = rougailconfig['step.user_data']
|
user_data = rougailconfig["step.user_data"]
|
||||||
if 'environment' not in user_data:
|
if "environment" not in user_data:
|
||||||
user_data.append('environment')
|
user_data.append("environment")
|
||||||
rougailconfig['step.user_data'] = user_data
|
rougailconfig["step.user_data"] = user_data
|
||||||
user_data = rougailconfig['step.user_data']
|
user_data = rougailconfig["step.user_data"]
|
||||||
self.rougailconfig = rougailconfig
|
self.rougailconfig = rougailconfig
|
||||||
if 'environment' not in user_data:
|
if "environment" not in user_data:
|
||||||
raise ExtentionError('environment is not set in step.user_data')
|
raise ExtentionError("environment is not set in step.user_data")
|
||||||
self.errors = []
|
self.errors = []
|
||||||
self.warnings = []
|
self.warnings = []
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
values = self.parse()
|
values = self.parse()
|
||||||
return [{'source': 'environment variable',
|
return [
|
||||||
'errors': self.errors,
|
{
|
||||||
'warnings': self.warnings,
|
"source": "environment variable",
|
||||||
'values': values,
|
"errors": self.errors,
|
||||||
'options': {'multi_separator': ',',
|
"warnings": self.warnings,
|
||||||
'needs_convert': True,
|
"values": values,
|
||||||
},
|
"options": {
|
||||||
}]
|
"multi_separator": ",",
|
||||||
|
"needs_convert": True,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
variables = {}
|
variables = {}
|
||||||
|
|
@ -65,23 +71,27 @@ class RougailUserDataEnvironment:
|
||||||
variables.update(get_rougail_environment(option.name()))
|
variables.update(get_rougail_environment(option.name()))
|
||||||
else:
|
else:
|
||||||
return variables
|
return variables
|
||||||
return get_rougail_environment(None, self.rougailconfig['environment.default_environment_name'])
|
return get_rougail_environment(
|
||||||
|
None, self.rougailconfig["environment.default_environment_name"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_rougail_environment(namespace, environment_name=None):
|
def get_rougail_environment(namespace, environment_name=None):
|
||||||
"""gets all the rougail environment variables and their values
|
"""gets all the rougail environment variables and their values
|
||||||
|
|
||||||
:sample: {'VARINT': '5', 'VARNAME34': '58, 22', 'VARNAME2': 'tata',
|
:sample: {'VARINT': '5', 'VARNAME34': '58, 22', 'VARNAME2': 'tata',
|
||||||
'VARNAME1': 'titi', 'MYFAMILY.VARNAME3': 'spam'}
|
'VARNAME1': 'titi', 'MYFAMILY.VARNAME3': 'spam'}
|
||||||
:returns: rougail environment variables as a key/value dict
|
:returns: rougail environment variables as a key/value dict
|
||||||
"""
|
"""
|
||||||
# then we filter the ROUGAIL_ environment variables
|
# then we filter the ROUGAIL_ environment variables
|
||||||
if namespace is None:
|
if namespace is None:
|
||||||
rougail_environment_var = environment_name.upper() + '_'
|
rougail_environment_var = environment_name.upper() + "_"
|
||||||
len_env = len(rougail_environment_var)
|
len_env = len(rougail_environment_var)
|
||||||
else:
|
else:
|
||||||
rougail_environment_var = namespace.upper() + '.'
|
rougail_environment_var = namespace.upper() + "."
|
||||||
len_env = 0
|
len_env = 0
|
||||||
return {envvar[len_env:].lower(): envval
|
return {
|
||||||
for envvar, envval in os.environ.items()
|
envvar[len_env:].lower(): envval
|
||||||
if envvar.startswith(rougail_environment_var)}
|
for envvar, envval in os.environ.items()
|
||||||
|
if envvar.startswith(rougail_environment_var)
|
||||||
|
}
|
||||||
|
|
|
||||||
1
tests/errors/environment/00_unknown_variable.env
Normal file
1
tests/errors/environment/00_unknown_variable.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_UNKNOWN=1
|
||||||
2
tests/errors/environment/01_disabled_family.env
Normal file
2
tests/errors/environment/01_disabled_family.env
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
ROUGAIL_FAMILY_DISABLED.VARIABLE1=test
|
||||||
|
ROUGAIL_FAMILY_DISABLED.VARIABLE2=test
|
||||||
1
tests/errors/environment/01_disabled_variable.env
Normal file
1
tests/errors/environment/01_disabled_variable.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VARIABLE_DISABLED=test
|
||||||
1
tests/errors/environment/01_wrong_type.env
Normal file
1
tests/errors/environment/01_wrong_type.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VARIABLE_INT=test
|
||||||
1
tests/errors/environment/02_disabled_hidden_family.env
Normal file
1
tests/errors/environment/02_disabled_hidden_family.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_FAMILY_DISABLED_HIDDEN.VARIABLE1=test
|
||||||
1
tests/errors/environment/04_value_secret.env
Normal file
1
tests/errors/environment/04_value_secret.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_SECRET=a
|
||||||
1
tests/errors/environment/05_value_family.env
Normal file
1
tests/errors/environment/05_value_family.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_FAMILY=test
|
||||||
1
tests/errors/environment/06_dynamic_unknown.env
Normal file
1
tests/errors/environment/06_dynamic_unknown.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_DYN_UNKNOWN.VARIABLE=test
|
||||||
4
tests/errors/environment/07_leadership_disabled.env
Normal file
4
tests/errors/environment/07_leadership_disabled.env
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ROUGAIL_LEADERSHIP.LEADER=test1,test2,test3
|
||||||
|
ROUGAIL_LEADERSHIP.FOLLOWER=test1,test2,test3
|
||||||
|
ROUGAIL_LEADERSHIP.FOLLOWER_DISABLED=test1,test2,test3
|
||||||
|
ROUGAIL_LEADERSHIP.FOLLOWER_DISABLED_AT_INDEX=test1,test2,test3
|
||||||
2
tests/errors/environment/07_leadership_unknown.env
Normal file
2
tests/errors/environment/07_leadership_unknown.env
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
ROUGAIL_LEADERSHIP.LEADER=test
|
||||||
|
ROUGAIL_LEADERSHIP.UNKNWON=test
|
||||||
2
tests/errors/environment/07_leadership_wrong_len.env
Normal file
2
tests/errors/environment/07_leadership_wrong_len.env
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
ROUGAIL_LEADERSHIP.LEADER=test
|
||||||
|
ROUGAIL_LEADERSHIP.FOLLOWER=test1,test2
|
||||||
6
tests/errors/results/00_unknown_variable.env
Normal file
6
tests/errors/results/00_unknown_variable.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable or family \"unknown\" does not exist, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
7
tests/errors/results/01_disabled_family.env
Normal file
7
tests/errors/results/01_disabled_family.env
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"family \"family_disabled\" is disabled, \"family_disabled.variable1\" will be ignored when loading from environment variable",
|
||||||
|
"family \"family_disabled\" is disabled, \"family_disabled.variable2\" will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/01_disabled_variable.env
Normal file
6
tests/errors/results/01_disabled_variable.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"variable_disabled\" is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/01_wrong_type.env
Normal file
6
tests/errors/results/01_wrong_type.env
Normal file
|
|
@ -0,0 +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"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/02_disabled_hidden_family.env
Normal file
6
tests/errors/results/02_disabled_hidden_family.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"family \"family_disabled_hidden\" is disabled and hidden, \"family_disabled_hidden.variable1\" will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/04_value_secret.env
Normal file
6
tests/errors/results/04_value_secret.env
Normal file
|
|
@ -0,0 +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"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/05_value_family.env
Normal file
6
tests/errors/results/05_value_family.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"cannot set the value \"test\" to the family \"family\", it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/06_dynamic_unknown.env
Normal file
6
tests/errors/results/06_dynamic_unknown.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable or family \"dyn_unknown\" does not exist, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
9
tests/errors/results/07_leadership_disabled.env
Normal file
9
tests/errors/results/07_leadership_disabled.env
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"leadership.follower_disabled\" at index \"0\" is disabled, it will be ignored when loading from environment variable",
|
||||||
|
"variable \"leadership.follower_disabled\" at index \"1\" is disabled, it will be ignored when loading from environment variable",
|
||||||
|
"variable \"leadership.follower_disabled\" at index \"2\" is disabled, it will be ignored when loading from environment variable",
|
||||||
|
"variable \"leadership.follower_disabled_at_index\" at index \"1\" is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/07_leadership_unknown.env
Normal file
6
tests/errors/results/07_leadership_unknown.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable or family \"leadership.unknwon\" does not exist, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
tests/errors/results/07_leadership_wrong_len.env
Normal file
6
tests/errors/results/07_leadership_wrong_len.env
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"index \"1\" is greater than the leadership length \"1\" for option \"leadership.follower\" in environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
68
tests/errors/structure/rougail/00_rougail.yml
Normal file
68
tests/errors/structure/rougail/00_rougail.yml
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
version: 1.1
|
||||||
|
|
||||||
|
variable:
|
||||||
|
|
||||||
|
secret:
|
||||||
|
type: secret
|
||||||
|
params:
|
||||||
|
min_len: 10
|
||||||
|
|
||||||
|
variable_disabled:
|
||||||
|
disabled: true
|
||||||
|
|
||||||
|
variable_disabled_hidden:
|
||||||
|
disabled: true
|
||||||
|
hidden: true
|
||||||
|
|
||||||
|
variable_int:
|
||||||
|
type: number
|
||||||
|
|
||||||
|
family:
|
||||||
|
|
||||||
|
variable:
|
||||||
|
|
||||||
|
family_disabled:
|
||||||
|
disabled: true
|
||||||
|
|
||||||
|
variable1:
|
||||||
|
|
||||||
|
variable2:
|
||||||
|
|
||||||
|
family_disabled_hidden:
|
||||||
|
disabled: true
|
||||||
|
hidden: true
|
||||||
|
|
||||||
|
variable1:
|
||||||
|
|
||||||
|
variable2:
|
||||||
|
|
||||||
|
dyn_{{ identifier }}:
|
||||||
|
dynamic:
|
||||||
|
- var1
|
||||||
|
- var2
|
||||||
|
|
||||||
|
variable:
|
||||||
|
|
||||||
|
leadership:
|
||||||
|
type: leadership
|
||||||
|
|
||||||
|
leader:
|
||||||
|
|
||||||
|
follower:
|
||||||
|
|
||||||
|
follower_disabled:
|
||||||
|
disabled: true
|
||||||
|
|
||||||
|
follower_disabled_at_index:
|
||||||
|
disabled:
|
||||||
|
jinja: >-
|
||||||
|
{% if index == 1 %}
|
||||||
|
true
|
||||||
|
{% else %}
|
||||||
|
{% endif %}
|
||||||
|
params:
|
||||||
|
index:
|
||||||
|
type: index
|
||||||
|
...
|
||||||
4
tests/results/test/00_0no_variable/errors/all.json
Normal file
4
tests/results/test/00_0no_variable/errors/all.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
1
tests/results/test/00_0no_variable/file/all.env
Normal file
1
tests/results/test/00_0no_variable/file/all.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
1
tests/results/test/00_0no_variable/file/all_exclude.env
Normal file
1
tests/results/test/00_0no_variable/file/all_exclude.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
1
tests/results/test/00_0no_variable/file/mandatories.env
Normal file
1
tests/results/test/00_0no_variable/file/mandatories.env
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
1
tests/results/test/00_0no_variable/makedict/all.json
Normal file
1
tests/results/test/00_0no_variable/makedict/all.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"family \"leadership\" is hidden, \"leadership.var1\" (a first variable) will be ignored when loading from environment variable",
|
||||||
|
"family \"leadership\" is hidden, \"leadership.var2\" (a first variable) at index \"0\" will be ignored when loading from environment variable",
|
||||||
|
"index \"1\" is greater than the leadership length \"1\" for option \"leadership.var2\" (a first variable) in environment variable",
|
||||||
|
"index \"2\" is greater than the leadership length \"1\" for option \"leadership.var2\" (a first variable) in environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_LEADERSHIP.VAR1="string1,string2,string3"
|
||||||
|
ROUGAIL_LEADERSHIP.VAR2="string1,,"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_LEADERSHIP.VAR1="string1,string2,string3"
|
||||||
|
ROUGAIL_LEADERSHIP.VAR2="string1,,"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"leadership.var1": [
|
||||||
|
{
|
||||||
|
"leadership.var1": "a_value",
|
||||||
|
"leadership.var2": "a_value"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"leadership.var1": [
|
||||||
|
{
|
||||||
|
"leadership.var1": "a_value",
|
||||||
|
"leadership.var2": "a_value"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"var2": "a_value"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"var2\" (a second variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"var2\" (a second variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable",
|
||||||
|
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var3": "value"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "value"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var2\" (a second variable) is hidden, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var3\" (a third variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var2": "value"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": [
|
||||||
|
"variable \"var2\" (a second variable) is hidden, it will be ignored when loading from environment variable",
|
||||||
|
"variable \"var3\" (a third variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ROUGAIL_VAR1="string1"
|
||||||
|
ROUGAIL_VAR2="string1"
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
ROUGAIL_VAR3="string1"
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"var1": "string1",
|
||||||
|
"var2": "string1"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var1": "value",
|
||||||
|
"var2": "value",
|
||||||
|
"var3": "string1"
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"var1\" (a first variable) because has property \"hidden\" (unknown is undefined) loaded from environment variable"
|
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"warnings": [
|
"warnings": [
|
||||||
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable"
|
"variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue