Test suite for XenAPI.
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: object
Bases: nova.tests.test_xenapi.StubDependencies, nova.virt.xenapi.pool.ResourcePool
A ResourcePool, use stub dependencies.
Bases: object
Stub dependencies for ResourcePool.
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.test.TestCase
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for aggregate operations.
Ensure InvalidAggregateAction is raised when adding host while aggregate is not ready.
Ensure InvalidAggregateAction is raised when aggregate is deleted.
Ensure InvalidAggregateAction is raised when aggregate is in error.
Ensure InvalidAggregateAction is raised when aggregate is changing.
Ensure InvalidAggregateAction is raised when aggregate is deleted.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Should partition if instance is marked as auto_disk_config=True and virt-layer specific fail-safe checks pass.
Should not partition unless instance is marked as auto_disk_config.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Test that get_all_bw_conters returns an empty list when no data returned from Xenserver. c.f. bug #910045.
Bases: nova.test.TestCase
Unit tests for code that detects the ImageType.
Bases: nova.test.TestCase
Unit tests for code that detects the PV status based on ImageType.
Bases: nova.test.TestCase
Unit tests for Diffie-Hellman code.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Test generating of local disks, like swap and ephemeral.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Tests HostState, which holds metrics from XenServer that get reported back to the Schedulers.
Bases: nova.test.TestCase
Test ImageType class.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for live_migration.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit test for verifying migration-related actions.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for testing we find the right SR.
Bases: nova.test.TestCase
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for VM operations.
Simulates an error while downloading an image.
Verifies that the VM and VDIs created are properly cleaned up.
Simulates an error while creating VM record.
Verifies that the VM and VDIs created are properly cleaned up.
Simulates an error while attaching disks.
Verifies that the VM and VDIs created are properly cleaned up.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for Volume operations.
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.