diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-03-13 10:59:26 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-03-13 11:00:04 +0100 |
commit | 9f2f232b0aeefbb22b6475c50676964813fba80c (patch) | |
tree | 968f331cd341950df990725152d8c03fb1458562 | |
parent | 8b0cd51410d11a7e2226ed0ff57b009cdf534cf6 (diff) |
Detect OpenStack Xena
Change-Id: I3b0c9e030f2d31a6151d9ba44f2a06a627b3d913
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0e1b036ed4f4527c09cf1355a707875f640ee569)
-rw-r--r-- | functest/tests/unit/utils/test_functest_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functest/tests/unit/utils/test_functest_utils.py b/functest/tests/unit/utils/test_functest_utils.py index 07a57a49a..5992d3f60 100644 --- a/functest/tests/unit/utils/test_functest_utils.py +++ b/functest/tests/unit/utils/test_functest_utils.py @@ -336,6 +336,14 @@ class FunctestUtilsTesting(unittest.TestCase): args[0].assert_called_once_with(cloud) @mock.patch('functest.utils.functest_utils.get_nova_version', + return_value=(2, 89)) + def test_openstack_version14(self, *args): + cloud = mock.Mock() + self.assertEqual(functest_utils.get_openstack_version( + cloud), "Xena") + args[0].assert_called_once_with(cloud) + + @mock.patch('functest.utils.functest_utils.get_nova_version', return_value=None) def test_openstack_version_exc(self, *args): cloud = mock.Mock() |