Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list FunctionDef arguments args defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str ListLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str ListLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Return Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Return Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr 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 FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A oslo_config cfg oslo_utils uuidutils N/A webob nova.api.openstack.compute.legacy_v2.contrib server_groups nova.api.openstack.compute server_groups sg_v21 nova.api.openstack extensions nova context nova quota nova test nova.tests.unit.api.openstack fakes nova.tests uuidsentinel uuids N/A CONF N/A cfg CONF AttrDict N/A dict N/A __getattr__ N/A N/A self k N/A N/A N/A N/A self N/A k N/A N/A server_group_template N/A N/A N/A kwargs N/A N/A sgroup N/A N/A kwargs copy N/A N/A N/A sgroup setdefault name test N/A sgroup N/A server_group_db N/A N/A sg N/A N/A N/A attrs N/A N/A sg copy N/A N/A id attrs N/A N/A N/A attrs N/A uuid N/A N/A attrs pop id N/A N/A policies attrs N/A N/A policies N/A N/A attrs pop policies N/A N/A attrs N/A policies policies N/A N/A N/A attrs N/A policies N/A N/A N/A members attrs N/A N/A members N/A N/A attrs pop members N/A N/A attrs N/A members members N/A N/A N/A attrs N/A members N/A N/A N/A metadata attrs N/A N/A N/A attrs N/A metadetails N/A N/A attrs pop metadata N/A N/A N/A attrs N/A metadetails N/A N/A N/A attrs N/A deleted 0 N/A N/A attrs N/A deleted_at None N/A N/A attrs N/A created_at None N/A N/A attrs N/A updated_at None N/A N/A user_id attrs N/A N/A N/A attrs N/A user_id N/A fakes FAKE_USER_ID N/A N/A project_id attrs N/A N/A N/A attrs N/A project_id N/A fakes FAKE_PROJECT_ID N/A N/A attrs N/A id 7 N/A N/A AttrDict attrs N/A ServerGroupQuotasTestV21 N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ServerGroupQuotasTestV21 self setUp N/A N/A N/A self _setup_controller N/A N/A self req N/A N/A N/A fakes HTTPRequest blank N/A _setup_controller N/A N/A self N/A N/A N/A N/A self controller N/A N/A sg_v21 ServerGroupController N/A _setup_quotas N/A N/A self N/A N/A N/A N/A _assert_server_groups_in_use N/A N/A self project_id user_id in_use N/A N/A N/A ctxt N/A N/A context get_admin_context N/A result N/A N/A N/A quota QUOTAS get_user_quotas ctxt project_id user_id N/A N/A N/A self assertEqual N/A N/A result N/A server_groups N/A in_use in_use N/A test_create_server_group_normal N/A N/A self N/A N/A N/A N/A N/A self _setup_quotas N/A sgroup N/A server_group_template N/A policies N/A anti-affinity N/A N/A sgroup N/A policies policies N/A res_dict N/A N/A N/A self controller create N/A self req body N/A server_group sgroup N/A N/A N/A self assertEqual N/A N/A res_dict N/A server_group N/A name test N/A N/A N/A self assertTrue N/A N/A uuidutils is_uuid_like N/A N/A res_dict N/A server_group N/A id N/A N/A N/A self assertEqual N/A N/A res_dict N/A server_group N/A policies policies N/A test_create_server_group_quota_limit N/A N/A self N/A N/A N/A N/A N/A self _setup_quotas N/A sgroup N/A server_group_template N/A policies N/A anti-affinity N/A N/A sgroup N/A policies policies N/A i N/A range N/A CONF quota_server_groups N/A N/A N/A N/A N/A self controller create N/A self req body N/A server_group sgroup N/A N/A N/A self assertRaises N/A N/A webob exc HTTPForbidden N/A N/A self controller create N/A self req body N/A server_group sgroup N/A test_delete_server_group_by_admin N/A N/A self N/A N/A N/A N/A N/A self _setup_quotas N/A sgroup N/A server_group_template N/A policies N/A anti-affinity N/A N/A sgroup N/A policies policies N/A res N/A N/A N/A self controller create N/A self req body N/A server_group sgroup N/A sg_id N/A N/A res N/A server_group N/A id N/A context N/A N/A N/A self req environ N/A nova.context N/A N/A N/A self _assert_server_groups_in_use N/A context project_id N/A context user_id 1 N/A req N/A N/A N/A fakes HTTPRequest blank use_admin_context True N/A N/A N/A N/A self controller delete req sg_id N/A N/A N/A self _assert_server_groups_in_use N/A context project_id N/A context user_id 0 N/A test_delete_server_group_by_id N/A N/A self N/A N/A N/A N/A N/A self _setup_quotas N/A sg N/A server_group_template id N/A uuids sg1_id N/A N/A self called False server_group_delete N/A N/A context id N/A N/A N/A N/A self called True N/A return_server_group N/A N/A context group_id N/A N/A N/A N/A N/A self assertEqual N/A sg N/A id group_id N/A N/A server_group_db sg N/A N/A N/A N/A self stub_out nova.db.instance_group_delete server_group_delete N/A N/A N/A self stub_out nova.db.instance_group_get return_server_group N/A resp N/A N/A N/A self controller delete N/A self req N/A uuids sg1_id N/A N/A N/A self assertTrue N/A self called N/A N/A isinstance N/A self controller N/A sg_v21 ServerGroupController N/A N/A status_int N/A N/A N/A self controller delete wsgi_code N/A N/A status_int N/A resp status_int N/A N/A N/A self assertEqual 204 status_int N/A N/A ServerGroupQuotasTestV2 N/A ServerGroupQuotasTestV21 N/A _setup_controller N/A N/A self N/A N/A N/A N/A self ext_mgr N/A N/A N/A self mox CreateMock N/A extensions ExtensionManager N/A N/A self controller N/A N/A server_groups ServerGroupController N/A self ext_mgr N/A _setup_quotas N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self ext_mgr is_loaded os-server-group-quotas MultipleTimes AndReturn True N/A N/A N/A N/A self mox ReplayAll N/A N/A