1959 self._test('Any X WHERE X eid %(x)s, X owned_by U, U eid %(u)s', |
1959 self._test('Any X WHERE X eid %(x)s, X owned_by U, U eid %(u)s', |
1960 [('OneFetchStep', [('Any 999998 WHERE 999998 owned_by 999999', [{}])], |
1960 [('OneFetchStep', [('Any 999998 WHERE 999998 owned_by 999999', [{}])], |
1961 None, None, [self.system], {}, [])], |
1961 None, None, [self.system], {}, [])], |
1962 {'x': 999998, 'u': 999999}) |
1962 {'x': 999998, 'u': 999999}) |
1963 |
1963 |
1964 def test_nonregr_identity_no_source_access(self): |
1964 def test_nonregr_identity_no_source_access_1(self): |
1965 repo._type_source_cache[999999] = ('CWUser', 'ldap', 999998) |
1965 repo._type_source_cache[999999] = ('CWUser', 'ldap', 999998) |
1966 self._test('Any S WHERE S identity U, S eid %(s)s, U eid %(u)s', |
1966 self._test('Any S WHERE S identity U, S eid %(s)s, U eid %(u)s', |
1967 [('OneFetchStep', [('Any 999999 WHERE 999999 identity 999999', [{}])], |
1967 [('OneFetchStep', [('Any 999999 WHERE 999999 identity 999999', [{}])], |
1968 None, None, [self.system], {}, [])], |
1968 None, None, [self.system], {}, [])], |
1969 {'s': 999999, 'u': 999999}) |
1969 {'s': 999999, 'u': 999999}) |
|
1970 |
|
1971 def test_nonregr_identity_no_source_access_2(self): |
|
1972 repo._type_source_cache[999999] = ('EmailAddress', 'system', 999999) |
|
1973 repo._type_source_cache[999998] = ('CWUser', 'ldap', 999998) |
|
1974 self._test('Any X WHERE O use_email X, ((EXISTS(O identity U)) OR (EXISTS(O in_group G, G name IN("managers", "staff")))) OR (EXISTS(O in_group G2, U in_group G2, NOT G2 name "users")), X eid %(x)s, U eid %(u)s', |
|
1975 [('OneFetchStep', [('Any 999999 WHERE O use_email 999999, ((EXISTS(O identity 999998)) OR (EXISTS(O in_group G, G name IN("managers", "staff")))) OR (EXISTS(O in_group G2, 999998 in_group G2, NOT G2 name "users"))', |
|
1976 [{'G': 'CWGroup', 'G2': 'CWGroup', 'O': 'CWUser'}])], |
|
1977 None, None, [self.system], {}, [])], |
|
1978 {'x': 999999, 'u': 999998}) |
|
1979 |
1970 |
1980 |
1971 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC): |
1981 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC): |
1972 """test planner related feature on a 3-sources repository: |
1982 """test planner related feature on a 3-sources repository: |
1973 |
1983 |
1974 * 2 rql sources supporting Card |
1984 * 2 rql sources supporting Card |