From dev-return-29153-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Wed Sep 12 10:59:29 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 10313 invoked from network); 12 Sep 2007 10:59:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 10:59:24 -0000 Received: (qmail 43941 invoked by uid 500); 12 Sep 2007 10:59:17 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 43429 invoked by uid 500); 12 Sep 2007 10:59:15 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 43374 invoked by uid 99); 12 Sep 2007 10:59:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 03:59:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.zakharov@gmail.com designates 209.85.146.176 as permitted sender) Received: from [209.85.146.176] (HELO wa-out-1112.google.com) (209.85.146.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 10:59:13 +0000 Received: by wa-out-1112.google.com with SMTP id k22so210145waf for ; Wed, 12 Sep 2007 03:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ls4I8B5p+oyVXwv1aO6myNTFXCgoFpLNodIBYulkTZk=; b=Y5OwUYG4W7PbzPVj1JrBUPMnQ5D3F2HxbNDRtnOlcrYUEWKJw901QUY3nP7yEJrWikfZbdsuISLzS6dNGCQSilSgidPaz5LjeFXkYhHz9Xie6FJqXyXP/uPJL0mW3sda6uf6vIZr37E9KT5igctFGQUtXtaDjN+3JoZREkvBqzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rH2uUKEKIr7cQH+d1EUAMzYVG3gJLJkJvgZBMjZG1YSNEtAzC8VelE2zQD3QyZqRF9cLY2NgDZ+HDLORg2/gdjupisfbp0LDUUP7yt+EDVfilCc8yq+6EHHblfVMPKz+3ogcwTJY/mZJ+8v2pXZW9nVad/vi1DomM+jGY6lXh38= Received: by 10.115.32.1 with SMTP id k1mr813681waj.1189594732223; Wed, 12 Sep 2007 03:58:52 -0700 (PDT) Received: by 10.114.197.6 with HTTP; Wed, 12 Sep 2007 03:58:52 -0700 (PDT) Message-ID: <2c9597b90709120358y3ed4f61dhb570ea6a534d5b5e@mail.gmail.com> Date: Wed, 12 Sep 2007 14:58:52 +0400 From: "Alexei Zakharov" To: dev@harmony.apache.org Subject: Re: [classlib][test] Bring ApacheDS into harmony test framework In-Reply-To: <6e47b64f0709052107i79bfc5fmcb2bc8ec1c57ca0b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46DE1851.4040401@gmail.com> <6e47b64f0709042227xcd70770r6e376e716bd4cbfb@mail.gmail.com> <473c46620709050039s2666b890v5b0160fdeb45f05@mail.gmail.com> <6e47b64f0709052107i79bfc5fmcb2bc8ec1c57ca0b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org > My personal opinion that classlibrary unit tests shouldn't require any > external software for running. I they do then then corresponding > testing scenario should be developed for BTI. +1, I never liked this jetty / derby stuff lying around the classlib trunk. BTI is a better place for it IMHO. Regards, 2007/9/6, Stepan Mishura : > On 9/5/07, Spark Shen wrote: > > 2007/9/5, Stepan Mishura : > > > > > > On 9/5/07, Regis wrote: > > > > Hi all, > > > > > > > > I'm working on jndi ldap service provider now, a embedded ldap server is > > > > required for testing. So i purpose to bring > > > > ApacheDS(http://directory.apache.org/) to our dependency, which is an > > > > embeddable directory server entirely written in Java, and has been > > > > certified LDAPv3 compatible by the Open Group. > > > > > > > > > > Hi, > > > > > > I'm afraid if we go this way then classlibrary testing will be > > > complicated. > > > Is it possible to test jndi service provider against lightweight-stub > > > server implementation and develop full testing scenario for BTI? > > > > > > After some thought, I have some concern about put Apache DS server into BTI. > > Correctly If I am wrong. > > > > 1. Our ldap provider related test cases will be splitted into 2 parts > > according to my propose. One part for testing connection. One part for test > > other standalone functions such as encoding/decoding. Others whom are not > > familiar with ldap would mistakenly thought we lacks of some test cases if > > they only look at class library trunk. > > > > 2. We have precedents such as derby and jetty. The only difference is that > > their jars are smaller than ours. > > > > 3. Sending a single LDAP request such as bind is too simple to be viewed as > > a scenario. Just as those test cases utilizing jetty or derby. I think > > that's why they are not placed into BIT either. > > > > Well, this is never ending discussion about testing - which tests > classlibrary should contain, what the difference between unit test and > functional test and so on. As far as I remember we never reached final > agreement here :-) > > My personal opinion that classlibrary unit tests shouldn't require any > external software for running. I they do then then corresponding > testing scenario should be developed for BTI. > > Thanks, > Stepan. > > > I hope it's not the size of Apache DS jars that complicate our test cases > > :-) > > > > I have an eclectic solution. We put DS jars into BIT, while writing all the > > ldap test cases in one place - class library trunk. Those test cases need > > server support will be listed in exclude list. Only when executing scenario > > test, will these test cases be downloaded to BIT. > > > > Thanks, > > > Stepan. > > > > > > > I have risen a jira and applied a patch at: > > > > https://issues.apache.org/jira/browse/HARMONY-4739 -- Alexei Zakharov, Intel ESSD