refactoring
This commit is contained in:
@ -1,46 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<family name="services" doc="services">
|
||||
<property>hidden</property>
|
||||
<family doc="test" name="test">
|
||||
<family name="overrides" doc="overrides">
|
||||
<family doc="test.service" name="test_service">
|
||||
<variable doc="group" multi="False" name="group" type="string">
|
||||
<value>root</value>
|
||||
</variable>
|
||||
<variable doc="mode" multi="False" name="mode" type="string">
|
||||
<value>0644</value>
|
||||
</variable>
|
||||
<variable doc="name" multi="False" name="name" type="string">
|
||||
<value>/systemd/system/test.service.d/rougail.conf</value>
|
||||
</variable>
|
||||
<variable doc="owner" multi="False" name="owner" type="string">
|
||||
<value>root</value>
|
||||
</variable>
|
||||
<variable doc="source" multi="False" name="source" type="string">
|
||||
<value>test.service</value>
|
||||
</variable>
|
||||
<variable doc="templating" multi="False" name="templating" type="boolean">
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="activate" multi="False" name="activate" type="boolean">
|
||||
<value>True</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
</family>
|
||||
</family>
|
||||
<family doc="rougail" name="rougail">
|
||||
<family doc="general" name="general">
|
||||
<property>normal</property>
|
||||
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
|
||||
<choice type="string">oui</choice>
|
||||
<choice type="string">non</choice>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators/>
|
||||
</family>
|
||||
</rougail>
|
0
tests/templates/20override/__init__.py
Normal file
0
tests/templates/20override/__init__.py
Normal file
19
tests/templates/20override/base.py
Normal file
19
tests/templates/20override/base.py
Normal file
@ -0,0 +1,19 @@
|
||||
from tiramisu import *
|
||||
from rougail.tiramisu import ConvertDynOptionDescription
|
||||
import imp
|
||||
func = imp.load_source('func', 'tests/flattener_dicos/../eosfunc/test.py')
|
||||
option_3 = ChoiceOption(properties=frozenset({'mandatory', 'normal'}), name='mode_conteneur_actif', doc='No change', multi=False, default='non', values=('oui', 'non'))
|
||||
option_2 = OptionDescription(name='general', doc='general', properties=frozenset({'normal'}), children=[option_3])
|
||||
option_1 = OptionDescription(name='rougail', doc='rougail', children=[option_2])
|
||||
option_8 = StrOption(name='group', doc='group', multi=False, default='root')
|
||||
option_9 = StrOption(name='mode', doc='mode', multi=False, default='0644')
|
||||
option_10 = StrOption(name='name', doc='name', multi=False, default='/systemd/system/test.service.d/rougail.conf')
|
||||
option_11 = StrOption(name='owner', doc='owner', multi=False, default='root')
|
||||
option_12 = StrOption(name='source', doc='source', multi=False, default='test.service')
|
||||
option_13 = BoolOption(default=True, name='templating', doc='templating', multi=False)
|
||||
option_14 = BoolOption(default=True, name='activate', doc='activate', multi=False)
|
||||
option_7 = OptionDescription(name='test_service', doc='test.service', children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14])
|
||||
option_6 = OptionDescription(name='overrides', doc='overrides', children=[option_7])
|
||||
option_5 = OptionDescription(name='test', doc='test', children=[option_6])
|
||||
option_4 = OptionDescription(name='services', doc='services', properties=frozenset({'hidden'}), children=[option_5])
|
||||
option_0 = OptionDescription(name='baseoption', doc='baseoption', children=[option_1, option_4])
|
Reference in New Issue
Block a user