From bfafaf70dfc3cd362460432685a319e2aef5b2ad Mon Sep 17 00:00:00 2001 From: Shawn Falkner-Horine Date: Mon, 18 Aug 2014 11:54:11 -0700 Subject: [PATCH] Update support for VPCPeeringConnections. (New boto version in Travis matrix and gte threshold for tests.) --- .travis.yml | 1 + tests/test_ec2/test_vpc_peering.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 116217c71..68b361831 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/test_ec2/test_vpc_peering.py b/tests/test_ec2/test_vpc_peering.py index 79c2fd3d5..7d3650a43 100644 --- a/tests/test_ec2/test_vpc_peering.py +++ b/tests/test_ec2/test_vpc_peering.py @@ -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')