nova/nova/tests
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
..
CA initial commit 2010-05-27 23:05:26 -07:00
api Don't allow EC2 removal of security group in use. 2012-02-14 17:20:53 -05:00
baremetal Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
bundle If machine manifest includes a kernel and/or ramdisk id, include it in the image's metadata. 2010-10-11 14:09:24 +02:00
db KVM and XEN Disk Management Parity 2012-01-24 16:54:23 +00:00
glance Reducing the number of compute calls to Glance 2011-11-09 08:53:40 -05:00
image Use name filter in GlanceImageService show_by_name 2012-01-28 22:19:21 -08:00
integrated Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
monkey_patch_example Fixed some docstring 2011-08-23 09:46:49 -07:00
notifier ComputeNode Capacity support 2012-01-23 07:45:33 -08:00
rpc Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
scheduler Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
vmwareapi Convert vmwareapi code to UNIX style line endings 2012-01-25 12:08:12 +00:00
xenapi Changes for supporting fast cloning on Xenserver. 2012-02-13 09:31:01 +05:30
__init__.py Avoid weird test error when mox is missing 2012-02-02 17:29:05 +01:00
declare_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
fake_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
fake_libvirt_utils.py Remove ajaxterm from Nova 2012-02-07 21:14:31 +01:00
fake_network.py remove all instance_type db lookups from network 2012-02-10 17:24:26 -06:00
fake_network_cache_model.py Ties quantum, melange, and nova network model 2012-02-01 13:29:14 -06:00
fake_utils.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
fakelibvirt.py Fixed bug 912701 2012-01-18 14:44:05 +01:00
policy.json Remove ajaxterm from Nova 2012-02-07 21:14:31 +01:00
runtime_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
test_SolidFireSanISCSIDriver.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_access.py fix test_access 2011-07-22 20:41:46 +00:00
test_api.py Don't allow EC2 removal of security group in use. 2012-02-14 17:20:53 -05:00
test_auth.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_bdm.py ec2/cloud: unit tests for parser/formatter of block device mapping 2011-06-23 19:51:01 +09:00
test_block_device.py tests: unit tests for nova.block_device 2011-07-23 16:57:04 +09:00
test_compat_flagfile.py Handle --flagfile by converting to .ini style 2012-02-07 21:35:30 +00:00
test_compute.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_compute_utils.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_console.py fix a whole bunch of tests 2011-07-22 00:39:53 +00:00
test_consoleauth.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_context.py Update RequestContext so that it correctly sets self.is_admin from the 2011-08-29 22:27:28 -04:00
test_crypto.py Excise M2Crypto! 2012-02-02 10:12:58 -08:00
test_db_api.py blueprint host-aggregates: OSAPI/virt integration, via nova.compute.api 2012-01-25 17:09:54 +00:00
test_direct.py Beef up nova/api/direct.py tests 2011-09-28 10:25:10 +01:00
test_exception.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_fakelibvirt.py Extend test_virt_driver to also test libvirt driver. 2011-11-22 17:30:27 +01:00
test_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
test_image.py Extend fake image service to let it hold image data 2011-11-10 13:35:40 +01:00
test_imagecache.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_instance_types.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_instance_types_extra_specs.py Removes constraints from instance and volume types 2012-02-08 11:27:39 -08:00
test_iptables_network.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00
test_ipv6.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_iscsi.py Allow the user to choose either ietadm or tgtadm (lp:819997) 2011-10-13 07:34:40 +01:00
test_libvirt.py Don't allow EC2 removal of security group in use. 2012-02-14 17:20:53 -05:00
test_linux_net.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_local.py Adds test for local.py 2012-01-12 22:27:46 +00:00
test_localization.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00
test_log.py get rid of initialized flag 2011-02-21 00:15:49 -08:00
test_metadata.py Ties quantum, melange, and nova network model 2012-02-01 13:29:14 -06:00
test_misc.py Bug #912858: test_authors_up_to_date does not deal with capitalized names properly 2012-01-06 17:49:57 +00:00
test_network.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_network_info.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_notifier.py Fix _poll_bandwidth_usage if no network on vif 2012-02-06 17:03:07 -06:00
test_nova_manage.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00
test_nova_rootwrap.py Makes sure killfilter doesn't raise ValueError 2012-02-07 17:05:30 -08:00
test_objectstore.py clean up fake auth manager in other places 2011-07-22 21:36:41 +00:00
test_policy.py Ignore case in policy role checks. 2012-01-27 14:01:08 -05:00
test_quantum.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_quota.py Fix _poll_bandwidth_usage if no network on vif 2012-02-06 17:03:07 -06:00
test_service.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
test_signer.py Fixes Bug #861293 2011-09-29 13:39:59 +01:00
test_skip_examples.py fixed pep8 issue 2011-08-04 23:01:22 -05:00
test_test.py ditched rpc.create_consumer(conn) interface... instead you now do conn.create_consumer(.. 2011-08-29 14:36:12 -07:00
test_test_utils.py Update a few doc strings. 2011-08-22 23:26:12 +02:00
test_utils.py Allows nova to read files as root 2012-02-03 16:49:42 -08:00
test_versions.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00
test_virt.py tests: unit tests for nova.virt 2011-07-23 16:57:05 +09:00
test_virt_drivers.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
test_vmwareapi.py Remove ajaxterm from Nova 2012-02-07 21:14:31 +01:00
test_volume.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_volume_types.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_volume_types_extra_specs.py Removes constraints from instance and volume types 2012-02-08 11:27:39 -08:00
test_vsa.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_vsa_volumes.py Replace ApiError with new exceptions 2012-02-14 12:20:20 -08:00
test_wsgi.py Moves find config to utils because it is useful 2011-12-10 14:01:17 -08:00
test_xenapi.py Standardize logging delaration and use 2012-02-14 13:02:43 -06:00
utils.py Removes constraints from instance and volume types 2012-02-08 11:27:39 -08:00