Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4979

org.apache.sling.commons.testing.jcr.RepositoryUtil should allow to instantiate a SlingRepository where loginService is supported

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Commons Testing 2.0.18
    • None
    • Commons
    • 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: