Hi Roy, On Mon, 2017-08-28 at 14:44 +0200, Roy Teeuwen wrote: > Hey all, > > I am trying to run integration tests based on the > org.apache.sling.junit.core bundle. So far this always used to work, > because I was able to use loginAdministrative, but now that this > feature is disabled I can not do this anymore without providing > a org.apache.sling.jcr.base.internal.LoginAdminWhitelist.fragment- > junitcore config. > > I have seen in the caconfig bundle for integration tests that it is > done there by using the provisioning model to give the config and a > repoinit to provide the user, but this is not possible in my use- > case, I am creating an integration test bundle for AEM 6.3, so there > is no more provisioning, it's against a running test instance. > > Anyone has a good approach to tackle this issue, that the config (and > possibly even the user mapping) is still inside the integration test > bundle, and not that I have to pre provision it to the running > instance?
I would try and install the OSGi config at test time, using the OSGiConsoleClient. Robert