nova/nova/tests/functional
Matt Riedemann 032937ce51 Add regression test for quota decrement bug 1678326
This was spotted from someone validating the fix for
bug 1670627. They reported that even though they failed
to delete an instance in ERROR state that was in cell0,
the quota usage was decremented.

This is because we committed the quota reservation
to decrement the usage before actually attempting to destroy
the instance, rather than upon successful deletion.

The rollback after InstanceNotFound is a noop because of
how the Quotas.rollback method noops if the reservations
were already committed. That is in itself arguably a bug,
but not fixed here, especially since the counting quotas
work in Pike will remove all of the reservations commit and
rollback code.

Change-Id: I12d1fa1a10f9014863123ac9cc3c63ddfb48378e
Partial-Bug: #1678326
2017-04-05 15:15:20 -04:00
..
api Add check for invalid inventory amounts 2017-03-21 16:45:36 -07:00
api_sample_tests Remove duplicate attributes in sample files 2017-03-10 10:15:07 +00:00
compute Ironic: hardcode min_unit for standard resources to 1 2017-03-21 14:06:43 +00:00
db Merge "Rename the model object ResourceProviderTraits to ResourceProviderTrait" 2017-04-03 16:03:40 +00:00
libvirt Merge "Bump minimum required libvirt/qemu versions for Pike" 2017-02-24 02:50:33 +00:00
notification_sample_tests Remove _wait_for_state_change() calls from notification (action)tests 2017-03-29 09:11:13 +02:00
regressions Add regression test for quota decrement bug 1678326 2017-04-05 15:15:20 -04:00
wsgi Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Simple tenant usage pagination 2016-12-14 03:33:50 +00:00
integrated_helpers.py Remove usage of config option verbose 2017-02-27 10:02:45 +08:00
test_compute_mgr.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_images.py Add create image functional negative tests 2016-12-26 14:15:14 +09:00
test_instance_actions.py make microversion a client level construct for tests 2016-02-24 11:02:05 -05:00
test_legacy_v2_compatible_wrapper.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test_list_servers_ip_filter.py Add functional test for ip filtering with regex 2017-03-01 22:19:09 -05:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_server_group.py Scheduler calling the Placement API 2017-01-27 16:36:34 -08:00
test_servers.py Add resize server functional negative tests 2017-03-02 11:48:45 +09:00