[ci] Pin moto to >= 4.0.0, adjust API (#28099)

If this passes, it should be preferred over #28098.

Adjust moto setup to use new API.

Signed-off-by: Kai Fricke <kai@anyscale.com>
Co-authored-by: Sven Mika <svenmika1977@gmail.com>
This commit is contained in:
Kai Fricke 2022-08-30 11:39:32 -07:00 committed by GitHub
parent 13457dab03
commit 42dc034503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ def configure_aws():
# moto (boto3 mock) only allows a hardcoded set of AMIs # moto (boto3 mock) only allows a hardcoded set of AMIs
dlami = ( dlami = (
moto.ec2.ec2_backends["us-west-2"] moto.ec2.models.ec2_backends["us-west-2"]["us-west-2"]
.describe_images(filters={"name": "Deep Learning AMI Ubuntu*"})[0] .describe_images(filters={"name": "Deep Learning AMI Ubuntu*"})[0]
.id .id
) )

View file

@ -64,7 +64,7 @@ google-cloud-storage
gym-minigrid==1.0.3 gym-minigrid==1.0.3
kubernetes kubernetes
lxml lxml
moto[s3,server] < 4.0.0 moto[s3,server] >= 4.0.0
mypy mypy
networkx networkx
numba numba