The nova.tests.fake_volume Module

Implementation of a fake volume API.

class API

Bases: object

class Singleton
API.attach(context, volume, instance_uuid, mountpoint)
API.begin_detaching(context, volume)
API.check_attach(context, volume, instance=None)
API.check_detach(context, volume)
API.create(context, size, name, description, snapshot=None, volume_type=None, metadata=None, availability_zone=None)
API.create_snapshot(context, volume, name, description, id=None)
API.create_snapshot_force(context, volume, name, description, id=None)
API.create_snapshot_with_kwargs(context, **kwargs)
API.create_with_kwargs(context, **kwargs)
API.delete(context, volume)
API.delete_snapshot(context, snapshot)
API.detach(context, volume)
API.fake_set_snapshot_id(context, volume, snapshot_id)
API.get(context, volume_id)
API.get_all(context)
API.get_all_snapshots(context)
API.get_snapshot(context, snapshot_id)
API.initialize_connection(context, volume_id, connector)
API.reserve_volume(context, volume)
API.reset_fake_api(context)
API.roll_detaching(context, volume)
API.snapshot_list = []
API.terminate_connection(context, volume_id, connector)
API.unreserve_volume(context, volume)
API.volume_list = []
class fake_snapshot(volume_id, size, name, desc, id=None)
get(key, default=None)
instance_uuid = '4a3cd441-b9c2-11e1-afa6-0800200c9a66'
user_uuid = '4a3cd440-b9c2-11e1-afa6-0800200c9a66'
class fake_volume(size, name, description, volume_id, snapshot, volume_type, metadata, availability_zone)
get(key, default=None)
instance_uuid = '4a3cd441-b9c2-11e1-afa6-0800200c9a66'
user_uuid = '4a3cd440-b9c2-11e1-afa6-0800200c9a66'

Previous topic

The nova.tests.fake_utils Module

Next topic

The nova.tests.fakeguestfs Module

This Page