Tests For miscellaneous util methods used with compute.
-
class ComputeValidateDeviceTestCase(methodName='runTest')
Bases: nova.test.TestCase
-
setUp()
-
test_device_in_use()
-
test_ephemeral_xenapi()
-
test_gap()
-
test_invalid_bdms()
-
test_invalid_device_prefix()
-
test_later()
-
test_lxc_names_work()
-
test_name_conversion()
-
test_no_bdms()
-
test_swap()
-
test_swap_and_ephemeral_xenapi()
-
test_swap_and_one_attachment_xenapi()
-
test_swap_no_ephemeral()
-
test_swap_xenapi()
-
test_wrap()
-
test_wrap_plus_one()
-
class UsageInfoTestCase(methodName='runTest')
Bases: nova.test.TestCase
-
setUp()
-
tearDown()
-
test_notify_about_instance_usage()
-
test_notify_usage_exists()
Ensure ‘exists’ notification generates appropriate usage data.
-
test_notify_usage_exists_deleted_instance()
Ensure ‘exists’ notification generates appropriate usage data.
-
test_notify_usage_exists_instance_not_found()
Ensure ‘exists’ notification generates appropriate usage data.