Test suite for XenAPI.
Bases: nova.test.TestCase
Unit tests for code that detects the ImageType.
If we’re using Glance, then defer to the image_type field, which in this case will be ‘raw’.
If we’re using Glance, then defer to the image_type field, which in this case will be ‘vhd’.
If a kernel is specified, the image type is DISK (aka machine).
If the kernel isn’t specified, and we’re not using Glance, then DISK_RAW is assumed.
Bases: nova.test.TestCase
Unit tests for Diffie-Hellman code.
Bases: nova.test.TestCase
Unit test for verifying migration-related actions.
Bases: nova.test.TestCase
Unit tests for VM operations.
Bases: nova.test.TestCase
Unit tests for Volume operations.
This shows how to test Ops classes’ methods.
This shows how to test when exceptions are raised.
This shows how to test helper classes’ methods.
This shows how to test helper classes’ methods.
vm_utils.with_vdi_attached_here needs to be stubbed out because it calls down to the filesystem to attach a vdi. This provides a decorator to handle that.