You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/11/06 21:39:10 UTC

[jira] [Updated] (SLING-4979) commons.testing.util.RepositoryUtil should allow to instantiate a SlingRepository where loginService is supported

     [ https://issues.apache.org/jira/browse/SLING-4979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert updated SLING-4979:
----------------------------------
    Fix Version/s:     (was: Commons Testing 2.0.20)
                   Commons Testing 2.0.22

> commons.testing.util.RepositoryUtil should allow to instantiate a SlingRepository where loginService is supported
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-4979
>                 URL: https://issues.apache.org/jira/browse/SLING-4979
>             Project: Sling
>          Issue Type: Wish
>          Components: Commons
>    Affects Versions: Commons Testing 2.0.18
>            Reporter: Tommaso Teofili
>             Fix For: Commons Testing 2.0.22
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)