Bump API version in Manila functional tests

In API version 2.64 and beyond, Manila only permits
administrators to use the "force" parameter when
extending shares.

Change-Id: If13f73fcf537bef61c9eaa0bccf670de6ade0604
This commit is contained in:
Yujia Zheng 2023-10-06 18:37:55 +00:00
parent c2600c35b7
commit b3ddf29738
2 changed files with 4 additions and 3 deletions

View File

@ -22,8 +22,8 @@ class BaseSharedFileSystemTest(base.BaseFunctionalTest):
self.require_service(
'shared-file-system', min_microversion=self.min_microversion
)
self._set_operator_cloud(shared_file_system_api_version='2.63')
self._set_user_cloud(shared_file_system_api_version='2.63')
self._set_operator_cloud(shared_file_system_api_version='2.78')
self._set_user_cloud(shared_file_system_api_version='2.78')
def create_share(self, **kwargs):
share = self.user_cloud.share.create_share(**kwargs)

View File

@ -143,9 +143,10 @@ class ShareTest(base.BaseSharedFileSystemTest):
self.assertEqual(self.SHARE_SIZE, get_resized_share.size)
def test_resize_share_with_force(self):
"""Test that extend with force works as expected."""
# Resize to 3 GiB
larger_size = 3
self.user_cloud.share.resize_share(
self.operator_cloud.share.resize_share(
self.SHARE_ID, larger_size, force=True
)