Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore CompareEq NameLoad Str Assign NameStore IfExp BinOpBitXor NameLoad NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Dict Str Str decorator_list decorator_list
N/A N/A stubout N/A webob.exc nova context nova exception nova flags nova log logging nova test nova.api.openstack.contrib hosts os_hosts nova.scheduler api scheduler_api N/A FLAGS N/A flags FLAGS N/A LOG N/A N/A logging getLogger nova.tests.hosts N/A HOST_LIST N/A N/A host_name service host_c1 compute N/A host_name service host_c2 compute N/A host_name service host_v1 volume N/A host_name service host_v2 volume stub_get_host_list N/A N/A req N/A N/A N/A HOST_LIST N/A stub_set_host_enabled N/A N/A context host enabled N/A N/A N/A fail N/A host host_c2 N/A status N/A N/A enabled fail enabled disabled N/A status N/A stub_host_power_action N/A N/A context host action N/A N/A N/A action N/A FakeRequest N/A object N/A N/A environ N/A nova.context N/A N/A context get_admin_context N/A HostTestCase N/A N/A test TestCase N/A N/A Test Case for hosts. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super HostTestCase self setUp N/A N/A self controller N/A N/A os_hosts HostController N/A N/A self req N/A FakeRequest N/A N/A N/A N/A self stubs Set scheduler_api get_host_list stub_get_host_list N/A N/A N/A N/A self stubs Set N/A N/A self controller compute_api set_host_enabled stub_set_host_enabled N/A N/A N/A N/A self stubs Set N/A N/A self controller compute_api host_power_action stub_host_power_action N/A test_list_hosts N/A N/A self N/A N/A N/A Verify that the compute hosts are returned. N/A hosts N/A N/A os_hosts _list_hosts N/A self req N/A N/A N/A self assertEqual hosts HOST_LIST N/A compute_hosts N/A N/A os_hosts _list_hosts N/A self req compute N/A expected N/A host N/A host HOST_LIST N/A N/A host N/A service compute N/A N/A N/A self assertEqual compute_hosts expected N/A test_disable_host N/A N/A self N/A N/A N/A dis_body N/A status disable N/A result_c1 N/A N/A N/A self controller update N/A self req host_c1 body dis_body N/A N/A N/A self assertEqual N/A result_c1 N/A status disabled N/A result_c2 N/A N/A N/A self controller update N/A self req host_c2 body dis_body N/A N/A N/A self assertEqual N/A result_c2 N/A status enabled N/A test_enable_host N/A N/A self N/A N/A N/A en_body N/A status enable N/A result_c1 N/A N/A N/A self controller update N/A self req host_c1 body en_body N/A N/A N/A self assertEqual N/A result_c1 N/A status enabled N/A result_c2 N/A N/A N/A self controller update N/A self req host_c2 body en_body N/A N/A N/A self assertEqual N/A result_c2 N/A status disabled N/A test_host_startup N/A N/A self N/A N/A N/A result N/A N/A N/A self controller startup N/A self req host_c1 N/A N/A N/A self assertEqual N/A result N/A power_action startup N/A test_host_shutdown N/A N/A self N/A N/A N/A result N/A N/A N/A self controller shutdown N/A self req host_c1 N/A N/A N/A self assertEqual N/A result N/A power_action shutdown N/A test_host_reboot N/A N/A self N/A N/A N/A result N/A N/A N/A self controller reboot N/A self req host_c1 N/A N/A N/A self assertEqual N/A result N/A power_action reboot N/A test_bad_status_value N/A N/A self N/A N/A N/A bad_body N/A status bad N/A N/A N/A self assertRaises N/A N/A webob exc HTTPBadRequest N/A N/A self controller update N/A self req host_c1 body bad_body N/A test_bad_update_key N/A N/A self N/A N/A N/A bad_body N/A crazy bad N/A N/A N/A self assertRaises N/A N/A webob exc HTTPBadRequest N/A N/A self controller update N/A self req host_c1 body bad_body N/A test_bad_host N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exception HostNotFound N/A N/A self controller update N/A self req bogus_host_name body N/A status disable N/A N/A