Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 11237 invoked from network); 29 Oct 2009 11:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 11:15:54 -0000 Received: (qmail 76755 invoked by uid 500); 29 Oct 2009 11:15:54 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 76695 invoked by uid 500); 29 Oct 2009 11:15:53 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 76651 invoked by uid 99); 29 Oct 2009 11:15:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 11:15:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 Oct 2009 11:15:41 +0000 Received: (qmail 11113 invoked from network); 29 Oct 2009 11:15:19 -0000 Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 29 Oct 2009 11:15:19 -0000 Message-ID: <4AE97945.9000202@apache.org> Date: Thu, 29 Oct 2009 12:15:17 +0100 From: Stefan Seelmann User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: unit testing apacheds 1.5.5 References: <4AE80C6A.3080607@swissquote.ch> In-Reply-To: <4AE80C6A.3080607@swissquote.ch> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Alejandro Garcia Lopez wrote: > Hello, > > I am trying to set up unit testing with the new version of apacheds > 1.5.5. So far I've succeded in creating a test with an in memory apache > directory instance which I am able to initialise via an ldif file and > query for the users in a group. > > So far, the only way I am able to make it work is using anonymous > access. Could you point me out to the updated documentation for 1.5.5 or > explain me the way of setting a user Dn/password pair at server startup. > > I use the class in the attachment of this mail (borrowed from spring > security) to create the in memory apache directory instance, but I am > unable to modify it to set the > user dn/password. Do you need to use this class? Otherwise you could just run your JUnit tests with the SiRunner class. The documentation is not up-to-date, I'll update it in the next days. Till there I could point you to two resources: - [1] a very basic example - [2] the ApacheDS integration test HTH, Stefan [1]http://github.com/seelmann/ldapcon2009-apache-directory/ [2]http://svn.apache.org/repos/asf/directory/apacheds/tags/1.5.5/server-integ/