summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-03-06 19:08:48 +0000
committerGerrit Code Review <review@openstack.org>2013-03-06 19:08:48 +0000
commit4a1f477df0dda3b10084bcb2b225379efa0ea8ae (patch)
tree00cac6228e46e0dd71966acda90fe552ed7de9b6 /nova/tests
parent34a64499dfdf3694dfae1f883708950595e8ab20 (diff)
parentadbccac10a362d7464bb30f9ae923d0446833a21 (diff)
Merge "Don't traceback in the API on invalid keypair."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_keypairs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_keypairs.py b/nova/tests/api/openstack/compute/contrib/test_keypairs.py
index 06454b123..025845637 100644
--- a/nova/tests/api/openstack/compute/contrib/test_keypairs.py
+++ b/nova/tests/api/openstack/compute/contrib/test_keypairs.py
@@ -236,6 +236,11 @@ class KeypairsTest(test.TestCase):
res = req.get_response(self.app)
self.assertEqual(res.status_int, 202)
+ def test_keypair_get_keypair_not_found(self):
+ req = webob.Request.blank('/v2/fake/os-keypairs/DOESNOTEXIST')
+ res = req.get_response(self.app)
+ self.assertEqual(res.status_int, 404)
+
def test_keypair_delete_not_found(self):
def db_key_pair_get_not_found(context, user_id, name):