Module ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr 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 AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Dict Str 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 AttributeLoad NameLoad attr keyword Dict Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Dict Str Dict Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A oslo_utils uuidutils N/A webob nova.api.openstack.compute admin_actions admin_actions_v21 nova.api.openstack.compute.legacy_v2.contrib admin_actions admin_actions_v2 nova.compute vm_states nova exception nova objects nova test nova.tests.unit.api.openstack fakes ResetStateTestsV21 N/A N/A test NoDBTestCase N/A N/A admin_act admin_actions_v21 N/A bad_request N/A exception ValidationError setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ResetStateTestsV21 self setUp N/A N/A self uuid N/A N/A uuidutils generate_uuid N/A N/A self admin_api N/A N/A N/A self admin_act AdminActionsController N/A N/A self compute_api N/A N/A self admin_api compute_api N/A N/A self request N/A N/A self _get_request N/A N/A self context N/A N/A N/A self request environ N/A nova.context N/A _get_request N/A N/A self N/A N/A N/A N/A N/A N/A fakes HTTPRequest blank N/A test_no_state N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A self bad_request N/A N/A self admin_api _reset_state N/A self request N/A self uuid body N/A os-resetState None N/A test_bad_state N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A self bad_request N/A N/A self admin_api _reset_state N/A self request N/A self uuid body N/A os-resetState N/A state spam N/A test_no_instance N/A N/A self N/A N/A N/A N/A N/A N/A self mox StubOutWithMock N/A self compute_api get N/A exc N/A N/A exception InstanceNotFound instance_id inst_ud N/A N/A N/A N/A N/A N/A self compute_api get N/A self context N/A self uuid expected_attrs None want_objects True AndRaise exc N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A self assertRaises N/A N/A webob exc HTTPNotFound N/A N/A self admin_api _reset_state N/A self request N/A self uuid body N/A os-resetState N/A state active N/A _setup_mock N/A N/A self expected N/A N/A N/A instance N/A N/A objects Instance N/A N/A instance uuid N/A self uuid N/A N/A instance vm_state fake N/A N/A instance task_state fake N/A N/A N/A instance obj_reset_changes N/A N/A N/A N/A self mox StubOutWithMock instance save N/A N/A N/A N/A self mox StubOutWithMock N/A self compute_api get check_state N/A N/A admin_state_reset N/A True N/A N/A N/A N/A self assertEqual N/A set N/A N/A expected keys N/A N/A instance obj_what_changed N/A N/A k v N/A N/A expected items N/A N/A N/A N/A self assertEqual v N/A getattr instance k N/A Instance.%s doesn't match k N/A N/A N/A instance obj_reset_changes N/A N/A N/A N/A N/A N/A N/A self compute_api get N/A self context N/A instance uuid expected_attrs None want_objects True AndReturn instance N/A N/A N/A N/A N/A instance save admin_state_reset True WithSideEffects check_state N/A test_reset_active N/A N/A self N/A N/A N/A N/A N/A self _setup_mock N/A dict vm_state N/A vm_states ACTIVE task_state None N/A N/A N/A N/A self mox ReplayAll N/A body N/A os-resetState N/A state active N/A result N/A N/A N/A self admin_api _reset_state N/A self request N/A self uuid body body N/A N/A isinstance N/A self admin_api N/A admin_actions_v21 AdminActionsController N/A N/A status_int N/A N/A N/A self admin_api _reset_state wsgi_code N/A N/A status_int N/A result status_int N/A N/A N/A self assertEqual 202 status_int N/A test_reset_error N/A N/A self N/A N/A N/A N/A N/A self _setup_mock N/A dict vm_state N/A vm_states ERROR task_state None N/A N/A N/A N/A self mox ReplayAll N/A body N/A os-resetState N/A state error N/A result N/A N/A N/A self admin_api _reset_state N/A self request N/A self uuid body body N/A N/A isinstance N/A self admin_api N/A admin_actions_v21 AdminActionsController N/A N/A status_int N/A N/A N/A self admin_api _reset_state wsgi_code N/A N/A status_int N/A result status_int N/A N/A N/A self assertEqual 202 status_int N/A N/A ResetStateTestsV2 N/A ResetStateTestsV21 N/A N/A admin_act admin_actions_v2 N/A bad_request N/A N/A webob exc HTTPBadRequest N/A