Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 72813 invoked from network); 18 Oct 2010 16:59:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 16:59:05 -0000 Received: (qmail 21829 invoked by uid 500); 18 Oct 2010 16:59:05 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 21785 invoked by uid 500); 18 Oct 2010 16:59:05 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 21777 invoked by uid 99); 18 Oct 2010 16:59:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 16:59:04 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phunt1@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 16:59:00 +0000 Received: by wwb18 with SMTP id 18so503177wwb.29 for ; Mon, 18 Oct 2010 09:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=rflHFNW4LxM2C9bzYJ/phMbjl+13+yyIPQ1z2d0KZzw=; b=r7ImmRYXq3O9GvHYmwUbZVPKLK6WxFtbLEk6s1lzDREWoWnLHr9hCSieBsxakEzCFf olYjiOmbdMj5jRc5pZN5cBQPShINxtw/pPUhNbDW7fbSIf0aMzimF7Nqyjy5TJY4QYRo lZJ1D/d/o04fmubUeF0rI3BpRBKv2IXoaMB8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OZIHY7gwcQdxXSGvkayqu4QddZnmJqSZVbrZ/tlb24ThQjSC0rw9qlhJTrurFk/5iA zQ6TvkDZm6Wk95dKtFdDlhmhttnlKwCZlBxvpz6D8y6WH8wKOLubUYITxhyxXL42270m XqoV7qcGWVxe3Rsmg/bfBCY4GUvxmGDydpWdA= MIME-Version: 1.0 Received: by 10.227.152.148 with SMTP id g20mr2552497wbw.108.1287421116593; Mon, 18 Oct 2010 09:58:36 -0700 (PDT) Received: by 10.227.153.21 with HTTP; Mon, 18 Oct 2010 09:58:36 -0700 (PDT) In-Reply-To: References: <4CBC6D66.2020902@darose.net> Date: Mon, 18 Oct 2010 09:58:36 -0700 Message-ID: Subject: Re: Testing zookeeper outside the source distribution? From: Patrick Hunt To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001485f27b9254cc780492e716aa --001485f27b9254cc780492e716aa Content-Type: text/plain; charset=ISO-8859-1 You might checkout a tool I built a while back to be used by operations teams deploying ZooKeeper: http://bit.ly/a6tGVJ It's really two tools actually, a smoketester and a latency tester, both of which are important to verify when deploying a new cluster. Patrick On Mon, Oct 18, 2010 at 9:50 AM, Ted Dunning wrote: > Generally, I think a better way to do this is to use a standard mock object > framework. Then you don't have to fake up an interface. > > But the original poster probably has a need to do integration tests more > than unit tests. In such tests, they need to test against a real ZK to > make > sure that their assumptions about the semantics of ZK are valid. > > On Mon, Oct 18, 2010 at 8:53 AM, David Rosenstrauch >wrote: > > > Consequently, the way I write my code for ZooKeeper is against a more > > generic interface that provides operations for open, close, getData, and > > setData. When unit testing, I substitute in a "dummy" implementation > that > > just stores data in memory (i.e., a HashMap); when running live code I > use > > an implementation that talks to ZooKeeper. > > > --001485f27b9254cc780492e716aa--