Use region to create and describe ECS resources
This commit is contained in:
parent
60183b29c1
commit
4fe66f521d
2 changed files with 28 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue