nova/nova/tests/unit/api/openstack/compute
melanie witt 5c90b25e49 Count instances to check quota
This changes instances, cores, and ram from ReservableResources to
CountableResources and replaces quota reserve/commit/rollback with
check_deltas accordingly.

All of the reservation and usage related unit tests are removed because:

  1. They rely on some global QuotaEngine resources being
     ReservableResources and every ReservableResource has been removed.
  2. Reservations and usages are no longer in use anywhere in the
     codebase.

Part of blueprint cells-count-resources-to-check-quota-in-api

Change-Id: I9269ffa2b80e48db96c622d0dc0817738854f602
2017-07-18 17:31:15 +00:00
..
legacy_v2 Remove legacy v2 API tests which use wsgi_app() 2016-05-25 12:47:09 +09:00
__init__.py
admin_only_action_common.py objects: you want'em 2016-06-20 21:36:05 -04:00
basic.py Remove last of the plugins/v3 from unit tests 2015-08-18 15:25:46 +08:00
dummy_schema.py Remove last of the plugins/v3 from unit tests 2015-08-18 15:25:46 +08:00
microversions.py Remove last of the plugins/v3 from unit tests 2015-08-18 15:25:46 +08:00
test_access_ips.py Make several API unit tests pass with CONF.use_neutron=True by default 2017-01-03 20:59:36 -05:00
test_admin_actions.py Remove legacy v2 unit tests[a-e] 2016-05-04 10:22:04 -07:00
test_admin_password.py trivial: Use valid UUIDs in test_admin_password 2017-07-04 13:34:05 +00:00
test_agents.py Remove legacy v2 unit tests[a-e] 2016-05-04 10:22:04 -07:00
test_aggregates.py Merge "Remove mox from unit/api/openstack/compute/test_aggregates.py" 2017-03-07 20:06:24 +00:00
test_api.py Remove unnecessary setUp function in testcase 2017-03-30 12:55:16 +08:00
test_attach_interfaces.py API support for tagged device attachment 2017-06-30 09:05:34 +03:00
test_auth.py Tests: use fakes.HTTPRequest in compute tests 2016-08-24 19:03:54 +03:00
test_availability_zone.py Remove mox in test_availability_zone.py 2017-06-26 16:55:08 +09:00
test_baremetal_nodes.py Deprecate Baremetal and fping API 2016-07-26 14:14:44 +08:00
test_block_device_mapping.py Remove the usage of extension black/white list opts in BDM tests 2017-03-31 10:53:14 +08:00
test_block_device_mapping_v1.py Remove the usage of extension black/white list opts in BDM tests 2017-03-31 10:53:14 +08:00
test_cells.py Add offset & limit docs & tests 2017-02-02 12:28:06 -05:00
test_certificates.py Remove nova-cert 2017-04-27 22:28:01 -04:00
test_cloudpipe.py Remove cloudpipe APIs 2017-05-04 16:13:45 +08:00
test_cloudpipe_update.py Remove cloudpipe APIs 2017-05-04 16:13:45 +08:00
test_config_drive.py Remove the usage of extension black/white list opt in config drive 2017-03-31 10:53:20 +08:00
test_console_auth_tokens.py Fix ConsoleAuthTokens to work for all console types 2016-06-22 17:11:09 +03:00
test_console_output.py Enable py3 tests for unit.api.openstack.compute.test_console_output 2016-09-08 02:12:56 +00:00
test_consoles.py Remove usage of config option verbose 2017-02-27 10:02:45 +08:00
test_create_backup.py Limit the min length of string for integer JSON-Schema 2017-05-27 10:14:28 +00:00
test_deferred_delete.py Remove mox from api/openstack/compute/test_deferred_delete.py 2017-02-15 08:22:22 +00:00
test_disk_config.py remove mox from unit/api/openstack/compute/test_disk_config.py 2017-03-24 09:44:28 +08:00
test_evacuate.py Teach HostAPI about cells 2017-04-06 10:57:06 -07:00
test_extended_availability_zone.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_hypervisors.py Remove mox from api/openstack/compute/test_extended_hypervisors.py 2017-01-04 13:54:45 +07:00
test_extended_ips.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_ips_mac.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_server_attributes.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_status.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extended_volumes.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_extension_info.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
test_extensions.py Use plain routes list for '/servers' endpoint instead of stevedore 2017-04-25 22:38:33 +08:00
test_fixed_ips.py Deprecate FixedIP related proxy APIs 2016-07-21 13:31:16 +08:00
test_flavor_access.py Merge "Remove legacy v2.0 code from test_flavor_access" 2017-06-06 23:28:33 +00:00
test_flavor_disabled.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_flavor_manage.py Trivial: Remove unused method 2017-03-31 11:51:42 +05:30
test_flavor_rxtx.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_flavorextradata.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_flavors.py remove mox from unit/api/openstack/compute/test_flavors.y 2017-03-19 14:32:06 +08:00
test_flavors_extra_specs.py Mock.side_effects does not exist, use Mock.side_effect instead 2016-09-23 15:44:33 +08:00
test_floating_ip_dns.py Remove mox from api/openstack/compute/test_floating_ip_dns.py 2017-01-10 10:59:57 +00:00
test_floating_ip_pools.py Make test_floating_ip* pass with CONF.use_neutron=True by default 2017-01-03 20:59:36 -05:00
test_floating_ips.py Count floating ips to check quota 2017-06-19 21:51:46 +00:00
test_floating_ips_bulk.py Deprecated floating ip related proxy APIs 2016-07-26 14:14:44 +08:00
test_fping.py Remove usage of config option verbose 2017-02-27 10:02:45 +08:00
test_hide_server_addresses.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_hosts.py Fix unit test exception KeyErrors 2017-05-05 14:40:16 +00:00
test_hypervisor_status.py Microversion 2.28 changes cpu_info string to JSON object 2016-06-01 16:25:17 +00:00
test_hypervisors.py Fix unit test exception KeyErrors 2017-05-05 14:40:16 +00:00
test_image_metadata.py [proxy-api] microversion 2.39 deprecates image-metadata proxy API 2016-12-07 19:22:43 +03:00
test_image_size.py Remove GlanceImageService 2017-03-03 18:07:24 +00:00
test_images.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
test_instance_actions.py Replace uuid4() with uuidsentinel 2016-11-29 11:49:24 +05:30
test_instance_usage_audit_log.py Merge "Remove mox from compute/test_instance_usage_audit_log.py" 2016-06-09 10:34:29 +00:00
test_keypairs.py Add check_deltas() and limit_check_project_and_user() to Quotas 2017-05-28 05:20:22 +00:00
test_limits.py [proxy-api] microversion 2.39 deprecates image-metadata proxy API 2016-12-07 19:22:43 +03:00
test_lock_server.py Fix policy tests for project_id enforcement 2016-09-11 23:43:41 +00:00
test_microversions.py Tolerate WebOb===1.7.1 2017-02-15 09:32:08 -05:00
test_migrate_server.py Fix calling super function in setUp method 2016-10-01 15:47:46 +09:00
test_migrations.py Remove mox from nova/tests/unit/api/openstack/compute/test_migrations.py 2017-03-24 14:21:06 +08:00
test_multinic.py Deprecate Multinic, floatingip action and os-virtual-interface API 2017-04-25 12:04:05 -04:00
test_multiple_create.py Count instances to check quota 2017-07-18 17:31:15 +00:00
test_networks.py Merge "Remove mox from api/openstack/compute/test_networks.py" 2016-12-17 17:02:34 +00:00
test_neutron_security_groups.py Count security groups to check quota 2017-06-19 21:51:46 +00:00
test_pause_server.py Fix policy tests for project_id enforcement 2016-09-11 23:43:41 +00:00
test_plugin_framework.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_quota_classes.py Fix quota class set APIs 2017-07-10 21:44:08 +00:00
test_quotas.py Count networks to check quota 2017-06-19 21:51:46 +00:00
test_remote_consoles.py objects: you want'em 2016-06-20 21:36:05 -04:00
test_rescue.py Merge "Remove mox from api/openstack/compute/test_rescue.py" 2017-01-03 17:06:30 +00:00
test_scheduler_hints.py Remove the usage of extension black/white list opt in scheduler hints 2017-04-06 07:12:58 +00:00
test_security_group_default_rules.py Make test_security_group_default_rules work with use_neutron=True by default 2017-01-03 20:59:36 -05:00
test_security_groups.py Count security groups to check quota 2017-06-19 21:51:46 +00:00
test_server_actions.py Catch exception.OverQuota when create image for volume backed instance 2017-05-18 09:20:33 +08:00
test_server_diagnostics.py Standardization of VM diagnostics info API. 2017-06-05 07:45:51 +00:00
test_server_external_events.py Add ability to signal and perform online volume size change 2017-07-12 11:53:20 -04:00
test_server_group_quotas.py Count server groups to check quota 2017-06-08 00:35:37 +00:00
test_server_groups.py Move to proper target_cell calling convention 2017-05-23 08:12:42 -07:00
test_server_metadata.py Move quota options to a config group. 2017-01-04 22:57:14 -06:00
test_server_migrations.py Fix data error in api samples doc 2016-11-16 20:58:06 +08:00
test_server_password.py Move config options from nova/api directory (5) 2016-05-17 13:07:47 +00:00
test_server_reset_state.py Remove mox stubs in api/openstack/compute/test_server_reset_state.py 2017-02-16 15:47:21 +07:00
test_server_start_stop.py Make servers API use cell-targeted context 2017-02-22 10:33:51 -08:00
test_server_tags.py Send out notifications when instance tags changed 2017-06-06 12:53:28 -04:00
test_server_usage.py Merge "Remove unused init_only kwarg from wsgi app init" 2017-01-11 04:13:39 +00:00
test_serversV21.py Count instances to check quota 2017-07-18 17:31:15 +00:00
test_services.py Add bool_from_string for force-down action 2017-06-12 21:53:23 +00:00
test_shelve.py Merge "Stop using mox stubs in test_shelve.py" 2017-01-18 23:52:43 +00:00
test_simple_tenant_usage.py Teach simple_tenant_usage about cells 2017-03-09 07:44:27 -08:00
test_snapshots.py Add offset & limit docs & tests 2017-02-02 12:28:06 -05:00
test_suspend_server.py Fix policy tests for project_id enforcement 2016-09-11 23:43:41 +00:00
test_tenant_networks.py Count networks to check quota 2017-06-19 21:51:46 +00:00
test_urlmap.py Remove the test for the route '/resources.:(format)' 2017-07-12 20:57:16 +08:00
test_used_limits.py [3/3]Replace six.iteritems() with .items() 2017-02-09 23:09:38 +08:00
test_user_data.py Remove the usage of extension black/white list opt in user data 2017-04-05 09:58:01 +00:00
test_versions.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
test_virtual_interfaces.py Merge "Remove mox from nova/tests/unit/api/openstack/compute/test_virtual_interfaces.py" 2017-05-31 20:48:18 +00:00
test_volumes.py Handle Cinder 3.27 style attachments in swap_volume 2017-07-07 03:01:26 -04:00