Upgrade to boto 2.45 (#803)
Adds support for additional regions: * ca-central-1 * eu-west-2 Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
This commit is contained in:
parent
82bc502cf7
commit
55f39265dd
3 changed files with 6 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ from moto import mock_ec2
|
|||
def test_describe_regions():
|
||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||
regions = conn.get_all_regions()
|
||||
regions.should.have.length_of(14)
|
||||
regions.should.have.length_of(16)
|
||||
for region in regions:
|
||||
region.endpoint.should.contain(region.name)
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ def test_availability_zones():
|
|||
def test_boto3_describe_regions():
|
||||
ec2 = boto3.client('ec2', 'us-east-1')
|
||||
resp = ec2.describe_regions()
|
||||
resp['Regions'].should.have.length_of(14)
|
||||
resp['Regions'].should.have.length_of(16)
|
||||
for rec in resp['Regions']:
|
||||
rec['Endpoint'].should.contain(rec['RegionName'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue