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:
parent
6e71a67f4d
commit
8c9897dd4c
@ -26,10 +26,7 @@ from unittest import mock
|
|||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
from eventlet import tpool
|
from eventlet import tpool
|
||||||
try:
|
|
||||||
from moto import mock_aws
|
from moto import mock_aws
|
||||||
except ImportError:
|
|
||||||
from moto import mock_s3 as mock_aws
|
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from cinder.backup.drivers import s3 as s3_dr
|
from cinder.backup.drivers import s3 as s3_dr
|
||||||
|
@ -19,5 +19,5 @@ testtools>=2.4.0 # MIT
|
|||||||
|
|
||||||
doc8>=0.8.1 # Apache-2.0
|
doc8>=0.8.1 # Apache-2.0
|
||||||
mypy>=1.7.0 # MIT
|
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
|
distro>=1.8.0 # Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user