Merge "Skip S3 versioning test when versioning is not enabled"

This commit is contained in:
Zuul 2023-02-25 07:27:09 +00:00 committed by Gerrit Code Review
commit e21766cf64

View File

@ -208,6 +208,9 @@ class TestS3ApiXxeInjection(S3ApiBaseBoto3):
self.assertEqual(204, response_metadata.get('HTTPStatusCode'))
def test_put_bucket_versioning(self):
if 'object_versioning' not in tf.cluster_info:
raise tf.SkipTest('S3 versioning requires that Swift object '
'versioning be enabled')
self._create_bucket()
url = self._presign_url(