Merge pull request #200 from openstack-charmers/verify-tls

radosgw: Add retry for object storage test
This commit is contained in:
Frode Nordahl
2020-03-23 12:16:47 +01:00
committed by GitHub

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.