Update support for VPCPeeringConnections. (New boto version in Travis matrix and gte threshold for tests.)

This commit is contained in:
Shawn Falkner-Horine 2014-08-18 11:54:11 -07:00
parent 42a305239c
commit bfafaf70df
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@ python:
- 2.7
env:
matrix:
- BOTO_VERSION=2.32.1
- BOTO_VERSION=2.31.1
- BOTO_VERSION=2.25.0
- BOTO_VERSION=2.19.0

View File

@ -3,8 +3,10 @@ from boto.exception import EC2ResponseError
import sure # noqa
from moto import mock_ec2
from tests.helpers import requires_boto_gte
@requires_boto_gte("2.32.0")
@mock_ec2
def test_vpc_peering_connections():
conn = boto.connect_vpc('the_key', 'the_secret')
@ -17,6 +19,7 @@ def test_vpc_peering_connections():
return vpc_pcx
@requires_boto_gte("2.32.0")
@mock_ec2
def test_vpc_peering_connections_get_all():
conn = boto.connect_vpc('the_key', 'the_secret')
@ -28,6 +31,7 @@ def test_vpc_peering_connections_get_all():
all_vpc_pcxs[0]._status.code.should.equal('pending-acceptance')
@requires_boto_gte("2.32.0")
@mock_ec2
def test_vpc_peering_connections_accept():
conn = boto.connect_vpc('the_key', 'the_secret')
@ -44,6 +48,7 @@ def test_vpc_peering_connections_accept():
all_vpc_pcxs[0]._status.code.should.equal('active')
@requires_boto_gte("2.32.0")
@mock_ec2
def test_vpc_peering_connections_reject():
conn = boto.connect_vpc('the_key', 'the_secret')
@ -60,6 +65,7 @@ def test_vpc_peering_connections_reject():
all_vpc_pcxs[0]._status.code.should.equal('rejected')
@requires_boto_gte("2.32.1")
@mock_ec2
def test_vpc_peering_connections_delete():
conn = boto.connect_vpc('the_key', 'the_secret')