The nova.tests.fake_libvirt_utils Module

class File(path, mode=None)

Bases: object

chown(path, owner)
copy_image(src, dest)
create_cow_image(backing_file, path)
create_image(disk_format, path, size)
create_lvm_image(vg, lv, size, sparse=False)
create_snapshot(disk_path, snapshot_name)
delete_snapshot(disk_path, snapshot_name)
extract_snapshot(disk_path, source_fmt, snapshot_name, out_path, dest_fmt)
fetch_image(context, target, image_id, user_id, project_id)
file_delete(path)
file_open(path, mode=None)
get_disk_backing_file(path)
get_fs_info(path)
get_iscsi_initiator()
load_file(path)
mkfs(fs, path)
remove_logical_volumes(*paths)
resize2fs(path)
volume_group_free_space(vg)
write_to_file(path, contents, umask=None)

Previous topic

The nova.tests.fake_imagebackend Module

Next topic

The nova.tests.fake_network Module

This Page