diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2011-11-01 14:47:51 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2011-11-04 18:19:19 +0000 |
| commit | 0d36d2bf9eba28123c172fd24780f0ebe95db10a (patch) | |
| tree | 151d389c236e0855d63655b21d3d2de01205a296 /nova/api | |
| parent | 67a1c257f9e4be774da5acf2c1b703d196e0a2cf (diff) | |
| download | nova-0d36d2bf9eba28123c172fd24780f0ebe95db10a.tar.gz nova-0d36d2bf9eba28123c172fd24780f0ebe95db10a.tar.xz nova-0d36d2bf9eba28123c172fd24780f0ebe95db10a.zip | |
Speed up tests a further 35 seconds
This changes more OSAPI tests to using their Controller directly, bypassing
the slow wsgi setup process.
Change-Id: Ic014c32786cb10c541f7d367573adb7a069c1a88
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/contrib/quotas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/quotas.py b/nova/api/openstack/contrib/quotas.py index 83d75394a..184b4d12f 100644 --- a/nova/api/openstack/contrib/quotas.py +++ b/nova/api/openstack/contrib/quotas.py @@ -49,7 +49,7 @@ class QuotaSetsController(object): return self._format_quota_set(id, quota.get_project_quotas(context, id)) except exception.NotAuthorized: - return webob.Response(status_int=403) + raise webob.exc.HTTPForbidden() def update(self, req, id, body): context = req.environ['nova.context'] @@ -65,7 +65,7 @@ class QuotaSetsController(object): except exception.ProjectQuotaNotFound: db.quota_create(context, project_id, key, value) except exception.AdminRequired: - return webob.Response(status_int=403) + raise webob.exc.HTTPForbidden() return {'quota_set': quota.get_project_quotas(context, project_id)} def defaults(self, req, id): |
