summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-27 12:42:44 +0000
committerGerrit Code Review <review@openstack.org>2012-08-27 12:42:44 +0000
commit454ca8c2f853c2984bdfbcb5ed68d951f2af7107 (patch)
tree2abca7f7c4a9b26aa6587843329b41fe25382040
parent68e9a9e351e5b7bc91148a939d470ba04a525020 (diff)
parent88e3194b2f627b09cc1d2d250b12a088301e84cd (diff)
Merge "Remove test_keypair_create_quota_limit()"
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_keypairs.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_keypairs.py b/nova/tests/api/openstack/compute/contrib/test_keypairs.py
index d59ca3164..0019f757b 100644
--- a/nova/tests/api/openstack/compute/contrib/test_keypairs.py
+++ b/nova/tests/api/openstack/compute/contrib/test_keypairs.py
@@ -123,21 +123,6 @@ class KeypairsTest(test.TestCase):
res_dict = jsonutils.loads(res.body)
self.assertEqual(res.status_int, 400)
- def test_keypair_create_quota_limit(self):
-
- def fake_quotas_count(self, context, resource, *args, **kwargs):
- return 100
-
- self.stubs.Set(QUOTAS, "count", fake_quotas_count)
-
- req = webob.Request.blank('/v2/fake/os-keypairs')
- req.method = 'POST'
- req.headers['Content-Type'] = 'application/json'
- body = {'keypair': {'name': 'foo'}}
- req.body = jsonutils.dumps(body)
- res = req.get_response(fakes.wsgi_app())
- self.assertEqual(res.status_int, 413)
-
def test_keypair_import(self):
body = {
'keypair': {