Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A951811FCF for ; Sat, 3 May 2014 18:06:38 +0000 (UTC) Received: (qmail 26008 invoked by uid 500); 3 May 2014 18:06:38 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 25933 invoked by uid 500); 3 May 2014 18:06:37 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 25926 invoked by uid 99); 3 May 2014 18:06:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2014 18:06:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-we0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2014 18:06:33 +0000 Received: by mail-we0-f177.google.com with SMTP id x48so517104wes.8 for ; Sat, 03 May 2014 11:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=df356Yf7oYirYeMzARdBCWl7h6v1sQM9FPgOin/yCdo=; b=0xZVUIJuHnvv3ofoX4UUKyuuARo7CRkxxDqKsHC/w674Hoj4bilUvcuPv1yEJDLb97 FvKJloHmvJ9YV4BDoNglmTv80bTTKIF7raa2m1xERgZzJR8fVxr2unFA+eQ4x9q5EfOL +vs5uObw1EjqHAW8A4bQeDJipbefmOQgge5uw99maCnOqy4cwXJKOumMMUE9XPEl1/9k 43L8YlBPHgTVlt+U3T5jpZoPiFt/04LIwNni1vtuw6CTQS4nrmTFerZtQo+i22QJQjwW jk9JIkSZMMP143LLgOQ6SRLScF+UmR7CO9+C/2yMXwio8izUMdqts3pObE4ViMCra3Gu xGuw== X-Received: by 10.180.78.225 with SMTP id e1mr8473938wix.17.1399140370978; Sat, 03 May 2014 11:06:10 -0700 (PDT) Received: from [192.168.1.20] (i19-les01-ix2-212-195-127-200.sfr.lns.abo.bbox.fr. [212.195.127.200]) by mx.google.com with ESMTPSA id c2sm6849653wja.18.2014.05.03.11.06.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 11:06:10 -0700 (PDT) Message-ID: <53653011.1020201@gmail.com> Date: Sat, 03 May 2014 20:06:09 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Unit tests for ldap api classes References: <53652002.4090000@stefan-seelmann.de> <53652452.4040600@stefan-seelmann.de> In-Reply-To: <53652452.4040600@stefan-seelmann.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Lucas, Stefan, there is an old (4 years !) sub-project which was created for this exact purpose : http://svn.apache.org/viewvc/directory/clients/ldap/ If you look at the tags directory, there is some code in it. Since then, we moved he code into apacheds/ldap-api-client. I do think it would be a good idea to move back the client code where it deserves to be. Also note that this hierarchy is quite a mess : directory/ clients branches kerberos-2.0 (probably the only valid directory) client password realm kerberos (dead) branches (dead) alex-refzctoring (dead) kerberos-value (dead) tags (dead) trunk (dead) ldap branches (dead) tags 0.1 (4 years old) trunk (dead) trunk kerberos (5 years old) client password realm ldap (7 years old) At this point, I'm +1 to move the client code into the clients directory, assuming we cleanup the current mess. We should keep the kerberos-2.0 and ldap directory, but only keep the kerberos-2.0 code. The resulting repo would be : directory/ clients branches kerberos ldap tags kerberos ldap trunk kerberos ldap I'm sure that Kiran can provide some insight regarding the kerberos code which is present there. We also shoudl add some externals in the main project : directory/apacheds/trunk-with-dependencies/ svn:externals apacheds https://svn.apache.org/repos/asf/directory/apacheds/trunk shared https://svn.apache.org/repos/asf/directory/shared/trunk project https://svn.apache.org/repos/asf/directory/project/trunk kerberos-client https://svn.apache.org/repos/asf/directory/clients/kerberos/trunk -----> Should be https://svn.apache.org/repos/asf/directory/clients/trunk/kerberos ldap-client https://svn.apache.org/repos/asf/directory/clients/kerberos/trunk -----> Should be https://svn.apache.org/repos/asf/directory/clients/trunk/ldap checkstyle-configuration https://svn.apache.org/repos/asf/directory/buildtools/checkstyle-configuration/trunk junit-addons https://svn.apache.org/repos/asf/directory/buildtools/junit-addons/trunk apacheds-manuals https://svn.apache.org/repos/asf/directory/documentation/apacheds-manuals/trunk -----> Should probably be removed ??? Or is it to generate PDFs ? WDYT ? Le 5/3/14 7:16 PM, Stefan Seelmann a écrit : > Hi Lucas, > > I see the benefit of your approach, and maybe others already thought > about that. But maybe it is not so easy. > > The client module would depend on many apacheds modules. > > And currently many apacheds modules depend on the ldap-client-api module: > > $ find * -name pom.xml | xargs grep -l api-ldap-client-api > core-api/pom.xml > core-integ/pom.xml > http-directory-bridge/pom.xml > interceptors/hash/pom.xml > interceptors/logger/pom.xml > interceptors/authn/pom.xml > kerberos-test/pom.xml > ldap-client-test/pom.xml > mmr-tests/pom.xml > protocol-ldap/pom.xml > server-integ/pom.xml > > I'm not sure if all of them really need the ldap-client-api module. But > to refactor is is quite some effort. I won't stop you from trying, if > you succeed I think that would be great :) > > Kind Regards, > Stefan > > > On 05/03/2014 07:05 PM, Lucas Theisen wrote: >> Hi Stefan, >> >> Thank you, I believe I knew that already, but was drawing a blank this >> morning. >> >> Should we still consider extracting out another subproject that would be a >> peer of apacheds and shared. It would basically be the shared/ldap/client >> branch. Then both this new client subproject and the apacheds subproject >> could depend on shared, as well as client depending on server so that it >> could contain its own unit tests. >> >> Its just a thought, and I am quite likely missing some reason why we don't >> do this, but it seems like it would be a good idea. >> >> Thanks, >> Lucas >> >> >> On Sat, May 3, 2014 at 12:57 PM, Stefan Seelmann wrote: >> >>> Hi Lucas, >>> >>> the LDAP API integration tests are in apacheds/ldap-client-api, for the >>> exact reason you mentioned. >>> >>> Kind Regards, >>> Stefan >>> >>> On 05/03/2014 06:45 PM, Lucas Theisen wrote: >>>> Hi All, >>>> >>>> I am working on LdapConnectionTemplate ( >>>> https://issues.apache.org/jira/browse/DIRAPI-163) and am not quite sure >>>> where to put unit tests. It appears that none of the ldap api artifacts >>>> depend on apacheds server artifacts. I am wondering if this is a hard >>>> requirement? And if so, how do you test the functionality of your apis? >>>> It seems that one of the major benefits of an embeddable server like >>>> apacheds is that it can be used for unit tests, but if we cannot even use >>>> it for our own unit tests... >>>> >>>> I know I could put some tests in server-integ, but that seems very wrong >>>> for testing new ldap api features. If this is because of circular >>>> dependencies (server depends on api, so api cannot depend on server), >>> then >>>> perhaps we should refactor. Maybe move the truly shared stuff (like >>> model >>>> and what not) into a shared library, and all the api stuff (like >>>> connections) into another. What do you think? >>>> >>>> Thanks, >>>> Lucas >>>> >>> -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com