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:
2018-08-30 13:56:53 +02:00
parent f6fd9228e5
commit 2ad5b20880
2 changed files with 14 additions and 0 deletions

View File

@@ -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)