radosgw: Add retry for object storage test

When testing with TLS there is a chance the deployment will appear
done and idle prior to ceph-radosgw and Keystone have updated the
service catalog.  Retry the test in this circumstance.
This commit is contained in:
Frode Nordahl
2020-03-23 12:06:04 +01:00
parent 1ece576981
commit c6f0f79ea5

View File

@@ -592,6 +592,13 @@ class CephRGWTest(test_utils.OpenStackBaseTest):
target_status='running'
)
# When testing with TLS there is a chance the deployment will appear done
# and idle prior to ceph-radosgw and Keystone have updated the service
# catalog. Retry the test in this circumstance.
@tenacity.retry(wait=tenacity.wait_exponential(multiplier=10, max=300),
reraise=True, stop=tenacity.stop_after_attempt(10),
retry=tenacity.retry_if_exception_type(
ConnectionRefusedError))
def test_object_storage(self):
"""Verify object storage API.