Merge pull request #2449 from nadlerjessie/events-and-ecs-multi-region

Events and ecs multi region
This commit is contained in:
Steve Pulec 2019-10-03 16:20:30 -05:00 committed by GitHub
commit 7de11b672b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 76 additions and 47 deletions

View file

@ -34,7 +34,7 @@ def test_create_cluster():
@mock_ecs
def test_list_clusters():
client = boto3.client('ecs', region_name='us-east-1')
client = boto3.client('ecs', region_name='us-east-2')
_ = client.create_cluster(
clusterName='test_cluster0'
)
@ -43,9 +43,9 @@ def test_list_clusters():
)
response = client.list_clusters()
response['clusterArns'].should.contain(
'arn:aws:ecs:us-east-1:012345678910:cluster/test_cluster0')
'arn:aws:ecs:us-east-2:012345678910:cluster/test_cluster0')
response['clusterArns'].should.contain(
'arn:aws:ecs:us-east-1:012345678910:cluster/test_cluster1')
'arn:aws:ecs:us-east-2:012345678910:cluster/test_cluster1')
@mock_ecs