Merge pull request #198 from DreadPirateShawn/VPCDefaultSecurityGroup

VPC: Added default security group upon creation.
This commit is contained in:
Steve Pulec 2014-09-10 20:57:47 -04:00
commit b8afb3be90
2 changed files with 27 additions and 2 deletions

View file

@ -31,6 +31,22 @@ def test_vpcs():
cm.exception.request_id.should_not.be.none
@mock_ec2
def test_vpc_defaults():
conn = boto.connect_vpc('the_key', 'the_secret')
vpc = conn.create_vpc("10.0.0.0/16")
conn.get_all_vpcs().should.have.length_of(1)
conn.get_all_route_tables().should.have.length_of(1)
conn.get_all_security_groups().should.have.length_of(1)
vpc.delete()
conn.get_all_vpcs().should.have.length_of(0)
conn.get_all_route_tables().should.have.length_of(0)
conn.get_all_security_groups().should.have.length_of(0)
@mock_ec2
def test_vpc_tagging():
conn = boto.connect_vpc()