glance/glance
Dan Smith 6c96319eeb Poll for final state on test_copy_image_revert_lifecycle()
This test currently simulates failure by pre-deleting the store
directory for 'file3' which is the second of a two-store import
operation. The goal is to assert that the later failure reverts
the import of the earlier 'file2' store. However, the way the
polling loop works is that we break out once 'file2' has completed,
and then assume that 'file3' has already failed and reverted.
This is a race, and one we're losing consistently in CI.

This patch waits for the failure of 'file3' to be reported, as
well as the revert of 'file2' to occur before exiting the polling
loop and checking the final state of things to ensure that the
revert has actually happened. This addresses the non-determinism
inherent in the original test.

Change-Id: I11c7edaefc96236d2757acfb70d9c338c0f51348
2020-08-18 16:57:25 +00:00
..
api Add "stores" to disallowed properties 2020-07-30 19:30:17 +00:00
async_ Fix import failure status reporting when all_stores_must_succeed=True 2020-08-18 16:56:32 +00:00
cmd Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
common Update task message during import 2020-08-07 12:22:31 -07:00
db Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -07:00
domain Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -07:00
hacking Cleanup remove api v1 and registry code 2020-07-14 10:38:19 +00:00
image_cache Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
locale Imported Translations from Zanata 2020-06-16 07:47:50 +00:00
policies Remove unused "copy_from" policy rule 2020-07-15 13:01:58 -07:00
quota Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
tests Poll for final state on test_copy_image_revert_lifecycle() 2020-08-18 16:57:25 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Add context.elevated() helper for getting admin privileges 2020-07-10 08:59:53 -07:00
gateway.py Refactor TaskFactory and Executor to take an admin ImageRepo 2020-07-10 08:59:53 -07:00
i18n.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
location.py Inspect upload/import stream and set virtual_size 2020-08-05 08:42:04 -07:00
notifier.py Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
opts.py Add new config options in sample config generator 2020-07-28 16:06:43 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Fix string interpolation to delay by logging 2020-01-09 08:53:55 -06:00
version.py Add support for oslo.reports 2019-09-20 05:17:58 +00:00