returnbase_url+'&query=portal_type:"Instance Tree" AND title:(%s)'%context.getTitle()+connection_url
else:
returnbase_url+'&query=portal_type:"Software Instance" AND title:"%s" AND '%context.getTitle()+'specialise_title:"%s"'%instance_tree_title+connection_url
maxDiff=None
defafterSetUp(self):
SlapOSTestCaseMixinWithAbort.afterSetUp(self)
...
...
@@ -166,7 +181,7 @@ class TestInstanceTree_getNewsDict(TestSlapOSHalJsonStyleMixin):
'portal_type':instance_tree.getPortalType(),
'reference':instance_tree.getReference(),
'title':instance_tree.getTitle(),
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND title:(Template Instance Tree)'
'monitor_url':self.getMonitorUrl(instance_tree)
}
self.assertEqual(_decode_with_json(news_dict),
_decode_with_json(expected_news_dict))
...
...
@@ -179,7 +194,7 @@ class TestInstanceTree_getNewsDict(TestSlapOSHalJsonStyleMixin):
'portal_type':instance_tree.getPortalType(),
'reference':instance_tree.getReference(),
'title':instance_tree.getTitle(),
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND title:(Template Instance Tree)',
'monitor_url':self.getMonitorUrl(instance_tree),
'is_slave':1
}
self.assertEqual(news_dict,
...
...
@@ -193,7 +208,7 @@ class TestInstanceTree_getNewsDict(TestSlapOSHalJsonStyleMixin):
'portal_type':instance_tree.getPortalType(),
'reference':instance_tree.getReference(),
'title':instance_tree.getTitle(),
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND title:(Template Instance Tree)',
'monitor_url':self.getMonitorUrl(instance_tree),
'is_stopped':1
}
self.assertEqual(_decode_with_json(news_dict),
...
...
@@ -207,7 +222,7 @@ class TestInstanceTree_getNewsDict(TestSlapOSHalJsonStyleMixin):
'portal_type':instance_tree.getPortalType(),
'reference':instance_tree.getReference(),
'title':instance_tree.getTitle(),
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND title:(Template Instance Tree)',
'monitor_url':self.getMonitorUrl(instance_tree),
'is_destroyed':1
}
self.assertEqual(_decode_with_json(news_dict),
...
...
@@ -224,15 +239,13 @@ class TestInstanceTree_getNewsDict(TestSlapOSHalJsonStyleMixin):
'portal_type':instance_tree.getPortalType(),
'reference':instance_tree.getReference(),
'title':instance_tree.getTitle(),
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND title:(Template Instance Tree)',
'monitor_url':self.getMonitorUrl(instance_tree),
'instance':[{'created_at':self.created_at,
'no_data':1,
'portal_type':instance.getPortalType(),
'reference':instance.getReference(),
'since':self.created_at,
'monitor_url':'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Software Instance" AND reference:%s'%(