From 9698b1bb957c1f646ac30fb64ec3528627fcee1c Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 17 Sep 2019 16:52:55 +0200 Subject: [PATCH] Skip test when object versioning is not enabled Change-Id: I671a6e4a3d1011dbbc2267b44134cfaf3380fb22 --- test/functional/test_versioned_writes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functional/test_versioned_writes.py b/test/functional/test_versioned_writes.py index 76573619cc..8902886301 100644 --- a/test/functional/test_versioned_writes.py +++ b/test/functional/test_versioned_writes.py @@ -982,7 +982,10 @@ class TestSloWithVersioning(unittest2.TestCase): self.segments_container = self.account.container(Utils.create_name()) if not self.container.create( hdrs={'X-Versions-Location': self.versions_container.name}): - raise ResponseError(self.conn.response) + if self.conn.response.status == 412: + raise SkipTest("Object versioning not enabled") + else: + raise ResponseError(self.conn.response) if 'versions' not in self.container.info(): raise SkipTest("Object versioning not enabled")