Previous topic

The cinder.tests.declare_flags Module

Next topic

The cinder.tests.fake_flags Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.tests.fake_driver Module

class FakeISCSIDriver(*args, **kwargs)

Bases: cinder.volume.drivers.lvm.LVMISCSIDriver

Logs calls instead of executing.

check_for_setup_error()

No setup necessary in fake mode.

static fake_execute(cmd, *_args, **_kwargs)

Execute that simply logs the command.

initialize_connection(volume, connector)
terminate_connection(volume, connector, **kwargs)
class LoggingVolumeDriver(execute=<function execute at 0x2a496e0>, *args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Logs and records calls, for unit tests.

static all_logs()
check_for_setup_error()
static clear_logs()
clear_volume(volume)
create_export(context, volume)
create_volume(volume)
delete_volume(volume)
ensure_export(context, volume)
initialize_connection(volume, connector)
local_path(volume)
static log_action(action, parameters)

Logs the command.

static logs_like(action, **kwargs)
remove_export(context, volume)
terminate_connection(volume, connector)