nova/nova/tests/api/openstack/compute/plugins/v3
ChangBo Guo(gcb) 0bea84ac20 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

Closes-Bug: #1327473
Change-Id: I5a8492bf8ffef8e000b13b6bdfaef1968b96f816
2014-06-18 12:59:02 +08:00
..
__init__.py API extensions framework for v3 API 2013-05-13 10:31:22 +09:30
admin_only_action_common.py Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
test_access_ips.py Remove xml unit tests for v3 api plugins 2014-01-28 17:28:17 -05:00
test_admin_actions.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_admin_password.py Add a instance lookup helper to v3 plugins. 2014-02-11 04:21:23 +11:00
test_agents.py Add API schema for v3 agents API 2013-12-27 23:07:51 +09:00
test_aggregates.py Check the length of aggregate metadata 2014-06-04 11:20:38 +08:00
test_attach_interfaces.py Merge "Cleanup and gate on pep8 rules that are stricter in hacking 0.9" 2014-06-17 22:49:59 +00:00
test_availability_zone.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_block_device_mapping.py Check if volume is bootable when creating an instance 2014-05-31 21:56:13 -03:00
test_cells.py Cells API calls return 501 when cells disabled 2014-03-18 14:16:28 +11:00
test_certificates.py Rewrite nova policy to use the new changes of common policy 2014-05-29 11:44:05 +08:00
test_config_drive.py Add "body=" argument to v3 API unit tests 2014-02-12 19:01:45 +09:00
test_console_auth_tokens.py Adds get_console_connect_info API 2014-02-28 22:05:29 +02:00
test_console_output.py Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
test_consoles.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_create_backup.py Adds create backup server extension for the V3 API 2014-02-21 10:59:07 +10:30
test_deferred_delete.py Add a instance lookup helper to v3 plugins. 2014-02-11 04:21:23 +11:00
test_evacuate.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_extended_availability_zone.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_extended_server_attributes.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_extended_status.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_extended_volumes.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_extension_info.py Rename NotAuthorized exception to Forbidden 2014-04-25 12:37:07 -07:00
test_flavor_access.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_flavor_manage.py Use HTTPRequestV3 instead of HTTPRequest in v3 API tests 2014-03-18 22:32:01 +08:00
test_flavor_rxtx.py Remove xml unit tests for v3 api plugins 2014-01-28 17:28:17 -05:00
test_flavors.py Enable flake8 H404 checking 2014-02-27 11:15:55 +04:00
test_flavors_extra_specs.py Rename NotAuthorized exception to Forbidden 2014-04-25 12:37:07 -07:00
test_hide_server_addresses.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_hosts.py Enable flake8 H404 checking 2014-02-27 11:15:55 +04:00
test_hypervisors.py Adds host_ip to hypervisor show API 2014-02-05 22:52:28 +08:00
test_instance_actions.py Rewrite nova policy to use the new changes of common policy 2014-05-29 11:44:05 +08:00
test_keypairs.py Rewrite nova policy to use the new changes of common policy 2014-05-29 11:44:05 +08:00
test_lock_server.py Fix copyright messages after admin actions split for V3 API 2014-02-20 14:41:38 +10:30
test_migrate_server.py Ensure live-migrate reverts if server not running 2014-05-23 11:47:45 +01:00
test_migrations.py Fix broken API os-migrations 2014-03-11 16:32:33 +01:00
test_multinic.py Add a instance lookup helper to v3 plugins. 2014-02-11 04:21:23 +11:00
test_multiple_create.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_pause_server.py Missing catch InstanceNotFound in v3 API 2014-04-08 09:26:36 -03:00
test_pci.py Add V3 api for pci support 2014-02-14 16:09:28 +08:00
test_quota_sets.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_remote_consoles.py Enable flake8 F841 checking 2014-05-28 14:55:08 +01:00
test_rescue.py Merge "Catch InstanceInLocked exception for rescue and instance metadata APIs" 2014-04-09 16:52:45 +00:00
test_scheduler_hints.py Merge "Fix the sample and unittest params of v3 scheduler-hints" 2014-02-27 02:33:42 +00:00
test_security_groups.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_server_actions.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_server_diagnostics.py Add exception handling in "nova diagnostics" 2014-04-06 10:22:00 +08:00
test_server_external_events.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_server_metadata.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_server_password.py Remove xml unit tests for v3 api plugins 2014-01-28 17:28:17 -05:00
test_server_usage.py Fix api direct use of instance module objects 2014-06-03 09:05:12 -07:00
test_servers.py Removes the use of mutables as default args 2014-06-18 12:59:02 +08:00
test_services.py Fix doc for service list 2014-06-16 16:57:23 +00:00
test_shelve.py Rewrite nova policy to use the new changes of common policy 2014-05-29 11:44:05 +08:00
test_suspend_server.py Adds suspend server extension for V3 API 2014-01-31 15:10:41 +10:30
test_user_data.py Add "body=" argument to v3 API unit tests 2014-02-12 19:01:45 +09:00
test_versions.py Fix broken version responses 2014-04-30 20:26:20 +02:00