Merge "Skip test when object versioning is not enabled"
This commit is contained in:
commit
dd1eacb7c5
@ -982,7 +982,10 @@ class TestSloWithVersioning(unittest2.TestCase):
|
|||||||
self.segments_container = self.account.container(Utils.create_name())
|
self.segments_container = self.account.container(Utils.create_name())
|
||||||
if not self.container.create(
|
if not self.container.create(
|
||||||
hdrs={'X-Versions-Location': self.versions_container.name}):
|
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():
|
if 'versions' not in self.container.info():
|
||||||
raise SkipTest("Object versioning not enabled")
|
raise SkipTest("Object versioning not enabled")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user