Tests: Require moto>=5.0.0

Moto 5.0.0 introduces changes which need to be
handled in the s3 backup driver unit tests.

Remove the code that handled older versions of
moto.

Change-Id: I29435c63ab57c5730f12d3fefde2149a52235636
This commit is contained in:
Eric Harney 2024-02-06 14:37:56 -05:00
parent 6e71a67f4d
commit 8c9897dd4c
2 changed files with 2 additions and 5 deletions

View File

@ -26,10 +26,7 @@ from unittest import mock
import zlib
from eventlet import tpool
try:
from moto import mock_aws
except ImportError:
from moto import mock_s3 as mock_aws
from moto import mock_aws
from oslo_utils import units
from cinder.backup.drivers import s3 as s3_dr

View File

@ -19,5 +19,5 @@ testtools>=2.4.0 # MIT
doc8>=0.8.1 # Apache-2.0
mypy>=1.7.0 # MIT
moto>=2.2.5 # Apache-2.0
moto>=5.0.0 # Apache-2.0
distro>=1.8.0 # Apache-2.0