The nova.tests.api.openstack.compute.contrib.test_volumes Module

class BootFromVolumeTest(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_create_root_volume()
class CommonUnprocessableEntityTestCase

Bases: object

controller_cls = None
entity_name = None
kwargs = {}

Tests of places we throw 422 Unprocessable Entity from

resource = None
setUp()
test_create_malformed_entity()
test_create_missing_volume()
test_create_no_body()
class TestVolumeCreateRequestXMLDeserializer(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_availability_zone()
test_display_description()
test_display_name()
test_full_volume()
test_metadata()
test_minimal_volume()
test_volume_type()
class UnprocessableAttachmentTestCase(*args, **kwargs)

Bases: nova.tests.api.openstack.compute.contrib.test_volumes.CommonUnprocessableEntityTestCase, nova.test.TestCase

controller_cls

alias of VolumeAttachmentController

entity_name = 'volumeAttachment'
kwargs = {'server_id': 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'}
resource = 'servers/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/os-volume_attachments'
class UnprocessableSnapshotTestCase(*args, **kwargs)

Bases: nova.tests.api.openstack.compute.contrib.test_volumes.CommonUnprocessableEntityTestCase, nova.test.TestCase

controller_cls

alias of SnapshotController

entity_name = 'snapshot'
resource = 'os-snapshots'
class UnprocessableVolumeTestCase(*args, **kwargs)

Bases: nova.tests.api.openstack.compute.contrib.test_volumes.CommonUnprocessableEntityTestCase, nova.test.TestCase

controller_cls

alias of VolumeController

entity_name = 'volume'
resource = 'os-volumes'
class VolumeApiTest(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_volume_create()
test_volume_create_bad()
test_volume_delete()
test_volume_delete_no_volume()
test_volume_detail()
test_volume_index()
test_volume_show()
test_volume_show_no_volume()
class VolumeAttachTests(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_attach_volume()
test_attach_volume_bad_id()
test_delete()
test_delete_vol_not_found()
test_show()
class VolumeSerializerTest(*args, **kwargs)

Bases: nova.test.TestCase

test_attach_index_serializer()
test_attach_show_create_serializer()
test_volume_index_detail_serializer()
test_volume_show_create_serializer()
fake_attach_volume(self, context, instance, volume_id, device)
fake_compute_api_create(cls, context, instance_type, image_href, **kwargs)
fake_detach_volume(self, context, volume_id)
fake_get_instance(self, context, instance_id)
fake_get_instance_bdms(self, context, instance)

Previous topic

The nova.tests.api.openstack.compute.contrib.test_virtual_interfaces Module

Next topic

The nova.tests.api.openstack.compute.extensions.foxinsocks Module

This Page