accessing the repository in a sling test

2014-09-25 Thread Santiago García Pimentel
Hello, I've been trying writing some tests following the docs in http://sling.apache.org/documentation/development/sling-testing-tools.html . I need to write a test that runs in a sling instance. This test depend on some content saved in the jcr repository. What is the best way to do this?

Re: OpenID AuthenticationHandler - SlingAuthenticator doLogin: Cannot login: Response already committed

2014-09-25 Thread Robert Munteanu
On Thu, Sep 25, 2014 at 5:19 PM, Smoczynski, Jakub jakub.smoczyn...@roche.com wrote: If the OpenID is stale or irrelevant - maybe it should be removed? It was recently removed from the default launchpad and added to the contrib area. Robert Best regards, Jakub Jakub Smoczyński Senior

RE: accessing the repository in a sling test

2014-09-25 Thread Stefan Seifert
have a look at existing integration test projects - this is a good example: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/integration-tests

RE: accessing the repository in a sling test

2014-09-25 Thread Stefan Seifert
yes, this is correct, in the latest sling versions you should use getServiceResourceResolver. but you need additional configuration to map to a user - see [1] for details stefan [1] http://sling.apache.org/documentation/the-sling-engine/service-authentication.html -Original Message-