This Page

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

The nova.tests.test_volume Module

Tests for Volume Code.

class nova.tests.test_volume.AOETestCase(methodName='runTest')

Bases: nova.tests.test_volume.DriverTestCase

Test Case for AOEDriver

setUp()
tearDown()
test_check_for_export_with_all_vblade_processes()

No log message when all the vblade processes are running.

test_check_for_export_with_no_volume()

No log message when no volume is attached to an instance.

test_check_for_export_with_vblade_process_missing()

Output a warning message when some vblade processes aren’t running.

class nova.tests.test_volume.DriverTestCase(methodName='runTest')

Bases: nova.test.TestCase

Base Test class for Drivers.

setUp()
tearDown()
class nova.tests.test_volume.ISCSITestCase(methodName='runTest')

Bases: nova.tests.test_volume.DriverTestCase

Test Case for ISCSIDriver

setUp()
tearDown()
test_check_for_export_with_all_volume_exported()

No log message when all the vblade processes are running.

test_check_for_export_with_no_volume()

No log message when no volume is attached to an instance.

test_check_for_export_with_some_volume_missing()

Output a warning message when some volumes are not recognied by ietd.

class nova.tests.test_volume.VolumeTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test Case for volumes.

setUp()
tearDown()
test_concurrent_volumes_get_different_targets()

Ensure multiple concurrent volumes get different targets.

test_create_delete_snapshot()

Test snapshot can be created and deleted.

test_create_delete_volume()

Test volume can be created and deleted.

test_create_snapshot_force()

Test snapshot in use can be created forcibly.

test_create_volume_from_snapshot()

Test volume can be created from a snapshot.

test_multi_node()
test_run_attach_detach_volume()

Make sure volume can be attached and detached from instance.

test_too_big_volume()

Ensure failure if a too large of a volume is requested.

test_too_many_volumes()

Ensure that NoMoreTargets is raised when we run out of volumes.