Commit 304c7ddf authored by Roque's avatar Roque

slapos_jio: update tests

parent d76a9a39
Pipeline #32587 failed with stage
in 0 seconds
...@@ -52,7 +52,7 @@ class TestSlapOSHalJsonStyleMixin(SlapOSTestCaseMixinWithAbort): ...@@ -52,7 +52,7 @@ class TestSlapOSHalJsonStyleMixin(SlapOSTestCaseMixinWithAbort):
except (AttributeError, TypeError) as _: except (AttributeError, TypeError) as _:
connection_url = '' connection_url = ''
if context.getPortalType() == "Instance Tree": if context.getPortalType() == "Instance Tree":
return base_url + '&query=portal_type:"Instance Tree" AND title:(%s)' % context.getTitle() + connection_url return base_url + '&query=portal_type:"Instance Tree" AND title:"%s"' % context.getTitle() + connection_url
else: else:
return base_url + '&query=portal_type:"Software Instance" AND title:"%s" AND ' % context.getTitle() + 'specialise_title:"%s"' % instance_tree_title + connection_url return base_url + '&query=portal_type:"Software Instance" AND title:"%s" AND ' % context.getTitle() + 'specialise_title:"%s"' % instance_tree_title + connection_url
...@@ -1556,4 +1556,4 @@ class TestSoftwareInstance_getAllocationInformation(TestSlapOSHalJsonStyleMixin) ...@@ -1556,4 +1556,4 @@ class TestSoftwareInstance_getAllocationInformation(TestSlapOSHalJsonStyleMixin)
self.login(requester.getUserId()) self.login(requester.getUserId())
self.assertEqual("Restricted information", self.assertEqual("Restricted information",
started_instance.SoftwareInstance_getAllocationInformation()) started_instance.SoftwareInstance_getAllocationInformation())
\ No newline at end of file
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