Re: Impersonation via ServiceResourceResolver

2018-01-10 Thread Johan Ruttens
; > On Fri, 2018-01-05 at 23:46 +0100, Johan Ruttens wrote: > > Hi, > > > > We have to following piece of functionality: > > > > ... > > final Session adminSession = > > adminResourceResolver.adaptTo(Session.class); > > Session userSession =

Integration test depending of Sling job

2017-12-19 Thread Johan Ruttens
Hi, I'm working on a (Adobe AEM) integration test, where the test methods depend on a job being finished, before the methods can be executed with success. The scenario of the job is a follows: 1. Copy a page to be used as a test resource (using the PageManager.copy method) 2. Trigger a job