adjust tests

This commit is contained in:
Emmanuel Garette 2019-12-22 11:29:57 +01:00
parent 1ce16ad05d
commit d86744d1cf
8 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1 @@
oui

View file

@ -0,0 +1 @@
non

View file

@ -0,0 +1,47 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<family name="containers">
<family name="container0" doc="test">
<family doc="files" name="files">
<family doc="file0" name="file0">
<variable doc="" multi="False" name="mkdir" type="boolean">
<value>False</value>
</variable>
<variable multi="False" name="name" opt="creole.general.file_name" type="symlink"/>
<variable doc="" multi="False" name="rm" type="boolean">
<value>False</value>
</variable>
<variable doc="" multi="False" name="source" type="string">
<value>mailname</value>
</variable>
<variable doc="" multi="False" name="activate" type="boolean">
<value>True</value>
</variable>
</family>
</family>
<property>basic</property>
</family>
</family>
<family doc="" name="creole">
<family doc="général" 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>force_default_on_freeze</property>
<property>frozen</property>
<property>hidden</property>
<property>mandatory</property>
<property>normal</property>
<value type="string">oui</value>
</variable>
<variable doc="file_name" multi="True" name="file_name" type="string">
<property>mandatory</property>
<property>normal</property>
<value>/etc/mailname</value>
<value>/etc/mailname2</value>
</variable>
</family>
<separators/>
</family>
</creole>

View file

@ -0,0 +1 @@
{"creole.general.file_name": ["/etc/mailname", "/etc/mailname2"], "containers.container0.files.file0.mkdir": false, "containers.container0.files.file0.name": ["/etc/mailname", "/etc/mailname2"], "containers.container0.files.file0.rm": false, "containers.container0.files.file0.source": "mailname", "containers.container0.files.file0.activate": true}

View file

@ -0,0 +1 @@
tests/templates/70container_files_symlink_multi/dest/test/etc/mailname

View file

@ -0,0 +1 @@
tests/templates/70container_files_symlink_multi/dest/test/etc/mailname2

View file

@ -0,0 +1 @@
%%rougail_filename

View file

@ -71,3 +71,5 @@ def test_dictionary(test_dir):
with open(template_file, 'r') as fh:
generated_file = fh.read()
assert result_file == generated_file
rmtree(dest_dir)
rmtree(tmp_dir)