d304d828d0422025af93bbb76b76843f5886a45f
Commit Graph

8 Commits

Author SHA1 Message Date
Russell Bryant
3dc539bcb0 Don't allow EC2 removal of security group in use.
Fix bug 817872.
This patch modifies the behavior of removing security groups via the EC2
API to better match the EC2 API spec. The EC2 documentation says that a
group that is still in use can not be removed.
A new function has been added to the db API to find out whether a
particular security group is still in use. "In use" is defined as
applied to an active instance, or applied to another group that has not
been deleted.
Unit tests have been updated to ensure that an error is raised when
these conditions are hit.
Change-Id: I5b3fdf1da213b04084fe266c1a6ed92e01cf1e19
2012年02月14日 17:20:53 -05:00
Hengqing Hu
c33bd50a79 Fix bad test cases in smoketest.
Fixes bug #912650.
Fixes the following test cases in
smoketests/test_netadmin.py:SecurityGroupTests:
 'test_004_can_access_metadata_over_public_ip'
 'test_005_validate_metadata'
 'test_999_tearDown'
Change-Id: Iefa8034a364e13243d06200e8af1840df896baf3
2012年01月10日 10:39:35 +08:00
Jimmy Bergman
88acbe869a Fix for EC2 API part of bug 897164
Change-Id: I96344eaccd2f42b70223b3c155a4793ab00d09d5
2011年12月02日 15:45:26 +01:00
Dan Prince
c81febc28a Updated the EC2 metadata controller so that it returns the correct value
for instance-type metadata.
2011年08月09日 16:00:54 -04:00
Dan Prince
458932a4f0 Update the curl command in the __public_instance_is_accessible function
of test_netadmin to return an error code which we can then check for
and handle properly. This should allow calling functions to properly
retry and timout if an actual test failure happens.
2011年08月06日 22:59:09 -04:00
Dan Prince
336efaf814 Add exception logging for instance IDs in the __public_instance_is_accessible
smoke test function. This should help troubleshoot an intermittent failure.
2011年08月05日 11:17:05 -04:00
Vishvananda Ishaya
24eb5c0b78 removed unused references to unittest 2011年02月24日 21:33:26 -08:00
Vishvananda Ishaya
498638ce36 make smoketests run with nose 2011年02月24日 17:17:42 -08:00