freezer.tests.unit.engines.rsync.test_rsync module

class freezer.tests.unit.engines.rsync.test_rsync.TestRsyncEngine(methodName='runTest')

Bases: unittest.case.TestCase

create_rsync_test_file()
delete_rsync_test_file()
get_rsync_data_struct()
setUp()

Hook method for setting up the test fixture before exercising it.

test_compute_checksums_regfile_False(mock_os_path_exists, mock_os_path_lexists)
test_compute_checksums_regfile_raise(mock_os_path_exists, mock_os_path_lexists)
test_compute_checksums_regfile_true(mock_blockchecksums, mock_os_path_exists, mock_os_path_lexists, mock_open)
test_compute_incrementals_exception(mock_gen_file_header, mock_is_reg_file, mock_get_old_file_meta, mock_is_file_modified, mock_compute_checksums, mock_process_backup_data, mock_rsync_gen_delta, mock_os_path_lexists, mock_open)
test_compute_incrementals_no_oldmeta(mock_gen_file_header, mock_is_reg_file, mock_get_old_file_meta, mock_is_file_modified, mock_compute_checksums, mock_process_backup_data, mock_rsync_gen_delta, mock_os_path_lexists, mock_open)
test_compute_incrementals_ok(mock_gen_file_header, mock_is_reg_file, mock_get_old_file_meta, mock_is_file_modified, mock_compute_checksums, mock_process_backup_data, mock_rsync_gen_delta, mock_os_path_lexists, mock_open)
test_gen_file_header()
test_get_file_struct_raise_exception(mock_oslstat)
test_get_file_struct_s_ok(mock_oslstat, mock_pwd_getpwuid, mock_grp_getgrgid, mock_osmajor, mock_osminor, mock_getfiletype)
test_get_file_struct_u_ok(mock_oslstat, mock_pwd_getpwuid, mock_grp_getgrgid, mock_osmajor, mock_osminor, mock_getfiletype)
test_get_file_type(mock_stat_reg, mock_stat_dir, mock_stat_link, mock_stat_chr, mock_stat_blk, mock_stat_fifo, mock_stat_sock, mock_os_readlink)
test_get_fs_meta_struct_isnot_file(mock_os_path_isfile)
test_get_sign_delta_is_dir(mock_open, mock_os_path_isdir, mock_flush, mock_get_fs_meta_struct, mock_os_getcwd, mock_os_walk, mock_process_file, mock_process_backup_data, mock_one_shot_compress, mock_gen_struct_for_deleted_files, mock_os_chdir)
test_get_sign_delta_isnot_dir(mock_open, mock_os_path_isdir, mock_flush, mock_get_fs_meta_struct, mock_os_getcwd, mock_os_walk, mock_process_file, mock_process_backup_data, mock_one_shot_compress, mock_gen_struct_for_deleted_files)
test_is_file_modified()
test_is_reg_file()
test_make_files(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_b_exception(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_b_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_c_exception(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_c_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_d_exception(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_d_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_l_exception(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_l_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_p_exception(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_p_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_filetype_r_ok(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_files_rm_1111(mock_os_path_isdir, mock_os_path_exists, mock_make_reg_file, mock_os_makedirs, mock_os_makedev, mock_os_mknod, mock_os_mkfifo, mock_os_symlink, mock_set_inode, mock_os_unlink)
test_make_reg_file_0000_level(mock_write_changes_in_file, mock_write_file)
test_make_reg_file_1111_level(mock_write_changes_in_file, mock_write_file)
test_metadata()
test_process_backup_data()
test_process_backup_data_compress()
test_process_backup_data_encrypt()
test_process_file_is_dir_False(mock_gen_file_header, mock_get_old_file_meta, mock_get_file_struct, mock_compute_incrementals, mock_process_backup_data, mock_os_path_getsize, mock_os_path_relpath, mock_os_path_isdir)
test_process_file_is_dir_true(mock_gen_file_header, mock_get_old_file_meta, mock_get_file_struct, mock_compute_incrementals, mock_process_backup_data, mock_os_path_getsize, mock_os_path_relpath, mock_os_path_isdir)
test_process_restore_data()
test_process_restore_data_encrypt()
test_set_inode_ok(mock_oschown, mock_osutime, mock_pwd_getpwnam, mock_grp_getgrnam)
test_set_inode_raise_exception(mock_oschown, mock_osutime, mock_pwd_getpwnam, mock_grp_getgrnam, mock_getpass_getuser)