update template tests

This commit is contained in:
Emmanuel Garette 2020-07-08 13:18:49 +02:00
parent 8ed035c7ff
commit b021460b94
16 changed files with 137 additions and 248 deletions

View File

@ -1,52 +1,37 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="file" name="file">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<variable doc="name" multi="False" name="name" type="string">
<value>/etc/file</value>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>file</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="general" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="condition" type="choice">
@ -61,7 +46,7 @@
<choice type="string">non</choice>
<property>mandatory</property>
<property>normal</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value type="string">non</value>
</variable>
<variable doc="No change" multi="False" name="mode_conteneur_actif2" type="choice">
@ -69,10 +54,10 @@
<choice type="string">non</choice>
<property>mandatory</property>
<property>normal</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value type="string">non</value>
</variable>
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,2 +1,2 @@
C /etc/file 0644 root root - -
C /etc/file 0644 root root - rougail.conf/etc/file
z /etc/file - - - - -

View File

@ -1,52 +1,37 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="file" name="file">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<variable doc="name" multi="False" name="name" type="string">
<value>/etc/file</value>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>file</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="general" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="condition" type="choice">
@ -61,7 +46,7 @@
<choice type="string">non</choice>
<property>mandatory</property>
<property>normal</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value type="string">non</value>
</variable>
<variable doc="No change" multi="False" name="mode_conteneur_actif2" type="choice">
@ -69,10 +54,10 @@
<choice type="string">non</choice>
<property>mandatory</property>
<property>normal</property>
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
<property expected="oui" inverse="False" source="rougail.general.condition" type="calculation">disabled</property>
<value type="string">non</value>
</variable>
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,51 +1,36 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="file" name="file">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<variable doc="name" multi="False" name="name" type="string">
<value>/etc/file</value>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>file</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>False</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<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">
@ -58,4 +43,4 @@
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,2 +1,2 @@
C /etc/file 0644 root root - -
C /etc/file 0644 root root - rougail.conf/etc/file
z /etc/file - - - - -

View File

@ -1,31 +1,27 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="overrides" name="overrides">
<family doc="override0" name="override0">
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<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="name" multi="False" name="name" type="string">
<value>test.service</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>test.service</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<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">
@ -38,4 +34,4 @@
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,51 +1,36 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="mailname" name="mailname">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<variable doc="name" multi="False" name="name" type="string">
<value>/etc/mailname</value>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>mailname</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="général" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
@ -71,7 +56,7 @@
</family>
<separators/>
</family>
<family doc="" name="extra">
<family doc="extra" name="extra">
<family doc="ejabberd" name="ejabberd">
<property>normal</property>
<leader doc="description" name="description">
@ -88,4 +73,4 @@
</leader>
</family>
</family>
</creole>
</rougail>

View File

@ -1,2 +1,2 @@
C /etc/mailname 0644 root root - -
C /etc/mailname 0644 root root - rougail.conf/etc/mailname
z /etc/mailname - - - - -

View File

@ -1,51 +1,36 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="mailname" name="mailname">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable doc="" multi="False" name="name" type="string">
<property>mandatory</property>
<variable doc="name" multi="False" name="name" type="string">
<value>/etc/mailname</value>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>mailname</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="général" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
@ -61,4 +46,4 @@
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,2 +1,2 @@
C /etc/mailname 0644 root root - -
C /etc/mailname 0644 root root - rougail.conf/etc/mailname
z /etc/mailname - - - - -

View File

@ -1,50 +1,34 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="mailname" name="mailname">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable multi="False" name="name" opt="creole.general.file_name" type="symlink">
<property>mandatory</property>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable multi="False" name="name" opt="rougail.general.file_name" type="symlink"/>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>mailname</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="général" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
@ -66,4 +50,4 @@
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,4 +1,4 @@
C /etc/mailname 0644 root root - -
C /etc/mailname 0644 root root - rougail.conf/etc/mailname
z /etc/mailname - - - - -
C /etc/mailname2 0644 root root - -
C /etc/mailname2 0644 root root - rougail.conf/etc/mailname2
z /etc/mailname2 - - - - -

View File

@ -1,53 +1,35 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="services">
<family name="service0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="group" type="string">
<property>mandatory</property>
<rougail>
<family name="services" doc="services">
<property>hidden</property>
<family doc="test" name="test">
<family name="files" doc="files">
<family doc="mailname" name="mailname">
<variable doc="group" multi="False" name="group" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="mkdir" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="mode" type="string">
<property>mandatory</property>
<variable doc="mode" multi="False" name="mode" type="string">
<value>0644</value>
</variable>
<variable multi="False" name="name" opt="creole.general.file_name" type="symlink">
<property>mandatory</property>
</variable>
<variable doc="" multi="False" name="owner" type="string">
<property>mandatory</property>
<variable multi="False" name="name" opt="rougail.general.file_name" type="symlink"/>
<variable doc="owner" multi="False" name="owner" type="string">
<value>root</value>
</variable>
<variable doc="" multi="False" name="rm" type="boolean">
<property>mandatory</property>
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<property>mandatory</property>
<variable doc="source" multi="False" name="source" type="string">
<value>mailname</value>
</variable>
<variable doc="" multi="False" name="templating" type="boolean">
<property>mandatory</property>
<variable doc="templating" multi="False" name="templating" type="boolean">
<value>True</value>
</variable>
<variable multi="False" name="variable" opt="creole.general.var" type="symlink">
<property>mandatory</property>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<property>mandatory</property>
<variable multi="False" name="variable" opt="rougail.general.var" type="symlink"/>
<variable doc="activate" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="rougail" name="rougail">
<family doc="général" name="general">
<property>normal</property>
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
@ -75,4 +57,4 @@
</family>
<separators/>
</family>
</creole>
</rougail>

View File

@ -1,4 +1,4 @@
C /etc/mailname 0644 root root - -
C /etc/mailname 0644 root root - rougail.conf/etc/mailname
z /etc/mailname - - - - -
C /etc/mailname2 0644 root root - -
C /etc/mailname2 0644 root root - rougail.conf/etc/mailname2
z /etc/mailname2 - - - - -

View File

@ -61,8 +61,10 @@ async def test_dictionary(test_dir):
distrib_dir,
tmp_dir,
dest_dir,
join(dest_dir, 'rougail.conf'))
dest_dir,
join(dest_dir, 'rougail.conf'),
'rougail.conf',
)
list_templates = set()
if isdir(dest_dir):
find_files(dest_dir,