summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/compute
diff options
context:
space:
mode:
authorJose Castro Leon <jose.castro.leon@cern.ch>2017-10-19 15:59:45 +0200
committerDean Troyer <dtroyer@gmail.com>2017-10-27 14:52:04 +0000
commitfd23ebfbf3080b96f7ef8ba516b64e67a111971d (patch)
treed2b551b30c3288881765d0791919aec5bffd8ef7 /openstackclient/tests/functional/compute
parent09faba27133f4b96085ed8596fa199200ed015aa (diff)
downloadpython-openstackclient-fd23ebfbf3080b96f7ef8ba516b64e67a111971d.tar.gz
Add missing parameters on openstack server rescue
Change-Id: I27afca9e826378dbcb7feb7528e0c65c528b04b0 Closes-Bug: #1703278
Diffstat (limited to 'openstackclient/tests/functional/compute')
-rw-r--r--openstackclient/tests/functional/compute/v2/test_server.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/compute/v2/test_server.py b/openstackclient/tests/functional/compute/v2/test_server.py
index b7a25996..0b29fe5f 100644
--- a/openstackclient/tests/functional/compute/v2/test_server.py
+++ b/openstackclient/tests/functional/compute/v2/test_server.py
@@ -184,7 +184,18 @@ class ServerTests(common.ComputeTestCase):
# rescue
raw_output = self.openstack('server rescue ' + name)
- self.assertNotEqual("", raw_output)
+ self.assertEqual("", raw_output)
+ self.wait_for_status(name, "RESCUE")
+
+ # unrescue
+ raw_output = self.openstack('server unrescue ' + name)
+ self.assertEqual("", raw_output)
+ self.wait_for_status(name, "ACTIVE")
+
+ # rescue with image
+ raw_output = self.openstack('server rescue --image ' +
+ self.image_name + ' ' + name)
+ self.assertEqual("", raw_output)
self.wait_for_status(name, "RESCUE")
# unrescue