Add proper failure response to describe_clusters

This commit is contained in:
Nick Venenga 2019-03-22 12:08:02 -04:00 committed by Kyle Decot
commit d181897ec9
No known key found for this signature in database
GPG key ID: 77A19B4BBD0744A4
3 changed files with 29 additions and 3 deletions

View file

@ -47,6 +47,15 @@ def test_list_clusters():
'arn:aws:ecs:us-east-1:012345678910:cluster/test_cluster1')
@mock_ecs
def test_describe_clusters():
client = boto3.client('ecs', region_name='us-east-1')
response = client.describe_clusters(clusters=["some-cluster"])
response['failures'].should.contain({
'arn': 'arn:aws:ecs:us-east-1:012345678910:cluster/some-cluster',
'reason': 'MISSING'
})
@mock_ecs
def test_delete_cluster():
client = boto3.client('ecs', region_name='us-east-1')