Unit Tests for instance types code
-
class InstanceTypeFilteringTest(*args, **kwargs)
Bases: nova.test.TestCase
Test cases for the filter option available for instance_type_get_all.
-
assertFilterResults(filters, expected)
-
setUp()
-
test_min_memory_mb_AND_root_gb_filter()
-
test_min_memory_mb_filter()
-
test_min_root_gb_filter()
-
test_no_filters()
-
class InstanceTypeTestCase(*args, **kwargs)
Bases: nova.test.TestCase
Test cases for instance type code.
-
test_add_instance_type_access()
-
test_add_instance_type_access_already_exists()
-
test_add_instance_type_access_invalid_flavor()
-
test_can_read_deleted_types_using_flavor_id()
-
test_duplicate_flavorids_fail()
-
test_duplicate_names_fail()
-
test_get_all_instance_types()
-
test_instance_type_create()
-
test_instance_type_create_then_delete()
-
test_instance_type_create_with_custom_rxtx_factor()
-
test_instance_type_create_with_empty_flavorid()
-
test_instance_type_create_with_long_flavor_name()
-
test_instance_type_create_with_special_characters()
-
test_instance_type_create_without_flavorid()
-
test_instance_type_get_by_None_name_returns_default()
-
test_invalid_create_args_should_fail()
-
test_non_existent_inst_type_shouldnt_delete()
-
test_read_deleted_false_converting_flavorid()
Ensure deleted instance types are not returned when not needed (for
example when creating a server and attempting to translate from
flavorid to instance_type_id.
-
test_remove_instance_type_access()
-
test_remove_instance_type_access_doesnt_exists()
-
test_will_get_instance_by_flavor_id()
-
test_will_get_instance_type_by_id()
-
test_will_not_destroy_with_no_name()
-
test_will_not_get_bad_default_instance_type()
-
test_will_not_get_instance_by_unknown_flavor_id()
-
test_will_not_get_instance_type_by_unknown_id()
-
test_will_not_get_instance_type_with_bad_id()
-
test_will_not_get_instance_type_with_bad_name()
-
class InstanceTypeToolsTest(*args, **kwargs)
Bases: nova.test.TestCase
-
test_delete_instance_type_info()
-
test_save_instance_type_info()