Previous topic

The cinder.tests.test_wsgi Module

Next topic

The cinder.tests.test_zadara 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.test_xiv Module

class XIVFakeProxyDriver(xiv_info, logger, expt)

Bases: object

Fake XIV Proxy Driver.

create_volume(volume)
delete_volume(volume)
initialize_connection(volume, connector)
is_volume_attached(volume, connector)
setup(context)
terminate_connection(volume, connector)
volume_exists(volume)
class XIVVolumeDriverTest(methodName='runTest')

Bases: cinder.test.TestCase

Test IBM XIV volume driver.

setUp()

Initialize IVM XIV Driver.

test_create_volume()

Test creating a volume.

test_create_volume_should_fail_if_no_pool_space_left()

Vertify that the xiv_proxy validates volume pool space.

test_delete_volume()

Verify that a volume is deleted.

test_delete_volume_should_fail_for_not_existing_volume()

Verify that deleting a non-existing volume is OK.

test_initialize_connection()

Test that inititialize connection attaches volume to host.

test_initialize_connection_should_fail_for_non_existing_volume()

Verify that initialize won’t work for non-existing volume.

test_initialized_should_set_xiv_info()

Test that the san flags are passed to the XIV proxy.

test_setup_should_fail_if_connection_is_invalid()

Test that the xiv_proxy validates connection.

test_setup_should_fail_if_credentials_are_invalid()

Test that the xiv_proxy validates credentials.

test_terminate_connection()

Test terminating a connection.

test_terminate_connection_should_fail_on_non_attached_volume()

Test that terminate won’t work for volumes that are not attached.

test_terminate_connection_should_fail_on_non_existing_volume()

Test that terminate won’t work for non-existing volumes.

test_volume_exists()

Test the volume exist method with a volume that doesn’t exist.