Stop testing old release of cinder

A test in datera was failing locally due to the fact the the version
checking could be wrong in the egg-info local folder if you switch from
a branch to another.

It's not necessary to test this anymore as Cinder version 15 (train) is
EOL anyway.

Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
Change-Id: I0d17899c0b239ec969ff51238dcbd4402a567f6c
This commit is contained in:
Arnaud Morin 2024-07-05 11:54:34 +02:00
parent 346562008e
commit 7ee7ac5899

View File

@ -20,7 +20,6 @@ import uuid
from cinder import context
from cinder import exception
from cinder.tests.unit import test
from cinder import version
from cinder.volume import configuration as conf
from cinder.volume import volume_types
@ -430,21 +429,13 @@ class DateraVolumeTestCasev22(test.TestCase):
offset = mock.MagicMock()
sort_keys = mock.MagicMock()
sort_dirs = mock.MagicMock()
if (version.version_string() >= '15.0.0'):
with mock.patch(
'cinder.volume.volume_utils.paginate_entries_list') \
as mpage:
self.driver.get_manageable_volumes(
[testvol], marker, limit, offset, sort_keys, sort_dirs)
mpage.assert_called_once_with(
[v1, v2], marker, limit, offset, sort_keys, sort_dirs)
else:
with mock.patch(
'cinder.volume.utils.paginate_entries_list') as mpage:
self.driver.get_manageable_volumes(
[testvol], marker, limit, offset, sort_keys, sort_dirs)
mpage.assert_called_once_with(
[v1, v2], marker, limit, offset, sort_keys, sort_dirs)
with mock.patch(
'cinder.volume.volume_utils.paginate_entries_list') \
as mpage:
self.driver.get_manageable_volumes(
[testvol], marker, limit, offset, sort_keys, sort_dirs)
mpage.assert_called_once_with(
[v1, v2], marker, limit, offset, sort_keys, sort_dirs)
def test_unmanage(self):
testvol = _stub_volume()