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 A2BD4200BA7 for ; Fri, 7 Oct 2016 02:35:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A14B2160AE0; Fri, 7 Oct 2016 00:35:50 +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 89CE3160ADB for ; Fri, 7 Oct 2016 02:35:49 +0200 (CEST) Received: (qmail 24912 invoked by uid 500); 7 Oct 2016 00:35:47 -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 24902 invoked by uid 99); 7 Oct 2016 00:35:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 00:35:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8716E18060C for ; Fri, 7 Oct 2016 00:35:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.829 X-Spam-Level: ** X-Spam-Status: No, score=2.829 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_TRACKIMAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4kW-1-gKcQ3e for ; Fri, 7 Oct 2016 00:35:45 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id B1CB05FB23 for ; Fri, 7 Oct 2016 00:35:44 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id i130so4551539wmg.1 for ; Thu, 06 Oct 2016 17:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xNygy1Pesz0DhKTulcD82VB7QkS/zYlRpdUyogpNUdM=; b=Botxoup4gQ0Pl9vr0R1zu5R5N6W4gC15X8mQCVVXOF8+kTIkJHCqmA1jxvlq8jjThJ AnPYu2b8KX6gZOMawbGLIn5gTJulU27O/TY38OBeDsZKjjM4pVqqcjVQZRKvaNI1eeeZ VhjsmoqhRMKiQewWXP05alcXehRBW+qiMKtlVdx2w5LBWe2ttMumSkWEzQ2X6YeDr+lE vztHAeuQDiSK+joZgzyWzH5BzNZZam0oVjN8TpWGLQ7DpTY+GVqfWT9b0gHqIASISWft p6Wn9yqMxTCWLWfgkRLQa3J2HBMTUGChK/LFeaWq1EPYGHvlyv7RwrY3zhapMCpCA0Ap xKnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xNygy1Pesz0DhKTulcD82VB7QkS/zYlRpdUyogpNUdM=; b=Hfu11i/5i6AhQjc5cjYCDYm/d7bMTRazY7Zg25BRmdgji7mXsArhpXvA0JLer1s/ZC xSCF6PRv+LsubRl5993Eigwps15B+GQJY2Y/FkV2vvm/y2AUAmRPpXax9LhzxV8hQ9Qk 7L+HzVX7XoL1X2PYmP+2JYOP1QFXnNyJrQCPrfLd77u6NcpUKN9cYSci9r5mahYFo5vM PRdvwiEQSHp61ahBE8nQ8W9h3ubWYaBLtOZlPpln95lsxSrgH+ejzlBXm6XgfG+EL7cc JCFsDqM9IDk9eBmnVeYlP99KBwYPgFCULPRQYIM+E71Oc2eOufe8woi8kykSN41yzPSl YjVQ== X-Gm-Message-State: AA6/9Rl+t5FHf5/fB0Oao8r0Sf5lGxo3glzXb890bD7slzXAEULvLstvRcZp3CuFQWjc5vNESZKhnwl5Un7tUw== X-Received: by 10.194.24.199 with SMTP id w7mr14616035wjf.197.1475800544215; Thu, 06 Oct 2016 17:35:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.41.194 with HTTP; Thu, 6 Oct 2016 17:35:43 -0700 (PDT) In-Reply-To: References: <3f9d5cab-9779-fc1e-c4e2-6e8ee524fd09@mixmax.com> From: Ali Akhtar Date: Fri, 7 Oct 2016 05:35:43 +0500 Message-ID: Subject: Re: Running Cassandra in Integration Tests To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b5d9adf328b86053e3b97a6 archived-at: Fri, 07 Oct 2016 00:35:50 -0000 --047d7b5d9adf328b86053e3b97a6 Content-Type: text/plain; charset=UTF-8 That looks great Andrew, but it doesn't seem to have been committed to for 5 months. Is anyone still using cassandra-unit , does it work with latest cassandra versions (e.g 3.9)? On Fri, Oct 7, 2016 at 5:33 AM, Andrew Tolbert wrote: > Hi Ali, > > cassandra-unit might be > what you are looking for. It allows you to run an embedded cassandra > instance along side your tests and has some nice integration with JUnit. > > Thanks, > Andy > > On Thu, Oct 6, 2016 at 7:13 PM Ali Akhtar wrote: > >> Ok, but that's not what this question is about. >> >> I'm looking for a way to run an embedded cassandra instance which is >> created & destroyed during tests and which doesn't persist any state >> outside the tests. >> >> >> On Fri, Oct 7, 2016 at 5:10 AM, Kant Kodali wrote: >> >> you dont need to look for cassandra java api to start/stop instance. you >> just need to write a shell script or python or java or any language to >> execute shell commands! >> >> >> >> On Thu, Oct 6, 2016 4:57 PM, Ali Akhtar ali.rac200@gmail.com wrote: >> >> Okay.. but how would I start this instance? Is there a java api to >> programmatically start / destroy an instance during tests? >> >> On Fri, Oct 7, 2016 at 4:56 AM, Kant Kodali wrote: >> >> sure as long as that isolated instance is treated as separate cluster you >> shouldn't run into any problems. >> >> >> >> On Thu, Oct 6, 2016 4:08 PM, Ali Akhtar ali.rac200@gmail.com wrote: >> >> Is it possible to create an isolated cassandra instance which is run >> during integration tests and it disappears after tests have finished >> running? Then its recreated the next time tests run (perhaps being >> populated with test data). >> >> I'm using Java. >> >> >> >> >> --047d7b5d9adf328b86053e3b97a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That looks great Andrew, but it doesn't seem to have b= een committed to for 5 months. Is anyone still using cassandra-unit , does = it work with latest cassandra versions (e.g 3.9)?

On Fri, Oct 7, 2016 at 5:33 AM, Andre= w Tolbert <andrew.tolbert@datastax.com> wrote:
=
Hi Ali,

= c= assandra-unit=C2=A0might be what you are looking for.=C2=A0 It allows y= ou to run an embedded cassandra instance along side your tests and has some= nice integration with JUnit.

Thanks,
An= dy

On Thu, Oct 6, 2016 at 7:13 PM Ali Akhtar <ali.rac200@gmail.co= m> wrote:
Ok, but that's not what this qu= estion is about.

I'm looking for a way to run an embedded cassandra instance wh= ich is created & destroyed during tests and which doesn't persist a= ny state outside the tests.


On = Fri, Oct 7, 2016 at 5:10 AM, Kant Kodali <kant@peernova.com>= wrote:
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
=20 =20 =20 =20
=20
you dont need to = look for cassandra java api to start/stop instance. you just need to write = a shell script or python or java or any language to execute shell commands!=
=20



On Thu, Oct 6, 2016 4:57 PM, Ali Akhtar ali.rac200@gmail.com= wrote:
Okay.. bu= t how would I start this instance? Is there a java api to programmatically = start / destroy an instance during tests?

On Fri, Oct 7, 2016 at 4:56 AM, Kant Ko= dali <kant@peernova.com> wrote:
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20
=20 =20 =20 =20
=20
sure as long as t= hat isolated instance is treated as separate cluster you shouldn't run = into any problems.=C2=A0
3D"" =20



On Thu, Oct 6, 2016 4:08 PM, Ali Akhtar ali.rac200@gmail.com= wrote:
Is it pos= sible to create an isolated cassandra instance which is run during integrat= ion tests and it disappears after tests have finished running? Then its rec= reated the next time tests run (perhaps being populated with test data).
=C2=A0I= 9;m using Java.


=20

=20


--047d7b5d9adf328b86053e3b97a6--