Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 7461 invoked from network); 29 Mar 2007 05:49:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 05:49:30 -0000 Received: (qmail 64732 invoked by uid 500); 29 Mar 2007 05:49:37 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 64511 invoked by uid 500); 29 Mar 2007 05:49: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 64496 invoked by uid 99); 29 Mar 2007 05:49:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 22:49:37 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of akarasulu@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 22:49:29 -0700 Received: by wx-out-0506.google.com with SMTP id h31so81450wxd for ; Wed, 28 Mar 2007 22:49:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=k85xaWgxt2Z9cKpbBWbjYVPZaF7GsfrpsPiUxp5/Kv9Tu0Bf5qeZ0xCB+V4cqNBAxeKw4cL2WMe6Eid5s8ThboMGgmFXJddygEYhrQkr5UuhOBz48BpTPLsLZq8Ne6YOnMrBFUUL4arJ0U7VIEbPxyPgLfKtQzFMSnq+rqFsZMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=pIELUUhpdB5l5BbrwoT2dvGvAGFfoIyHIxzoDkuhECZfQA+AJyxYn+jZnOKvRLoRF2mBX4fLLkl/tBOcgIDVHouiGPpV5VGVwOE1j69s0czamTTQxZLRCKSjBjBXzNvLQl8ujxouS8ExcMeDE7J4VgUqBLT6JnF/FTpyPpqBKhs= Received: by 10.70.96.3 with SMTP id t3mr651019wxb.1175147348510; Wed, 28 Mar 2007 22:49:08 -0700 (PDT) Received: by 10.70.78.18 with HTTP; Wed, 28 Mar 2007 22:49:08 -0700 (PDT) Message-ID: Date: Thu, 29 Mar 2007 01:49:08 -0400 From: "Alex Karasulu" Sender: akarasulu@gmail.com To: "Apache Directory Developers List" Subject: Re: [Integration tests] How to speed up the tests In-Reply-To: <46098E87.7040807@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19802_33424433.1175147348468" References: <3B15C869-767C-46F4-81B3-1575A676BBA7@yahoo.com> <46098E87.7040807@gmail.com> X-Google-Sender-Auth: de64a4a222e55755 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19802_33424433.1175147348468 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Emmanuel, On 3/27/07, Emmanuel Lecharny wrote: > Alex Karasulu a =E9crit : > > > Just watch out for tests that may colide. For example some tests will > > add > > stuff into the server then count and assert the number of entries. Som= e > > tests will delete entries. All these tests presume a pristine setup > > with a > > fresh server. So basically we're going to need to cleanup for each > test. > > That's true. I have looked at this method, but when I saw the > implications, I just step back. Man I don't blame you :). > > > > Some tests presume custom setups. So this is not such a clean and > simple > > approach with what we have. Although there the techique will work it > > will > > take some labor to get us there. > > We nned something a little bit different. Most of the tests we have > should use this kind of process : > 1) initialize data > 2) do the test > 3) restore the initial state. Exactly this would work effectively restoring the initial state without requiring the stop, cleanup, and restart process. > For instance, if we want to test a DelRequest, the step (1) would simply > inject the data, then (2) will remove it, and (3) will be empty. > Pierre-Arnaud is worling on such tests that use DSML, because you can > write them in one single file containing the AddRequest, the > RemoveRequest and the SearchRequest to be sure we don't have the removed > entry anymore. > > Wait and see :) Hey this would be a slick replay feature for something like LS btw. I know that's OT on this thread but it's a cool thought. Alex ------=_Part_19802_33424433.1175147348468 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Emmanuel,

On 3/27/07, = Emmanuel Lecharny <elecharny@= gmail.com> wrote:
Alex Karasulu a =E9crit :
> Just watch out for tests that may colide.  For example some= tests will
> add
> stuff into the server then count and assert the number= of entries.  Some
> tests will delete entries.  = All these tests presume a pristine setup
> with a
> fresh serve= r.  So basically we're going to need to cleanup for each test= .

That's true. I have looked at this method, but when I saw theimplications, I just step back.
 
Man I don't blame you :).

 
>
> Some tests presume = custom setups.  So this is not such a clean and simple
> ap= proach with what we have.  Although there the techique will work = it
> will
> take some labor to get us there.

We nned somet= hing a little bit different. Most of the tests we have
should use this k= ind of process :
1) initialize data
2) do the test
3) restore the = initial state.
 
Exactly this would work effectively restoring the initial state withou= t requiring the stop, cleanup, and restart process.

 
For instance, if we want to test= a DelRequest, the step (1) would simply
inject the data, then (2) will = remove it, and (3) will be empty.
Pierre-Arnaud is worling on such tests that use DSML, because you canwrite them in one single file containing the AddRequest, the
RemoveReq= uest and the SearchRequest to be sure we don't have the removed
entry anymore.

Wait and see :)
 
Hey this would be a slick replay feature for something like LS btw.&nb= sp; I know that's OT on this thread but it's a cool thought.
 
Alex
 
------=_Part_19802_33424433.1175147348468--