Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6F6B7200B78 for ; Fri, 2 Sep 2016 17:09:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E1DD160AAE; Fri, 2 Sep 2016 15:09:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B558B160A8C for ; Fri, 2 Sep 2016 17:09:18 +0200 (CEST) Received: (qmail 89393 invoked by uid 500); 2 Sep 2016 15:09:17 -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 89380 invoked by uid 99); 2 Sep 2016 15:09:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 15:09:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0B60CC0B4A for ; Fri, 2 Sep 2016 15:09:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.72 X-Spam-Level: X-Spam-Status: No, score=-0.72 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=idfconnect-com.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hc3XYw4qRxIx for ; Fri, 2 Sep 2016 15:09:13 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 642115F24D for ; Fri, 2 Sep 2016 15:09:13 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id t7so121677560qkh.1 for ; Fri, 02 Sep 2016 08:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=idfconnect-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:reply-to :user-agent:mime-version:content-transfer-encoding; bh=RYeRjjK02+ibIc+Ux28ce8AawYoCmscZVJcPVuT13WI=; b=AZlTZjj4JrM3QWdwqXfX8vccxXrM3RPZIRB2abrFjYHVsBxHwE+xyDyMNpjbjxey0u p3xktYg1UoMT/wBNI0K9WA/1qaiLz0OH5xvBneaWS0YKL3OlR3fu/TLcrnNArNHlV76y dFM1HvneXjQkST5Uztjp+EWcRaM8PGy5Oi2x6dquvPGLQQ20/Z9TORQzksD6d3I/Z1H/ SQ/oAlVScNoKCMhxWHKd3PMhISWo78f0JzKd5mffeGL2N82LMyyp352DnRiLWu86PG4U qJqOXotuQy5c8vG6+bgxxu6qhi7LQxLghyBRBWhzLHlKNGVdVvSmQSkQ+LZBkTElgwnU lLQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:reply-to:user-agent:mime-version :content-transfer-encoding; bh=RYeRjjK02+ibIc+Ux28ce8AawYoCmscZVJcPVuT13WI=; b=izYZxROxp/d21WUi4cS7ONuf8q+aEvdLlQUq2JncuPoABeUV7iwnwqZXVDEktxtCm+ artPgpTgw5S+DK3MasmeQmGod/aanYvMAQoMngto1UIYjGM363Fve85JLddHSR3ofnEY Ta7thiBZF5PndY4ioIm+A0k+6YFVPHOJ1EANBr3NLxFuidaM3eAX/UygVUknQlWXiK+L cR8BbxBhJwr1yO7EPOzEKN2P069wRDP2HDTz8+C4gfUbmNjizKSkfpc4qBq1DiM5D23N NTwJqPPFsMmIWXiivo/ygIewxrDBgxKRaqf1mMOLwa+slcmgnxvvnCBUOemAG9umD1ed CBHA== X-Gm-Message-State: AE9vXwOAx2Hs1F1KCCJvKu6+jjURwoQ82i6ozjVxMyExRqCsC50L1mniu/LS/Y3WEEzJvndJ X-Received: by 10.55.145.129 with SMTP id t123mr25825311qkd.130.1472828947111; Fri, 02 Sep 2016 08:09:07 -0700 (PDT) Received: from [172.30.2.111] (pool-108-52-138-118.phlapa.fios.verizon.net. [108.52.138.118]) by smtp.gmail.com with ESMTPSA id d16sm6161938qka.0.2016.09.02.08.09.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 08:09:06 -0700 (PDT) From: "Richard Sand" To: users@directory.apache.org, "users@directory.apache.org" Subject: Re: does apacheds supply an embedded runtime for use in unit testing? Date: Fri, 02 Sep 2016 15:09:07 +0000 Message-Id: In-Reply-To: References: Reply-To: "Richard Sand" User-Agent: eM_Client/7.0.26687.0 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable archived-at: Fri, 02 Sep 2016 15:09:19 -0000 That's excellent, thanks Kiran!! -Richard ------ Original Message ------ From: "Kiran Ayyagari" To: "users@directory.apache.org" ; "Richard=20 Sand" Sent: 9/2/2016 11:06:31 AM Subject: Re: does apacheds supply an embedded runtime for use in unit=20 testing? >On Fri, Sep 2, 2016 at 8:32 PM, Richard Sand =20 >wrote: > >> Hi all - I'm writing unit tests for an LDAP-backed web service. The=20 >>web >> service is deployed on Jersey which supplies a few different=20 >>embeddable >> runtimes for use in unit tests, so that the tests can spin up a=20 >>server, hit >> them with the test client, and then spin down. But I need to keep=20 >>ApacheDS >> running for the servers to work, which makes sharing the tests=20 >>amongst >> developers (and onto our CI server) difficult. Does ApacheDS have a=20 >>support >> for this, or are there any elegant solutions folks have come up with= =20 >>for >> this scenario? >> >Take a look at the tests present here >http://svn.apache.org/repos/asf/directory/apacheds/trunk/server-integ > >and the associated annotations are here >http://svn.apache.org/repos/asf/directory/apacheds/trunk/server-annotation= s. > >We have implemented the above to solve a similar problem. > >> >> Best regards, >> >> Richard >> >>