nova/nova/tests
Jay Pipes 8153cddad1 quota: remove QuotaDriver.destroy_all_by_project()
Removes the unnecessary QuotaDriver.destroy_all_by_project() and
destroy_all_by_project_and_users() methods. nova.objects.Quotas already
had these methods and this patch changes the one place that was calling
the old QuotaDriver method (from the nova API /quota_sets endpoint) to
just call the nova.objects.Quotas methods of the same name.

Note that the NoopQuotaDriver's destroy_all_by_project() and
destroy_all_by_project_and_user() methods were no-ops. Now the
quota-sets API will be calling the objects.Quotas.destroy_xxx() methods
which will raise ProjectUserQuotaNotFound instead of returning a 204.
If the user is calling DELETE /os-quota-sets and there is the Noop quota
driver configured, and the response is a 404 Not Found, do we really
care?

In the future, we should be getting rid of the os-quota-sets API
entirely and using Keystone's /limits API.

One more set of methods gone from QuotaDriver...

Change-Id: Ifc0a409bd179807db18f2e7b59ea9d4d67e9a798
2018-10-24 11:14:31 -04:00
..
functional Merge "Use assertRegex instead of assertRegexpMatches" 2018-10-23 11:11:14 +00:00
live_migration/hooks Stop setting glance_api_version in cinder.conf in nova-live-migration 2018-07-03 09:55:26 -04:00
unit quota: remove QuotaDriver.destroy_all_by_project() 2018-10-24 11:14:31 -04:00
__init__.py
fixtures.py fixtures: Track volume attachments within CinderFixtureNewAttachFlow 2018-10-22 17:19:31 +01:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00