Tests for the aggregates admin api.
-
class AggregateTestCase(*args, **kwargs)
Bases: nova.test.TestCase
Test Case for aggregates admin api.
-
setUp()
-
test_add_host()
-
test_add_host_with_already_added_host()
-
test_add_host_with_bad_aggregate()
-
test_add_host_with_bad_host()
-
test_add_host_with_missing_host()
-
test_create()
-
test_create_with_duplicate_aggregate_name()
-
test_create_with_incorrect_availability_zone()
-
test_create_with_no_aggregate()
-
test_create_with_no_availability_zone()
-
test_create_with_no_name()
-
test_delete_aggregate()
-
test_delete_aggregate_with_bad_aggregate()
-
test_index()
-
test_remove_host()
-
test_remove_host_with_bad_aggregate()
-
test_remove_host_with_bad_host()
-
test_remove_host_with_host_not_in_aggregate()
-
test_remove_host_with_missing_host()
-
test_set_metadata()
-
test_set_metadata_with_bad_aggregate()
-
test_set_metadata_with_missing_metadata()
-
test_show()
-
test_show_with_invalid_id()
-
test_update()
-
test_update_with_bad_aggregate()
-
test_update_with_no_update_key()
-
test_update_with_no_updates()
-
test_update_with_only_availability_zone()
-
test_update_with_only_name()
-
test_update_with_wrong_updates()
-
class FakeRequest
Bases: object
-
environ = {'nova.context': <nova.context.RequestContext object at 0x12eaaa50>}