Skip to content

Commit

Permalink
Remove test_keypair_create_quota_limit()
Browse files Browse the repository at this point in the history
test_keypair_create_quota_limit() is defined twice. The two tests
are not exactly the same but functionally equivallent. Remove the
first definition.

Partially fix bug 1037183

Change-Id: I99bd3cd54cf55ff071ced10e931025813d0c92b0
  • Loading branch information
maoy committed Aug 25, 2012
1 parent cc3179d commit 88e3194
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions nova/tests/api/openstack/compute/contrib/test_keypairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,6 @@ def test_keypair_create_with_non_alphanumeric_name(self):
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': {
Expand Down

0 comments on commit 88e3194

Please sign in to comment.