diff --git a/novaclient/tests/functional/v2/test_consoles.py b/novaclient/tests/functional/v2/test_consoles.py index 37615af7f..084277b0a 100644 --- a/novaclient/tests/functional/v2/test_consoles.py +++ b/novaclient/tests/functional/v2/test_consoles.py @@ -30,3 +30,12 @@ class TestConsolesNovaClientV26(test_consoles.TestConsolesNovaClient): def test_serial_console_get(self): self._test_serial_console_get() + + +class TestConsolesNovaClientV28(test_consoles.TestConsolesNovaClient): + """Consoles functional tests for >=v2.8 api microversions.""" + + COMPUTE_API_VERSION = "2.8" + + def test_webmks_console_get(self): + self._test_console_get('get-mks-console %s ') diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 05a0e74d4..d2f32ab8a 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -2435,8 +2435,8 @@ def do_get_serial_console(cs, args): print_console(cs, data) -@cliutils.arg('server', metavar='', help=_('Name or ID of server.')) @api_versions.wraps('2.8') +@cliutils.arg('server', metavar='', help=_('Name or ID of server.')) def do_get_mks_console(cs, args): """Get a serial console to a server.""" server = _find_server(cs, args.server)