Cleanup EC2 classic default security group.
This commit is contained in:
parent
82f19952dd
commit
6c9bba2ca1
4 changed files with 29 additions and 25 deletions
|
|
@ -207,12 +207,8 @@ def test_stack_security_groups():
|
|||
)
|
||||
|
||||
ec2_conn = boto.ec2.connect_to_region("us-west-1")
|
||||
security_groups = ec2_conn.get_all_security_groups()
|
||||
for group in security_groups:
|
||||
if "InstanceSecurityGroup" in group.name:
|
||||
instance_group = group
|
||||
else:
|
||||
other_group = group
|
||||
instance_group = ec2_conn.get_all_security_groups(filters={'description': ['My security group']})[0]
|
||||
other_group = ec2_conn.get_all_security_groups(filters={'description': ['My other group']})[0]
|
||||
|
||||
reservation = ec2_conn.get_all_instances()[0]
|
||||
ec2_instance = reservation.instances[0]
|
||||
|
|
@ -1078,7 +1074,6 @@ def test_security_group_ingress_separate_from_security_group_by_id():
|
|||
security_group1.rules[0].to_port.should.equal('8080')
|
||||
|
||||
|
||||
|
||||
@mock_cloudformation
|
||||
@mock_ec2
|
||||
def test_security_group_ingress_separate_from_security_group_by_id():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue