summaryrefslogtreecommitdiff
path: root/tests/v1_1/test_shell.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-03-26 05:54:48 +0000
committerGerrit Code Review <review@openstack.org>2013-03-26 05:54:48 +0000
commit655765a5eac161be8209e62950ecde7b4da84d1a (patch)
tree75c760a8cf96bbe726f0875ee21b4263710f524a /tests/v1_1/test_shell.py
parentf03575a8c742cb789c89620fc171edd5e75d426d (diff)
parent0f7404d7a8f5b6948ae050f6bd434483be42522d (diff)
downloadpython-novaclient-2.12.0.tar.gz
Merge "Add support for retrieving instance-actions info"2.12.0
Diffstat (limited to 'tests/v1_1/test_shell.py')
-rw-r--r--tests/v1_1/test_shell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/v1_1/test_shell.py b/tests/v1_1/test_shell.py
index 4d67523f..2febe7e0 100644
--- a/tests/v1_1/test_shell.py
+++ b/tests/v1_1/test_shell.py
@@ -1276,3 +1276,12 @@ class ShellTest(utils.TestCase):
self.run_command('volume-detach sample-server Work')
self.assert_called('DELETE',
'/servers/1234/os-volume_attachments/Work')
+
+ def test_instance_action_list(self):
+ self.run_command('instance-action-list sample-server')
+ self.assert_called('GET', '/servers/1234/os-instance-actions')
+
+ def test_instance_action_get(self):
+ self.run_command('instance-action sample-server req-abcde12345')
+ self.assert_called('GET',
+ '/servers/1234/os-instance-actions/req-abcde12345')