@ -34,6 +34,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -59,6 +60,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/none ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_type is None
@ -72,6 +74,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_type == DIR
@ -86,6 +89,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_type == FILE
@ -103,6 +107,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_type == FILE
@ -118,6 +123,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -130,6 +136,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -143,6 +150,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -160,6 +168,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_link ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -177,6 +186,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_path_is_changed
@ -192,6 +202,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_type == DIR
@ -206,6 +217,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
assert template_wrapper . target_path_is_changed
@ -222,6 +234,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -234,6 +247,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -246,6 +260,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -262,6 +277,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -278,6 +294,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -294,6 +311,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -309,6 +327,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_link ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -320,6 +339,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -331,6 +351,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_link ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -346,6 +367,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -357,6 +379,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -368,6 +391,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -379,6 +403,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -391,6 +416,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -407,6 +433,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -423,6 +450,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -439,6 +467,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_2 ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -455,6 +484,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -467,6 +497,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -482,6 +513,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -499,6 +531,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -515,6 +548,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/other_file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -526,6 +560,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -543,6 +578,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -558,6 +594,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_1/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -575,6 +612,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_2/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -593,6 +631,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -611,6 +650,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -625,6 +665,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /not_protected/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -639,6 +680,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/terminfo/info.json ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -654,6 +696,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /not_protected/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -669,6 +712,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -684,6 +728,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/none ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -699,6 +744,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/deleted.json ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -714,6 +760,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -729,6 +776,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -745,6 +793,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -761,6 +810,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -775,6 +825,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -792,6 +843,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -809,6 +861,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -830,6 +883,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -848,6 +902,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir_0/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
for protected_path in template_wrapper . _protected_set :
@ -868,6 +923,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -884,6 +940,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -901,6 +958,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/ ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -919,6 +977,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -936,6 +995,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -955,6 +1015,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -971,6 +1032,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -991,6 +1053,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1018,6 +1081,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir ' ) ,
parameters_object , DIR ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1045,6 +1109,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1057,6 +1122,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1069,6 +1135,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/file ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1085,6 +1152,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1105,6 +1173,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/dir_1/config.json ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1140,6 +1209,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/none ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
@ -1158,6 +1228,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1173,6 +1244,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :
@ -1188,6 +1260,7 @@ class TestTemplateWrapper:
join_paths ( CHROOT_PATH ,
' /etc/dir/file.conf ' ) ,
parameters_object , FILE ,
' /path/to/template ' ,
chroot_path = CHROOT_PATH ,
config_archive_path = CONFIG_ARCHIVE_PATH )
except Exception as error :