Commit 584aaac7 authored by Jérome Perrin's avatar Jérome Perrin

caddy-frontend/test: update to new snapshot API

parent 83538e85
Pipeline #7279 failed with stage
in 0 seconds
......@@ -534,7 +534,7 @@ class SlaveHttpFrontendTestCase(SlapOSInstanceTestCase):
cls.startServerProcess()
except BaseException:
cls.logger.exception("Error during setUpClass")
cls._cleanup()
cls._cleanup('setUpClass')
cls.setUp = lambda self: self.fail('Setup Class failed.')
raise
......@@ -559,8 +559,7 @@ class SlaveHttpFrontendTestCase(SlapOSInstanceTestCase):
cls.waitForCaddy()
except BaseException:
cls.logger.exception("Error during setUpClass")
cls._storeSnapshot("{}.setUpClass".format(cls.__name__))
cls._cleanup()
cls._cleanup('setUpClass')
cls.setUp = lambda self: self.fail('Setup Class failed.')
raise
......@@ -854,9 +853,9 @@ class SlaveHttpFrontendTestCase(SlapOSInstanceTestCase):
break
@classmethod
def _cleanup(cls):
def _cleanup(cls, snapshot_name):
cls.stopServerProcess()
super(SlaveHttpFrontendTestCase, cls)._cleanup()
super(SlaveHttpFrontendTestCase, cls)._cleanup(snapshot_name)
def patchRequests(self):
HTTPResponse = requests.packages.urllib3.response.HTTPResponse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment