Compare commits

..

No commits in common. "29b96dc7125f953ab9c3bd31096e6fdd9b83f246" and "3d9f9b3fb4bfa55c5ea1d33958d6322dd8d0aa69" have entirely different histories.

32 changed files with 16 additions and 156 deletions

View file

@ -1,9 +1,3 @@
## 0.1.0a10 (2025-09-22)
### Fix
- dictionary => structure
## 0.1.0a9 (2025-06-18) ## 0.1.0a9 (2025-06-18)
### Fix ### Fix

View file

@ -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.0a10" version = "0.1.0a9"
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"

View file

@ -1 +1 @@
__version__ = "0.1.0a10" __version__ = "0.1.0a9"

View file

@ -1,4 +0,0 @@
{
"errors": [],
"warnings": []
}

View file

@ -1,3 +0,0 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -1,3 +0,0 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -1,2 +0,0 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR3="string1"

View file

@ -1,5 +0,0 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1"
}

View file

@ -1,5 +0,0 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1"
}

View file

@ -1,6 +0,0 @@
{
"errors": [],
"warnings": [
"variable \"leadership.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -1,4 +0,0 @@
{
"errors": [],
"warnings": []
}

View file

@ -1,2 +0,0 @@
ROUGAIL_LEADERSHIP.LEADER="string1,string2,string3"
ROUGAIL_LEADERSHIP.FOLLOWER="string1,string2,string3"

View file

@ -1,2 +0,0 @@
ROUGAIL_LEADERSHIP.LEADER="string1,string2,string3"
ROUGAIL_LEADERSHIP.FOLLOWER="string1,string2,string3"

View file

@ -1,15 +0,0 @@
{
"leadership.leader": [
{
"leadership.leader": "string1"
},
{
"leadership.leader": "string2",
"leadership.follower": "string2"
},
{
"leadership.leader": "string3",
"leadership.follower": "string3"
}
]
}

View file

@ -1,11 +0,0 @@
{
"leadership.leader": [
{
"leadership.leader": "a"
},
{
"leadership.leader": "b",
"leadership.follower": "value"
}
]
}

View file

@ -1,3 +0,0 @@
ROUGAIL.VAR1="string1"
ROUGAIL.VAR2="string1"
ROUGAIL.VAR3="string1"

View file

@ -1,3 +0,0 @@
ROUGAIL.VAR1="string1"
ROUGAIL.VAR2="string1"
ROUGAIL.VAR3="string1"

View file

@ -1,2 +0,0 @@
ROUGAIL.VAR1="string1"
ROUGAIL.VAR3="string1"

View file

@ -1,5 +0,0 @@
{
"rougail.var1": "string1",
"rougail.var2": "string1",
"rougail.var3": "string1"
}

View file

@ -1,5 +0,0 @@
{
"rougail.var1": "string1",
"rougail.var2": "string1",
"rougail.var3": "string1"
}

View file

@ -1,6 +0,0 @@
{
"errors": [],
"warnings": [
"variable \"rougail.leadership.follower\" (a follower) at index \"0\" is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -1,4 +0,0 @@
{
"errors": [],
"warnings": []
}

View file

@ -1,2 +0,0 @@
ROUGAIL.LEADERSHIP.LEADER="string1,string2,string3"
ROUGAIL.LEADERSHIP.FOLLOWER="string1,string2,string3"

View file

@ -1,2 +0,0 @@
ROUGAIL.LEADERSHIP.LEADER="string1,string2,string3"
ROUGAIL.LEADERSHIP.FOLLOWER="string1,string2,string3"

View file

@ -1,15 +0,0 @@
{
"rougail.leadership.leader": [
{
"rougail.leadership.leader": "string1"
},
{
"rougail.leadership.leader": "string2",
"rougail.leadership.follower": "string2"
},
{
"rougail.leadership.leader": "string3",
"rougail.leadership.follower": "string3"
}
]
}

View file

@ -1,11 +0,0 @@
{
"rougail.leadership.leader": [
{
"rougail.leadership.leader": "a"
},
{
"rougail.leadership.leader": "b",
"rougail.leadership.follower": "value"
}
]
}

View file

@ -33,7 +33,7 @@ def test_dir(request):
return request.param return request.param
def _test_structural_files(test_dir, namespace, ext, *, level, need_exclude=False): def _test_dictionaries(test_dir, namespace, ext, *, level, need_exclude=False):
rougailconfig = get_rougail_config(test_dir, namespace) rougailconfig = get_rougail_config(test_dir, namespace)
if not rougailconfig: if not rougailconfig:
return return
@ -173,34 +173,34 @@ def convert_str(val):
############################################## ##############################################
def test_structural_files_all(test_dir): def test_dictionaries_all(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, False, EXT, level='all') _test_dictionaries(test_dir, False, EXT, level='all')
def test_structural_files_all_exclude(test_dir): def test_dictionaries_all_exclude(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, False, EXT, level='all', need_exclude=True) _test_dictionaries(test_dir, False, EXT, level='all', need_exclude=True)
def test_structural_files_mandatories(test_dir): def test_dictionaries_mandatories(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, False, EXT, level='mandatories') _test_dictionaries(test_dir, False, EXT, level='mandatories')
def test_structural_files_namespace_all(test_dir): def test_dictionaries_namespace_all(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, True, EXT, level='all') _test_dictionaries(test_dir, True, EXT, level='all')
def test_structural_files_namespace_all_exclude(test_dir): def test_dictionaries_namespace_all_exclude(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, True, EXT, level='all', need_exclude=True) _test_dictionaries(test_dir, True, EXT, level='all', need_exclude=True)
def test_structural_files_namespace_mandatories(test_dir): def test_dictionaries_namespace_mandatories(test_dir):
"tests the output" "tests the output"
_test_structural_files(test_dir, True, EXT, level='mandatories') _test_dictionaries(test_dir, True, EXT, level='mandatories')
####################################################################### #######################################################################
@ -213,7 +213,7 @@ def test_file_error(request):
return request.param return request.param
def test_structural_files_error(test_file_error): def test_dictionaries_error(test_file_error):
rougailconfig = get_rougail_config(test_file_error.parent.parent / 'structure') rougailconfig = get_rougail_config(test_file_error.parent.parent / 'structure')
################################## ##################################
rougailconfig['step.user_data'] = ['environment'] rougailconfig['step.user_data'] = ['environment']