Test suite for XenAPI.
Bases: object
Bases: nova.test.TestCase
Test that cmp_version compares a as equal to b
Test that cmp_version compares a as greater than b
Test that cmp_version compares by length as last resort
Test that cmp_version compares a as less than b
Test that cmp_version compares non-lexically
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
Unit tests for xenapi utils.
Ensure image properties include instance system metadata as well as few local settings.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for aggregate operations.
Ensure the undo operation works correctly on add.
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 join_slave gets called when the request gets to master.
Ensure AggregateError is raised if removing the master.
Ensure we can remove a host from an aggregate even if in error.
Ensure InvalidAggregateAction is raised when aggregate is changing.
Ensure InvalidAggregateAction is raised when aggregate is deleted.
Ensure metadata are cleared after removal.
Ensure eject slave gets called.
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Should not partition unless fail safes pass
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_usage returns an empty list when metrics compilation failed. c.f. bug #910045.
Bases: nova.test.TestCase
Unit tests for code that detects the 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
Test ephemeral disk generation.
Test swap disk generation.
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.
Can convert from string to type id.
Can convert from type id to type string.
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.
Ensure the SR is found when using a different filter.
Ensure the default SR is found regardless of other-config.
Ensure the default local-storage is found.
Ensure StorageRepositoryNotFound is raise when wrong filter.
Bases: nova.test.TestCase
Bases: nova.tests.xenapi.stubs.XenAPITestBase
Unit tests for VM operations.
Test spawning with an empty dns list
Simulates an error while downloading an image.
Verifies that VDIs created are properly cleaned up.
Simulates an error while creating VM record.
It verifies that VDIs created are properly cleaned up.
Test spawning with injected_files
Bases: nova.tests.xenapi.stubs.XenAPITestBase
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.
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.