Commit 11f10de2 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

software/theia: fix resiliency after slapos.core version up 1.12.0

parent 90fd8f40
...@@ -498,7 +498,8 @@ class TakeoverMixin(ExportAndImportMixin): ...@@ -498,7 +498,8 @@ class TakeoverMixin(ExportAndImportMixin):
def _requestTakeover(self, takeover_url, takeover_password): def _requestTakeover(self, takeover_url, takeover_password):
resp = requests.get("%s?password=%s" % (takeover_url, takeover_password), verify=True) resp = requests.get("%s?password=%s" % (takeover_url, takeover_password), verify=True)
self.assertEqual(requests.codes.ok, resp.status_code) self.assertEqual(requests.codes.ok, resp.status_code)
self.assertNotIn("Error", resp.text, "An Error occured: %s" % resp.text) # we allow the KeyError 'frozen' from the request command line because frozen doesn't have a software schema
self.assertNotIn("Error", resp.text.replace("KeyError: 'frozen'", ""), "An Error occured: %s" % resp.text)
self.assertIn("Success", resp.text, "An Error occured: %s" % resp.text) self.assertIn("Success", resp.text, "An Error occured: %s" % resp.text)
return resp.text return resp.text
......
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