Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EEE69629 for ; Thu, 7 Jun 2012 12:11:48 +0000 (UTC) Received: (qmail 2892 invoked by uid 500); 7 Jun 2012 12:11:48 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 2790 invoked by uid 500); 7 Jun 2012 12:11:48 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 2777 invoked by uid 99); 7 Jun 2012 12:11:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 12:11:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Prasanna.Santhanam@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 12:11:39 +0000 X-IronPort-AV: E=Sophos;i="4.75,731,1330905600"; d="scan'208";a="11648082" Received: from banpmailmx02.citrite.net ([10.103.128.74]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 07 Jun 2012 12:11:17 +0000 Received: from citrix.com (10.146.0.130) by BANPMAILMX02.citrite.net (10.103.128.74) with Microsoft SMTP Server id 8.3.213.0; Thu, 7 Jun 2012 17:41:16 +0530 Date: Thu, 7 Jun 2012 17:41:15 +0530 From: Prasanna Santhanam To: "cloudstack-dev@incubator.apache.org" Subject: Re: bvt question Message-ID: <20120607121115.GJ16078@cloud.com> Mail-Followup-To: "cloudstack-dev@incubator.apache.org" References: <20120606084302.GC13905@cloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Wed, Jun 06, 2012 at 02:11:51PM -0400, Edison Su wrote: > > For 2> I'm not sure how to get that going. The test code right now is > > free to use any library to perform these kind of backend checks. So it > > would be harder to have these tests skipped with a simple framework > > fix. > > How about add another annotation on test case, such as > @hypervisor("all-except-simulator"), means this specific test case > can only be executed when the zone has real hypervisors? That would be nice to have. But then more than 50% of the tests perform some or the other form of backend verification. So the decorator will run on too few tests. I've startd porting the tests to work on the simulator so we can have a small jenkins job to start with that runs against each checkin to begin with. Another idea that Chirag (@clogeny) discussed with me was adding tags to test cases. So a test_port_forward_vm would be tagged with a list of attributes like: def test_port_forward_vm(cloudstackTestCase): ... ... tags = ['network','port forward', 'advanced', 'xenserver'] This way when I want to run all network tests I can identify and run those. And then if I wanted to run xenserver tests I can do the same. Or if it's only going to be an advanced zone I can filter those too. What do you think? -- Prasanna.,