The nova.tests.integrated.api.client Module

exception OpenStackApiAuthenticationException(response=None, message=None)

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

exception OpenStackApiAuthorizationException(response=None, message=None)

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

exception OpenStackApiException(message=None, response=None)

Bases: exceptions.Exception

exception OpenStackApiNotFoundException(response=None, message=None)

Bases: nova.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, strip_version=False, **kwargs)
delete_flavor(flavor_id)
delete_image(image_id)
delete_server(server_id)
delete_server_volume(server_id, attachment_id)
delete_volume(volume_id)
get_flavor(flavor_id)
get_flavors(detail=True)
get_image(image_id)
get_images(detail=True)
get_server(server_id)
get_server_volume(server_id, attachment_id)
get_server_volumes(server_id)
get_servers(detail=True, search_opts=None)
get_volume(volume_id)
get_volumes(detail=True)
post_flavor(flavor)
post_image(image)
post_server(server)
post_server_action(server_id, data)
post_server_volume(server_id, volume_attachment)
post_volume(volume)
put_server(server_id, server)
request(url, method='GET', body=None, headers=None)

Previous topic

The nova.tests.image.test_s3 Module

Next topic

The nova.tests.integrated.integrated_helpers Module

This Page