The nova.tests.test_cinder Module

class CinderTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for cinder volume api.

assert_called(*args, **kwargs)
setUp()
test_cinder_api_insecure()
test_cinder_endpoint_template()
test_cinder_http_retries()
test_context_with_catalog()
test_get_non_existing_volume()
test_volume_with_image_metadata()
class FakeCinderClient(username, password, project_id=None, auth_url=None, insecure=False, retries=None)

Bases: cinderclient.v1.client.Client

class FakeClientFactory

Bases: object

Keep a ref to the FakeClient since volume.api.cinder throws it away.

assert_called(method, url, body=None, pos=-1)
class FakeHTTPClient(user, password, projectid, auth_url, insecure=False, timeout=None, tenant_id=None, proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', service_type=None, service_name=None, volume_service_name=None, retries=None, http_log_debug=False, cacert=None)

Bases: cinderclient.client.HTTPClient

get_volumes_1234(**kw)
get_volumes_5678(**kw)

Volume with image metadata.

get_volumes_nonexisting(**kw)

Previous topic

The nova.tests.test_block_device Module

Next topic

The nova.tests.test_configdrive2 Module

This Page