Quick hack to get /p/{url}/jstree working again
Apparently Eve is now stricter in checking against MONGO_QUERY_BLACKLIST, and blocks our use of $regex when getting child nodes. See `jstree.py::jstree_get_children()`
This commit is contained in:
@@ -99,3 +99,12 @@ class JSTreeTest(AbstractPillarTest):
|
||||
'children': False,
|
||||
'custom_view': False,
|
||||
})
|
||||
|
||||
def test_jstree_canary(self):
|
||||
"""Test that a project's /jstree URL can be called at all.
|
||||
|
||||
This catches a problem we had with MONGO_QUERY_BLACKLIST.
|
||||
"""
|
||||
|
||||
resp = self.get(f'/p/{self.project["url"]}/jstree')
|
||||
self.assertEqual(200, resp.status_code)
|
||||
|
Reference in New Issue
Block a user