diff --git a/tests/templates/00base/result/test/etc/mailname b/tests/templates/00base/result/test/etc/mailname new file mode 100644 index 000000000..bd51bf63f --- /dev/null +++ b/tests/templates/00base/result/test/etc/mailname @@ -0,0 +1 @@ +oui diff --git a/tests/templates/11disabled_if_in_filelist/result/test/tmp/file b/tests/templates/11disabled_if_in_filelist/result/test/tmp/file new file mode 100644 index 000000000..d907505b5 --- /dev/null +++ b/tests/templates/11disabled_if_in_filelist/result/test/tmp/file @@ -0,0 +1 @@ +non diff --git a/tests/templates/70container_files_symlink_multi/00-base.xml b/tests/templates/70container_files_symlink_multi/00-base.xml new file mode 100644 index 000000000..ed1f44631 --- /dev/null +++ b/tests/templates/70container_files_symlink_multi/00-base.xml @@ -0,0 +1,47 @@ + + + + + + + + False + + + + False + + + mailname + + + True + + + + basic + + + + + normal + + oui + non + force_default_on_freeze + frozen + hidden + mandatory + normal + oui + + + mandatory + normal + /etc/mailname + /etc/mailname2 + + + + + diff --git a/tests/templates/70container_files_symlink_multi/makedict/base.json b/tests/templates/70container_files_symlink_multi/makedict/base.json new file mode 100644 index 000000000..e5344ac6f --- /dev/null +++ b/tests/templates/70container_files_symlink_multi/makedict/base.json @@ -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} \ No newline at end of file diff --git a/tests/templates/70container_files_symlink_multi/result/test/etc/mailname b/tests/templates/70container_files_symlink_multi/result/test/etc/mailname new file mode 100644 index 000000000..ebb6a0c78 --- /dev/null +++ b/tests/templates/70container_files_symlink_multi/result/test/etc/mailname @@ -0,0 +1 @@ +tests/templates/70container_files_symlink_multi/dest/test/etc/mailname diff --git a/tests/templates/70container_files_symlink_multi/result/test/etc/mailname2 b/tests/templates/70container_files_symlink_multi/result/test/etc/mailname2 new file mode 100644 index 000000000..f7a1d5b02 --- /dev/null +++ b/tests/templates/70container_files_symlink_multi/result/test/etc/mailname2 @@ -0,0 +1 @@ +tests/templates/70container_files_symlink_multi/dest/test/etc/mailname2 diff --git a/tests/templates/70container_files_symlink_multi/tmpl/mailname b/tests/templates/70container_files_symlink_multi/tmpl/mailname new file mode 100644 index 000000000..6a4cb4489 --- /dev/null +++ b/tests/templates/70container_files_symlink_multi/tmpl/mailname @@ -0,0 +1 @@ +%%rougail_filename diff --git a/tests/test_template.py b/tests/test_template.py index 52f9451ef..68f765d9b 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -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)