summaryrefslogtreecommitdiff
path: root/tests/v1_1/test_shell.py
diff options
context:
space:
mode:
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>2012-06-27 18:45:28 -0500
committerKevin L. Mitchell <kevin.mitchell@rackspace.com>2012-06-29 12:21:19 -0500
commita11788515e800a95d5b83448c2a9403eed509bdf (patch)
treee4b1d211815f36284c155d14b1aee30842a77fc5 /tests/v1_1/test_shell.py
parent08cf0bf95ef99a0e39122ef99eb559e2d739716d (diff)
downloadpython-novaclient-2.6.10.tar.gz
Add hypervisor information extension.2.6.10
Adds support for a new nova extension for getting information about hypervisors (as opposed to compute hosts), including a list of hypervisors matching a regular expression (database regular expression, i.e., %'s) and a list of hypervisors with the list of instances living on those hypervisors. Change-Id: I7353991ffbf484da175a0912ee46e80f623e230f
Diffstat (limited to 'tests/v1_1/test_shell.py')
-rw-r--r--tests/v1_1/test_shell.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/v1_1/test_shell.py b/tests/v1_1/test_shell.py
index e790cc9e..b31070fb 100644
--- a/tests/v1_1/test_shell.py
+++ b/tests/v1_1/test_shell.py
@@ -476,6 +476,22 @@ class ShellTest(utils.TestCase):
self.run_command('host-action sample-host --action reboot')
self.assert_called('GET', '/os-hosts/sample-host/reboot')
+ def test_hypervisor_list(self):
+ self.run_command('hypervisor-list')
+ self.assert_called('GET', '/os-hypervisors')
+
+ def test_hypervisor_list_matching(self):
+ self.run_command('hypervisor-list --matching hyper')
+ self.assert_called('GET', '/os-hypervisors/hyper/search')
+
+ def test_hypervisor_servers(self):
+ self.run_command('hypervisor-servers hyper')
+ self.assert_called('GET', '/os-hypervisors/hyper/servers')
+
+ def test_hypervisor_show(self):
+ self.run_command('hypervisor-show 1234')
+ self.assert_called('GET', '/os-hypervisors/1234')
+
def test_quota_show(self):
self.run_command('quota-show test')
self.assert_called('GET', '/os-quota-sets/test')