You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Andrei Shakirin <as...@talend.com> on 2013/06/13 11:12:11 UTC

Mocking LDAP server for integration tests

Hi,

I am working on integration tests for XKMS and thinking about mocking (or using lightweight) LDAP server.
I found some topics regarding this:

-           in UnboundID (https://www.unboundid.com/products/ldap-sdk/)

-          Mocking using Mockito (http://java.dzone.com/articles/mocking-out-ldapjndi-unit)

Has anybody experience to do it in Apache projects, is there any "typical" solution for it?

Regards,
Andrei.

Re: Mocking LDAP server for integration tests

Posted by Jason Pell <ja...@pellcorp.com>.
For my day job we use OpenDJ (previously OpenDS) to start an embedded ldap
server.  Works very well.




On Thu, Jun 13, 2013 at 11:33 PM, Oliver Wulff <ow...@talend.com> wrote:

> Spring also supports starting an embedded LDAP server. See here:
>
> http://stackoverflow.com/questions/544550/spring-embedded-ldap-server-in-unit-tests
>
> http://stackoverflow.com/questions/13396708/integration-tests-with-spring-security-and-ldap?lq=1
>
> Thanks
> Oli
>
> ________________________________________
> From: Andrei Shakirin [ashakirin@talend.com]
> Sent: 13 June 2013 15:21
> To: dev@cxf.apache.org
> Cc: coheigea@apache.org
> Subject: RE: Mocking LDAP server for integration tests
>
> Thanks Colm, I will take a look in WSS4J.
>
> > -----Original Message-----
> > From: Colm O hEigeartaigh [mailto:coheigea@apache.org]
> > Sent: Donnerstag, 13. Juni 2013 11:14
> > To: dev@cxf.apache.org
> > Subject: Re: Mocking LDAP server for integration tests
> >
> > WSS4J trunk has an "integration" module which uses Apache DS as a
> > Kerberos
> > Server:
> >
> > http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/
> >
> > Colm.
> >
> >
> > On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
> > <as...@talend.com>wrote:
> >
> > > Hi,
> > >
> > > I am working on integration tests for XKMS and thinking about mocking
> > > (or using lightweight) LDAP server.
> > > I found some topics regarding this:
> > >
> > > -           in UnboundID (https://www.unboundid.com/products/ldap-sdk/
> )
> > >
> > > -          Mocking using Mockito (
> > > http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
> > >
> > > Has anybody experience to do it in Apache projects, is there any
> "typical"
> > > solution for it?
> > >
> > > Regards,
> > > Andrei.
> > >
> >
> >
> >
> > --
> > Colm O hEigeartaigh
> >
> > Talend Community Coder
> > http://coders.talend.com
>

RE: Mocking LDAP server for integration tests

Posted by Oliver Wulff <ow...@talend.com>.
Spring also supports starting an embedded LDAP server. See here:
http://stackoverflow.com/questions/544550/spring-embedded-ldap-server-in-unit-tests
http://stackoverflow.com/questions/13396708/integration-tests-with-spring-security-and-ldap?lq=1

Thanks
Oli

________________________________________
From: Andrei Shakirin [ashakirin@talend.com]
Sent: 13 June 2013 15:21
To: dev@cxf.apache.org
Cc: coheigea@apache.org
Subject: RE: Mocking LDAP server for integration tests

Thanks Colm, I will take a look in WSS4J.

> -----Original Message-----
> From: Colm O hEigeartaigh [mailto:coheigea@apache.org]
> Sent: Donnerstag, 13. Juni 2013 11:14
> To: dev@cxf.apache.org
> Subject: Re: Mocking LDAP server for integration tests
>
> WSS4J trunk has an "integration" module which uses Apache DS as a
> Kerberos
> Server:
>
> http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/
>
> Colm.
>
>
> On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
> <as...@talend.com>wrote:
>
> > Hi,
> >
> > I am working on integration tests for XKMS and thinking about mocking
> > (or using lightweight) LDAP server.
> > I found some topics regarding this:
> >
> > -           in UnboundID (https://www.unboundid.com/products/ldap-sdk/)
> >
> > -          Mocking using Mockito (
> > http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
> >
> > Has anybody experience to do it in Apache projects, is there any "typical"
> > solution for it?
> >
> > Regards,
> > Andrei.
> >
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com

RE: Mocking LDAP server for integration tests

Posted by Andrei Shakirin <as...@talend.com>.
Thanks Colm, I will take a look in WSS4J.

> -----Original Message-----
> From: Colm O hEigeartaigh [mailto:coheigea@apache.org]
> Sent: Donnerstag, 13. Juni 2013 11:14
> To: dev@cxf.apache.org
> Subject: Re: Mocking LDAP server for integration tests
> 
> WSS4J trunk has an "integration" module which uses Apache DS as a
> Kerberos
> Server:
> 
> http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/
> 
> Colm.
> 
> 
> On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin
> <as...@talend.com>wrote:
> 
> > Hi,
> >
> > I am working on integration tests for XKMS and thinking about mocking
> > (or using lightweight) LDAP server.
> > I found some topics regarding this:
> >
> > -           in UnboundID (https://www.unboundid.com/products/ldap-sdk/)
> >
> > -          Mocking using Mockito (
> > http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
> >
> > Has anybody experience to do it in Apache projects, is there any "typical"
> > solution for it?
> >
> > Regards,
> > Andrei.
> >
> 
> 
> 
> --
> Colm O hEigeartaigh
> 
> Talend Community Coder
> http://coders.talend.com

Re: Mocking LDAP server for integration tests

Posted by Colm O hEigeartaigh <co...@apache.org>.
WSS4J trunk has an "integration" module which uses Apache DS as a Kerberos
Server:

http://svn.apache.org/viewvc/webservices/wss4j/trunk/integration/

Colm.


On Thu, Jun 13, 2013 at 10:12 AM, Andrei Shakirin <as...@talend.com>wrote:

> Hi,
>
> I am working on integration tests for XKMS and thinking about mocking (or
> using lightweight) LDAP server.
> I found some topics regarding this:
>
> -           in UnboundID (https://www.unboundid.com/products/ldap-sdk/)
>
> -          Mocking using Mockito (
> http://java.dzone.com/articles/mocking-out-ldapjndi-unit)
>
> Has anybody experience to do it in Apache projects, is there any "typical"
> solution for it?
>
> Regards,
> Andrei.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com