--- a/cubicweb/server/test/unittest_server_security.py Sun Feb 02 22:15:38 2020 +0100
+++ b/cubicweb/server/test/unittest_server_security.py Wed Mar 13 00:15:48 2019 +0100
@@ -44,7 +44,7 @@
nom = self.repo.schema['Personne'].rdef('nom')
with self.temporary_permissions((nom, {'read': ('users', 'managers')})):
with self.admin_access.repo_cnx() as cnx:
- self.repo.vreg.solutions(cnx, rqlst, None)
+ self.repo.vreg.compute_var_types(cnx, rqlst, None)
check_relations_read_access(cnx, rqlst, {})
with self.new_access(u'anon').repo_cnx() as cnx:
self.assertRaises(Unauthorized,
@@ -57,7 +57,7 @@
rqlst = self.repo.vreg.rqlhelper.parse(rql).children[0]
with self.temporary_permissions(Personne={'read': ('users', 'managers')}):
with self.admin_access.repo_cnx() as cnx:
- self.repo.vreg.solutions(cnx, rqlst, None)
+ self.repo.vreg.compute_var_types(cnx, rqlst, None)
solution = rqlst.solutions[0]
localchecks = get_local_checks(cnx, rqlst, solution)
self.assertEqual({}, localchecks)
@@ -520,7 +520,7 @@
ERQLExpression('X owned_by U'))}):
with self.new_access(u'iaminusersgrouponly').repo_cnx() as cnx:
rqlst = self.repo.vreg.rqlhelper.parse('Any X WHERE X is_instance_of Societe')
- self.repo.vreg.solutions(cnx, rqlst, {})
+ self.repo.vreg.compute_var_types(cnx, rqlst, {})
self.repo.vreg.rqlhelper.annotate(rqlst)
plan = cnx.repo.querier.plan_factory(rqlst, {}, cnx)
plan.preprocess(rqlst)