From a7e9a49a3f851097b323093048c62b2acbbf5090 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Tue, 12 Nov 2019 15:54:07 -0500 Subject: Add test for subcommands This tests that the expected subcommands register in the shell client, by looking at the output that would show up in "cinder help". The purpose of this is to help prevent us from accidentally deleting some commands when refactoring shell code. TODO: cover commands post-3.0 Change-Id: Ifcbc08ae9184fa33049b18f8ad7ef5d92003a7b8 --- cinderclient/shell.py | 1 + 1 file changed, 1 insertion(+) (limited to 'cinderclient/shell.py') diff --git a/cinderclient/shell.py b/cinderclient/shell.py index d948332..57c9d8c 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -135,6 +135,7 @@ class OpenStackCinderShell(object): def __init__(self): self.ks_logger = None self.client_logger = None + self.extensions = [] def get_base_parser(self): parser = CinderClientArgumentParser( -- cgit v1.2.1