diff options
author | Zuul <zuul@review.opendev.org> | 2019-11-13 14:59:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-11-13 14:59:46 +0000 |
commit | 9cae96174a31198569e36042783a648a6011209c (patch) | |
tree | 25d2d1cf000323af3b152a4eb54bda2df28cdc48 | |
parent | ed98fdba412593ff3374e97327f40260d79f76bd (diff) | |
parent | c15a5a055561fbbe622cf3990f192f8e22ae54de (diff) | |
download | python-novaclient-9cae96174a31198569e36042783a648a6011209c.tar.gz |
Merge "Add minor version [21] to the test_versions"
-rw-r--r-- | novaclient/tests/unit/v2/test_shell.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/novaclient/tests/unit/v2/test_shell.py b/novaclient/tests/unit/v2/test_shell.py index b68254a2..dbd2b3be 100644 --- a/novaclient/tests/unit/v2/test_shell.py +++ b/novaclient/tests/unit/v2/test_shell.py @@ -4411,6 +4411,7 @@ class ShellTest(utils.TestCase): # new microversion, just an additional checks. See # https://review.opendev.org/#/c/233076/ for more details) 20, # doesn't require any changes in novaclient + 21, # doesn't require any changes in novaclient 27, # NOTE(cdent): 27 adds support for updated microversion # headers, and is tested in test_api_versions, but is # not explicitly tested via wraps and _SUBSTITUTIONS. @@ -4463,9 +4464,11 @@ class ShellTest(utils.TestCase): versions_covered = set() for key, values in api_versions._SUBSTITUTIONS.items(): - for value in values: - if value.start_version.ver_major == 2: - versions_covered.add(value.start_version.ver_minor) + # Exclude version-wrapped + if 'novaclient.tests' not in key: + for value in values: + if value.start_version.ver_major == 2: + versions_covered.add(value.start_version.ver_minor) versions_not_covered = versions_supported - versions_covered unaccounted_for = versions_not_covered - exclusions |