def test_openstack_version1(self, *args):
cloud = mock.Mock()
self.assertEqual(functest_utils.get_openstack_version(
- cloud), "Rocky or newer")
+ cloud), "Rocky")
args[0].assert_called_once_with(cloud)
@mock.patch('functest.utils.functest_utils.get_nova_version',
def test_openstack_version10(self, *args):
cloud = mock.Mock()
self.assertEqual(
- functest_utils.get_openstack_version(cloud), "Rocky or newer")
+ functest_utils.get_openstack_version(cloud), "Master")
args[0].assert_called_once_with(cloud)
@mock.patch('functest.utils.functest_utils.get_nova_version',
version = get_nova_version(cloud)
try:
assert version
- if version > (2, 60):
- osversion = "Rocky or newer"
+ if version > (2, 65):
+ osversion = "Master"
+ elif version > (2, 60):
+ osversion = "Rocky"
elif version > (2, 53):
osversion = "Queens"
elif version > (2, 42):