|
|
@ -1474,6 +1474,23 @@ class TestDirectoryProcessor: |
|
|
|
directory_processor.process_template_directories() |
|
|
|
assert os.path.exists(join_paths(CHROOT_PATH, '/etc/dir_65/file_0')) |
|
|
|
|
|
|
|
def test_warning_while_merge(self): |
|
|
|
datavars.main['cl_template_path'] = os.path.join(CHROOT_PATH, |
|
|
|
'templates_48') |
|
|
|
io = IOModule(save_messages=True) |
|
|
|
directory_processor = DirectoryProcessor( |
|
|
|
'install', |
|
|
|
datavars_module=datavars, |
|
|
|
package='test-category/test-package', |
|
|
|
output_module=io |
|
|
|
) |
|
|
|
directory_processor.process_template_directories() |
|
|
|
assert os.path.exists(join_paths(CHROOT_PATH, '/etc/dir_66/file_0')) |
|
|
|
assert io.messages[-2] ==\ |
|
|
|
("warning", |
|
|
|
"Warning: package 'test-category/new-package-0.1.1'" |
|
|
|
" not found for action 'install'.") |
|
|
|
|
|
|
|
def test_view_tree(self): |
|
|
|
list_path = join_paths(CHROOT_PATH, '/etc') |
|
|
|
show_tree(list_path) |
|
|
|