Update support for VPCPeeringConnections. (New boto version in Travis matrix and gte threshold for tests.)
This commit is contained in:
parent
42a305239c
commit
bfafaf70df
@ -4,6 +4,7 @@ python:
|
|||||||
- 2.7
|
- 2.7
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
|
- BOTO_VERSION=2.32.1
|
||||||
- BOTO_VERSION=2.31.1
|
- BOTO_VERSION=2.31.1
|
||||||
- BOTO_VERSION=2.25.0
|
- BOTO_VERSION=2.25.0
|
||||||
- BOTO_VERSION=2.19.0
|
- BOTO_VERSION=2.19.0
|
||||||
|
@ -3,8 +3,10 @@ from boto.exception import EC2ResponseError
|
|||||||
import sure # noqa
|
import sure # noqa
|
||||||
|
|
||||||
from moto import mock_ec2
|
from moto import mock_ec2
|
||||||
|
from tests.helpers import requires_boto_gte
|
||||||
|
|
||||||
|
|
||||||
|
@requires_boto_gte("2.32.0")
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
def test_vpc_peering_connections():
|
def test_vpc_peering_connections():
|
||||||
conn = boto.connect_vpc('the_key', 'the_secret')
|
conn = boto.connect_vpc('the_key', 'the_secret')
|
||||||
@ -17,6 +19,7 @@ def test_vpc_peering_connections():
|
|||||||
return vpc_pcx
|
return vpc_pcx
|
||||||
|
|
||||||
|
|
||||||
|
@requires_boto_gte("2.32.0")
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
def test_vpc_peering_connections_get_all():
|
def test_vpc_peering_connections_get_all():
|
||||||
conn = boto.connect_vpc('the_key', 'the_secret')
|
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')
|
all_vpc_pcxs[0]._status.code.should.equal('pending-acceptance')
|
||||||
|
|
||||||
|
|
||||||
|
@requires_boto_gte("2.32.0")
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
def test_vpc_peering_connections_accept():
|
def test_vpc_peering_connections_accept():
|
||||||
conn = boto.connect_vpc('the_key', 'the_secret')
|
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')
|
all_vpc_pcxs[0]._status.code.should.equal('active')
|
||||||
|
|
||||||
|
|
||||||
|
@requires_boto_gte("2.32.0")
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
def test_vpc_peering_connections_reject():
|
def test_vpc_peering_connections_reject():
|
||||||
conn = boto.connect_vpc('the_key', 'the_secret')
|
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')
|
all_vpc_pcxs[0]._status.code.should.equal('rejected')
|
||||||
|
|
||||||
|
|
||||||
|
@requires_boto_gte("2.32.1")
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
def test_vpc_peering_connections_delete():
|
def test_vpc_peering_connections_delete():
|
||||||
conn = boto.connect_vpc('the_key', 'the_secret')
|
conn = boto.connect_vpc('the_key', 'the_secret')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user