Merge pull request #2449 from nadlerjessie/events-and-ecs-multi-region
Events and ecs multi region
This commit is contained in:
commit
7de11b672b
6 changed files with 76 additions and 47 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
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ def test_describe_rule():
|
|||
|
||||
assert(response is not None)
|
||||
assert(response.get('Name') == rule_name)
|
||||
assert(response.get('Arn') is not None)
|
||||
assert(response.get('Arn') == 'arn:aws:events:us-west-2:111111111111:rule/{0}'.format(rule_name))
|
||||
|
||||
|
||||
@mock_events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue