Hey Richard,
I have done this recently for Apache Hive.

If you need additional references.
https://github.com/apache/hive/blob/master/service/src/test/org/apache/hive/service/auth/TestLdapAtnProviderWithMiniDS.java

Hope it helps.
Naveen


On Fri, Sep 2, 2016 at 11:06 AM, Kiran Ayyagari <[email protected]>
wrote:

> On Fri, Sep 2, 2016 at 8:32 PM, Richard Sand <[email protected]> wrote:
>
> > Hi all - I'm writing unit tests for an LDAP-backed web service. The web
> > service is deployed on Jersey which supplies a few different embeddable
> > runtimes for use in unit tests, so that the tests can spin up a server,
> hit
> > them with the test client, and then spin down. But I need to keep
> ApacheDS
> > running for the servers to work, which makes sharing the tests amongst
> > developers (and onto our CI server) difficult. Does ApacheDS have a
> support
> > for this, or are there any elegant solutions folks have come up with for
> > this scenario?
> >
> Take a look at the tests present here
> http://svn.apache.org/repos/asf/directory/apacheds/trunk/server-integ
>
> and the associated annotations are here
> http://svn.apache.org/repos/asf/directory/apacheds/trunk/
> server-annotations.
>
> We have implemented the above to solve a similar problem.
>
> >
> > Best regards,
> >
> > Richard
> >
> >
>

Reply via email to