remove group constrainte, it's now a normal group
This commit is contained in:
16
tests/dictionaries_old/01base_file_patch/00-base.xml
Normal file
16
tests/dictionaries_old/01base_file_patch/00-base.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.9">
|
||||
<services>
|
||||
<service name="test">
|
||||
<file>/etc/file</file>
|
||||
<file engine="jinja2">/etc/file2</file>
|
||||
</service>
|
||||
</services>
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="Description">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
30
tests/dictionaries_old/01base_file_patch/makedict/after.json
Normal file
30
tests/dictionaries_old/01base_file_patch/makedict/after.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": {
|
||||
"owner": "default",
|
||||
"value": "non"
|
||||
},
|
||||
"services.test.files.file.name": {
|
||||
"owner": "default",
|
||||
"value": "/etc/file"
|
||||
},
|
||||
"services.test.files.file.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.files.file2.name": {
|
||||
"owner": "default",
|
||||
"value": "/etc/file2"
|
||||
},
|
||||
"services.test.files.file2.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.manage": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": "non",
|
||||
"services.test.files.file.name": "/etc/file",
|
||||
"services.test.files.file.activate": true,
|
||||
"services.test.files.file2.name": "/etc/file2",
|
||||
"services.test.files.file2.activate": true,
|
||||
"services.test.activate": true,
|
||||
"services.test.manage": true
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": {
|
||||
"owner": "default",
|
||||
"value": "non"
|
||||
},
|
||||
"services.test.files.file.name": {
|
||||
"owner": "default",
|
||||
"value": "/etc/file"
|
||||
},
|
||||
"services.test.files.file.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.files.file2.name": {
|
||||
"owner": "default",
|
||||
"value": "/etc/file2"
|
||||
},
|
||||
"services.test.files.file2.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.activate": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
},
|
||||
"services.test.manage": {
|
||||
"owner": "default",
|
||||
"value": true
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
--- tmpl/file 2020-11-20 07:44:38.588472784 +0100
|
||||
+++ dest/file 2020-11-20 07:44:54.588536011 +0100
|
||||
@@ -1 +1 @@
|
||||
-unpatched
|
||||
+patched
|
@ -0,0 +1,5 @@
|
||||
--- tmpl/file2 2020-11-20 07:44:38.588472784 +0100
|
||||
+++ dest/file2 2020-11-20 07:44:54.588536011 +0100
|
||||
@@ -1 +1 @@
|
||||
-unpatched
|
||||
+patched
|
1
tests/dictionaries_old/01base_file_patch/result/etc/file
Normal file
1
tests/dictionaries_old/01base_file_patch/result/etc/file
Normal file
@ -0,0 +1 @@
|
||||
patched
|
@ -0,0 +1 @@
|
||||
patched
|
@ -0,0 +1,4 @@
|
||||
C /etc/file 0644 root root - /usr/local/lib/etc/file
|
||||
z /etc/file - - - - -
|
||||
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
|
||||
z /etc/file2 - - - - -
|
31
tests/dictionaries_old/01base_file_patch/tiramisu/base.py
Normal file
31
tests/dictionaries_old/01base_file_patch/tiramisu/base.py
Normal file
@ -0,0 +1,31 @@
|
||||
from importlib.machinery import SourceFileLoader
|
||||
from importlib.util import spec_from_loader, module_from_spec
|
||||
loader = SourceFileLoader('func', 'tests/dictionaries/../eosfunc/test.py')
|
||||
spec = spec_from_loader(loader.name, loader)
|
||||
func = module_from_spec(spec)
|
||||
loader.exec_module(func)
|
||||
for key, value in dict(locals()).items():
|
||||
if key != ['SourceFileLoader', 'func']:
|
||||
setattr(func, key, value)
|
||||
try:
|
||||
from tiramisu3 import *
|
||||
except:
|
||||
from tiramisu import *
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||
option_7.impl_set_information('source', "file")
|
||||
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||
option_10.impl_set_information('engine', "jinja2")
|
||||
option_10.impl_set_information('source', "file2")
|
||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
|
||||
option_13 = BoolOption(name="activate", doc="activate", default=True)
|
||||
option_14 = BoolOption(name="manage", doc="manage", default=True)
|
||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
|
||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
1
tests/dictionaries_old/01base_file_patch/tmpl/file
Normal file
1
tests/dictionaries_old/01base_file_patch/tmpl/file
Normal file
@ -0,0 +1 @@
|
||||
unpatched
|
1
tests/dictionaries_old/01base_file_patch/tmpl/file2
Normal file
1
tests/dictionaries_old/01base_file_patch/tmpl/file2
Normal file
@ -0,0 +1 @@
|
||||
unpatched
|
Reference in New Issue
Block a user