Add failures output to ecs.describe_services (#3641)

* Add failures output to ecs.describe_services

* Fix autoscaling tests
This commit is contained in:
Anton Grübel 2021-02-01 13:19:46 +01:00 committed by GitHub
commit 0211e9d78d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 261 additions and 175 deletions

View file

@ -1,6 +1,8 @@
import boto3
from moto import mock_cloudformation, mock_ecs, mock_autoscaling, mock_s3
import json
from moto.core import ACCOUNT_ID
from tests import EXAMPLE_AMI_ID
depends_on_template_list = {
@ -110,7 +112,9 @@ def test_create_stack_with_depends_on():
ecs = boto3.client("ecs", region_name="us-east-1")
cluster_arn = ecs.list_clusters()["clusterArns"][0]
assert cluster_arn == "arn:aws:ecs:us-east-1:012345678910:cluster/test-cluster"
assert cluster_arn == "arn:aws:ecs:us-east-1:{}:cluster/test-cluster".format(
ACCOUNT_ID
)
@mock_cloudformation