summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2012-06-28 20:56:13 +0000
committerChris Behrens <cbehrens@codestud.com>2012-06-28 20:56:13 +0000
commitf1451da5447a9af97cf6a7bbcd608195883de014 (patch)
treebf20156b52c1b86df504d8e1a6bd14a7a764171a /nova/tests
parent96d5c1ef8ce3c9525acbf3a00fc609f65c1e7d4c (diff)
OS API should return SHUTOFF, not STOPPED
The recent changes to vm_state/task_state changed the behavior of OS API to return STOPPED instead of SHUTOFF. Fixes bug 1019016 The API spec says that SHUTOFF should be returned: http://docs.openstack.org/api/openstack-compute/2/content/List_Servers-d1e2078.html Change-Id: I0a6c786dc8d6b8b42f462cfbec5b70cb67aa2385
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/test_servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/api/openstack/compute/test_servers.py b/nova/tests/api/openstack/compute/test_servers.py
index 91a3ef68d..ca5efe6c3 100644
--- a/nova/tests/api/openstack/compute/test_servers.py
+++ b/nova/tests/api/openstack/compute/test_servers.py
@@ -1404,7 +1404,7 @@ class ServerStatusTest(test.TestCase):
def test_stopped(self):
response = self._get_with_state(vm_states.STOPPED)
- self.assertEqual(response['server']['status'], 'STOPPED')
+ self.assertEqual(response['server']['status'], 'SHUTOFF')
class ServersControllerCreateTest(test.TestCase):