VPC: Added default security group upon creation.

This commit is contained in:
Shawn Falkner-Horine 2014-09-10 11:15:43 -07:00
commit 2cf97ef193
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()