summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-03-22 23:47:16 +0000
committerGerrit Code Review <review@openstack.org>2012-03-22 23:47:16 +0000
commitf32085653e0947f3371f3e95b8fb6438d360bce8 (patch)
tree70476b98d87841f729e3a3d2994eaa100cb870c2 /nova/tests
parent164fb0cd52f00dafb506952374168ce20309a5ea (diff)
parentb15bfc2edd5d3dd0dca805786bdcf22d3fb0339d (diff)
Merge "Fixed status validation. Fixes bug 960884."
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_hosts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_hosts.py b/nova/tests/api/openstack/compute/contrib/test_hosts.py
index 76eb77e56..77beeae8c 100644
--- a/nova/tests/api/openstack/compute/contrib/test_hosts.py
+++ b/nova/tests/api/openstack/compute/contrib/test_hosts.py
@@ -159,6 +159,9 @@ class HostTestCase(test.TestCase):
bad_body = {"status": "bad"}
self.assertRaises(webob.exc.HTTPBadRequest, self.controller.update,
self.req, "host_c1", body=bad_body)
+ bad_body2 = {"status": "disablabc"}
+ self.assertRaises(webob.exc.HTTPBadRequest, self.controller.update,
+ self.req, "host_c1", body=bad_body2)
def test_bad_update_key(self):
bad_body = {"crazy": "bad"}