Tests for Zadara VPSA volume driver
-
class FakeHTTPConnection(host, port, use_ssl=False)
Bases: object
A fake httplib.HTTPConnection for zadara volume driver tests.
-
close()
-
getresponse()
-
request(method, url, body)
-
class FakeHTTPSConnection(host, port)
Bases: cinder.tests.test_zadara.FakeHTTPConnection
-
class FakeRequest(method, url, body)
Bases: object
-
read()
-
class ZadaraVPSADriverTestCase(methodName='runTest')
Bases: cinder.test.TestCase
Test case for Zadara VPSA volume driver
-
setUp()
-
tearDown()
-
test_bad_http_response()
Coverage test for non-good HTTP response
-
test_create_destroy()
Create/Delete volume.
-
test_create_destroy_multiple()
Create/Delete multiple volumes.
-
test_delete_without_detach()
Test volume deletion without detach
-
test_destroy_non_existent()
Delete non-existent volume.
-
test_empty_apis()
Test empty func (for coverage only).
-
test_no_active_ctrl()
-
test_ssl_use()
Coverage test for SSL connection
-
test_volume_attach_detach()
Test volume attachment and detach
-
test_volume_attach_multiple_detach()
Test multiple volume attachment and detach
-
test_wrong_attach_params()
Test different wrong attach scenarios
-
test_wrong_detach_params()
Test different wrong detachment scenarios
-
test_wrong_login_reply()
Test wrong login reply