Unit tests for OpenStack Nova volume driver
-
class TestNexentaDriver(method)
Bases: nova.test.TestCase
-
TEST_SNAPSHOT_NAME = 'snapshot1'
-
TEST_SNAPSHOT_REF = {'name': 'snapshot1', 'volume_name': 'volume1'}
-
TEST_VOLUME_NAME = 'volume1'
-
TEST_VOLUME_NAME2 = 'volume2'
-
TEST_VOLUME_REF = {'name': 'volume1', 'size': 1}
-
TEST_VOLUME_REF2 = {'name': 'volume2', 'size': 1}
-
i = 4
-
setUp()
-
test_create_export()
-
test_create_export_fail_0()
-
test_create_export_fail_1()
-
test_create_export_fail_2()
-
test_create_export_fail_3()
-
test_create_export_fail_4()
-
test_create_snapshot()
-
test_create_volume()
-
test_create_volume_from_snapshot()
-
test_delete_snapshot()
-
test_delete_volume()
-
test_ensure_export()
-
test_local_path()
-
test_remove_export()
-
test_remove_export_fail_0()
-
test_remove_export_fail_1()
-
test_setup_error()
-
test_setup_error_fail()
-
class TestNexentaJSONRPC(methodName='runTest')
Bases: nova.test.TestCase
-
PASSWORD = 'password'
-
REQUEST = 'the request'
-
URL = 'http://example.com/'
-
URL_S = 'https://example.com/'
-
USER = 'user'
-
setUp()
-
test_call()
-
test_call_auto()
-
test_call_deep()
-
test_call_error()
-
test_call_fail()