Commit d5258858 authored by Jérome Perrin's avatar Jérome Perrin

software/theia/test: adjust test after slapos.core 1.8.4

parent d69e8f9a
...@@ -311,10 +311,12 @@ class TestTheiaWithEmbeddedInstance(TheiaTestCase): ...@@ -311,10 +311,12 @@ class TestTheiaWithEmbeddedInstance(TheiaTestCase):
self.assertSupplied(sr_url, info=proxy_info) self.assertSupplied(sr_url, info=proxy_info)
name = 'embedded_instance' name = 'embedded_instance'
self.assertIn(name, self.captureSlapos('service', 'list', text=True)) self.assertIn(name, self.captureSlapos('service', 'list', text=True))
info = self.captureSlapos('service', 'info', name, text=True) info = json.loads(self.captureSlapos('service', 'info', name, text=True))
self.assertIn(sr_url, info) self.assertEqual(info['software-url'], sr_url)
# XXX: slapos service info does not show the software type, so we check in
# slapos proxy show output
self.assertIn(sr_type, proxy_info) self.assertIn(sr_type, proxy_info)
self.assertIn(repr(config).replace("u'", "'"), info) self.assertEqual(info['instance-parameters'], config)
def assertNotEmbedded(self, sr_url, sr_type, config): def assertNotEmbedded(self, sr_url, sr_type, config):
sr_url = self.expandUrl(sr_url) sr_url = self.expandUrl(sr_url)
......
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