Previous topic

The cinder.tests.image.test_glance Module

Next topic

The cinder.tests.integrated.integrated_helpers 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.integrated.api.client Module

exception OpenStackApiAuthenticationException(response=None, message=None)

Bases: cinder.tests.integrated.api.client.OpenStackApiException

exception OpenStackApiAuthorizationException(response=None, message=None)

Bases: cinder.tests.integrated.api.client.OpenStackApiException

exception OpenStackApiException(message=None, response=None)

Bases: exceptions.Exception

exception OpenStackApiNotFoundException(response=None, message=None)

Bases: cinder.tests.integrated.api.client.OpenStackApiException

class TestOpenStackClient(auth_user, auth_key, auth_uri)

Bases: object

Simple OpenStack API Client.

This is a really basic OpenStack API client that is under our control, so we can make changes / insert hooks for testing

api_delete(relative_uri, **kwargs)
api_get(relative_uri, **kwargs)
api_post(relative_uri, body, **kwargs)
api_put(relative_uri, body, **kwargs)
api_request(relative_uri, check_response_status=None, **kwargs)
delete_volume(volume_id)
get_volume(volume_id)
get_volumes(detail=True)
post_volume(volume)
request(url, method='GET', body=None, headers=None)