summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorAlex Meade <alex.meade@rackspace.com>2011-07-28 10:31:06 -0400
committerAlex Meade <alex.meade@rackspace.com>2011-07-28 10:31:06 -0400
commitcd065f6669a666387c8f9efb5c0fff7eaf94521c (patch)
treed14c944d7258ceb18458883e3e468177494e906e /nova
parent92c8d269a13917de397c1d0ce9fecfaa36195ce9 (diff)
moved test
Diffstat (limited to 'nova')
-rw-r--r--nova/tests/api/openstack/test_server_actions.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/nova/tests/api/openstack/test_server_actions.py b/nova/tests/api/openstack/test_server_actions.py
index 5c23d6d9d..1651b1645 100644
--- a/nova/tests/api/openstack/test_server_actions.py
+++ b/nova/tests/api/openstack/test_server_actions.py
@@ -132,15 +132,6 @@ class ServerActionsTest(test.TestCase):
# res = req.get_response(fakes.wsgi_app())
# self.assertEqual(res.status_int, 501)
- def test_server_change_password_not_a_string_v1_1(self):
- body = {'changePassword': {'adminPass': 1234}}
- req = webob.Request.blank('/v1.1/servers/1/action')
- req.method = 'POST'
- req.content_type = 'application/json'
- req.body = json.dumps(body)
- res = req.get_response(fakes.wsgi_app())
- self.assertEqual(res.status_int, 400)
-
def test_server_reboot(self):
body = dict(server=dict(
name='server_test', imageId=2, flavorId=2, metadata={},
@@ -363,6 +354,15 @@ class ServerActionsTestV11(test.TestCase):
self.assertEqual(mock_method.instance_id, '1')
self.assertEqual(mock_method.password, '1234pass')
+ def test_server_change_password_not_a_string(self):
+ body = {'changePassword': {'adminPass': 1234}}
+ req = webob.Request.blank('/v1.1/servers/1/action')
+ req.method = 'POST'
+ req.content_type = 'application/json'
+ req.body = json.dumps(body)
+ res = req.get_response(fakes.wsgi_app())
+ self.assertEqual(res.status_int, 400)
+
def test_server_change_password_bad_request(self):
body = {'changePassword': {'pass': '12345'}}
req = webob.Request.blank('/v1.1/servers/1/action')