Details
-
Wish
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
Commons Testing 2.0.18
-
None
-
None
Description
When using org.apache.sling.commons.testing (2.0.18) and trying to call loginService on the returned SlingRepository results in an exception as the API has not been updated to support such kind of calls, while it'd be nice to be able also to test a class (e.g. a service) using loginService to authenticate.
However I understand that it might be complicated to inject which services can do what, or at least it may be not too useful as the candidate test classes wanting to use such a repository would use services according to how mappings have been defined... Maybe we could offer 1 or 2 services that are enabled (admin / anonymous like).