The nova.tests.test_imagebackend Module

class BackendTestCase(*args, **kwargs)

Bases: nova.test.TestCase

INSTANCE = {'name': 'fake-instance', 'uuid': '9b67f881-fb63-4cf9-80f8-667cdf8e6a78'}
NAME = 'fake-name.suffix'
get_image(use_cow, image_type)
test_image_default()
test_image_lvm()
test_image_qcow2()
test_image_raw()
class LvmTestCase(*args, **kwargs)

Bases: nova.tests.test_imagebackend._ImageTestCase, nova.test.TestCase

SIZE = 1024
TEMPLATE_SIZE = 512
VG = 'FakeVG'
prepare_mocks()
setUp()
test_create_image()
test_create_image_generated()
test_create_image_generated_negative()
test_create_image_generated_sparsed()
test_create_image_negative()
test_create_image_resize()
test_create_image_resize_sparsed()
test_create_image_sparsed()
test_prealloc_image()
class Qcow2TestCase(*args, **kwargs)

Bases: nova.tests.test_imagebackend._ImageTestCase, nova.test.TestCase

SIZE = 1073741824
prepare_mocks()
setUp()
test_create_image()
test_create_image_too_small()
test_create_image_with_size()
test_generate_resized_backing_files()
test_qcow2_exists_and_has_no_backing_file()
class RawTestCase(*args, **kwargs)

Bases: nova.tests.test_imagebackend._ImageTestCase, nova.test.TestCase

SIZE = 1024
prepare_mocks()
setUp()
test_correct_format()
test_create_image()
test_create_image_extend()
test_create_image_generated()

Previous topic

The nova.tests.test_image_utils Module

Next topic

The nova.tests.test_imagecache Module

This Page