glance/glance/tests/functional
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
..
db Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -07:00
serial Deprecation cleanout Registry and related 2020-06-30 20:41:30 +01:00
v2 Poll for final state on test_copy_image_revert_lifecycle() 2020-08-18 16:57:25 +00:00
__init__.py Squelch the stevedore.extension debug logging in functional tests 2020-08-07 09:43:50 -07:00
ft_utils.py Poll for final state on test_copy_image_revert_lifecycle() 2020-08-18 16:57:25 +00:00
store_utils.py Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
test_api.py Removal of 'enable_v2_api' 2020-07-03 19:01:39 +00:00
test_cache_middleware.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_client_exceptions.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00
test_client_redirects.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00
test_cors_middleware.py Remove Images API v1 entry points 2018-07-13 10:21:49 +01:00
test_glance_manage.py Convert to string before using assertIn 2018-06-04 16:34:29 -04:00
test_gzip_middleware.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_healthcheck_middleware.py Python3: fix logs/glance.tests.functional.test_healthcheck_middleware 2016-12-01 17:43:22 +01:00
test_logging.py Remove registry related functional and unit tests 2019-12-18 09:23:37 +00:00
test_reload.py Remove usages of SSL related config options in utils 2020-03-17 22:38:09 -07:00
test_sqlite.py Allow glance tests to run on Windows 2019-03-13 16:41:11 +02:00
test_wsgi.py Fix broken glance-cache-manage utility 2020-07-23 07:04:52 +00:00