From user-return-26624-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Mon Jun 4 05:11:01 2012 Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96E1A9222 for ; Mon, 4 Jun 2012 05:11:01 +0000 (UTC) Received: (qmail 70356 invoked by uid 500); 4 Jun 2012 05:10:59 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 69870 invoked by uid 500); 4 Jun 2012 05:10:58 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 69846 invoked by uid 99); 4 Jun 2012 05:10:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 05:10:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eran.chinthaka@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 05:10:51 +0000 Received: by obbeh20 with SMTP id eh20so7853645obb.31 for ; Sun, 03 Jun 2012 22:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Bds38HOI8mnsrW786D8yUoPThiqRVHzSmHOWxiLgvik=; b=NfsP547rmikE17i+8d33AWZvz5inWHSFPaKGayJd9VPitO/iJXowJDaG43boALi97M +gY8TLPOK9oMGdsTMxCIxQmCP5ArHlIvqQeQZ5AZQNW7KKr4emDmr8Cd9M/qrpO6ww0D hzaeDT9CrmDu+1472pR83AwcLujfS4aKVInJ6nHGnp9cltL7j+jq1okYJMA7fMA69geo aqgHZSjiDB7icmOjyc5l/Fj/Is1I1oYCwt2TbTWD6E3Piau8yuGPC+5eRMpYoTi3vEy4 F+F5OVVq+ywj94Xx9KJY2ykPFOTSGfgBSUUrWVQP6JJN4Evx+T6Mjsc4rDlUfY8ObtcU MBNQ== MIME-Version: 1.0 Received: by 10.182.207.6 with SMTP id ls6mr8184529obc.12.1338786630434; Sun, 03 Jun 2012 22:10:30 -0700 (PDT) Received: by 10.60.47.37 with HTTP; Sun, 3 Jun 2012 22:10:30 -0700 (PDT) Date: Sun, 3 Jun 2012 22:10:30 -0700 Message-ID: Subject: Integration Testing for Cassandra From: Eran Chinthaka Withana To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8f646e2b89807604c19e8dac --e89a8f646e2b89807604c19e8dac Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to write integration tests related to my cassandra code where instead of accessing production clusters I should be able to start an embedded cassandra instance, within my unit test code, populate some data and run test cases. I found this[1] as the closest to what I'm looking for (I prefer to use thrift API so didn't even think about using storage proxy API). I'm using Hector 1.0.x as my client to connect my cassandra 1.0.x clusters. Before I go ahead and use it, is this the recommended way to test Cassandra related client code? Are there any test utils already in Cassandra code base? I really appreciate if someone can shed some light here. [1] http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/ Thanks, Eran Chinthaka Withana --e89a8f646e2b89807604c19e8dac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I want to write integration tests related to my cass= andra code where instead of accessing production clusters I should be able = to start an embedded cassandra instance, within my unit test code, populate= some data and run test cases.=A0

I found this[1] =A0as the closest to what I'm looki= ng for (I prefer to use thrift API so didn't even think about using sto= rage proxy API). I'm using Hector 1.0.x as my client to connect my cass= andra 1.0.x clusters. Before I go ahead and use it, is this the recommended= way to test Cassandra related client code? Are there any test utils alread= y in Cassandra code base? I really appreciate if someone can shed some ligh= t here.=A0


Thank= s,
Eran Chinthaka Withana
--e89a8f646e2b89807604c19e8dac--