summaryrefslogtreecommitdiff
path: root/novaclient/tests/unit/v2/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/unit/v2/test_shell.py')
-rw-r--r--novaclient/tests/unit/v2/test_shell.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/novaclient/tests/unit/v2/test_shell.py b/novaclient/tests/unit/v2/test_shell.py
index fd9cbfac..17c8974d 100644
--- a/novaclient/tests/unit/v2/test_shell.py
+++ b/novaclient/tests/unit/v2/test_shell.py
@@ -3575,6 +3575,16 @@ class ShellTest(utils.TestCase):
self.run_command('hypervisor-stats')
self.assert_called('GET', '/os-hypervisors/statistics')
+ def test_hypervisor_stats_v2_88(self):
+ """Tests nova hypervisor-stats at the 2.88 microversion."""
+ ex = self.assertRaises(
+ exceptions.CommandError, self.run_command,
+ 'hypervisor-stats', api_version='2.88')
+ self.assertIn(
+ 'The hypervisor-stats command is not supported in API version '
+ '2.88 or later.',
+ str(ex))
+
def test_quota_show(self):
self.run_command(
'quota-show --tenant '