The nova.tests.test_volume Module

Tests for Volume Code.

class DriverTestCase(methodName='runTest')

Bases: nova.test.TestCase

Base Test class for Drivers.

driver_name = 'nova.volume.driver.FakeBaseDriver'
fake_get_target(obj, iqn)
setUp()
tearDown()
class ISCSITestCase(methodName='runTest')

Bases: nova.tests.test_volume.DriverTestCase

Test Case for ISCSIDriver

driver_name = 'nova.volume.driver.ISCSIDriver'
test_check_for_export_with_no_volume()
class VolumeDriverTestCase(methodName='runTest')

Bases: nova.tests.test_volume.DriverTestCase

Test case for VolumeDriver

driver_name = 'nova.volume.driver.VolumeDriver'
test_delete_busy_volume()

Test deleting a busy volume.

class VolumePolicyTestCase(methodName='runTest')

Bases: nova.test.TestCase

setUp()
tearDown()
test_check_policy()
test_check_policy_with_target()
class VolumeTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test Case for volumes.

fake_get_target(obj, iqn)
setUp()
tearDown()
test_can_delete_errored_snapshot()

Test snapshot can be created and deleted.

test_cant_delete_volume_with_snapshots()

Test snapshot can be created and deleted.

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_gigabytes_over_quota()
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_create_volume_int_size()

Test volume creation with int size.

test_create_volume_string_size()

Test volume creation with string size.

test_create_volume_usage_notification()

Ensure create volume generates appropriate usage notification

test_create_volume_with_bad_size()
test_create_volumes_over_quota()
test_delete_busy_snapshot()

Test snapshot can be created and deleted.

test_delete_busy_volume()

Test volume survives deletion if driver reports it as busy.

test_ec2_uuid_mapping()
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.

Previous topic

The nova.tests.test_vmwareapi Module

Next topic

The nova.tests.test_volume_types Module

This Page