Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02EA018B6D for ; Tue, 11 Aug 2015 10:36:50 +0000 (UTC) Received: (qmail 73208 invoked by uid 500); 11 Aug 2015 10:36:49 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 73152 invoked by uid 500); 11 Aug 2015 10:36:49 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 73136 invoked by uid 99); 11 Aug 2015 10:36:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2015 10:36:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C9EB0E03C8; Tue, 11 Aug 2015 10:36:48 +0000 (UTC) From: nitt10prashant To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8723: Verify API call "listUsa... Content-Type: text/plain Message-Id: <20150811103648.C9EB0E03C8@git1-us-west.apache.org> Date: Tue, 11 Aug 2015 10:36:48 +0000 (UTC) Github user nitt10prashant commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/675#discussion_r36731289 --- Diff: test/integration/testpaths/testpath_usage.py --- @@ -2879,6 +2882,60 @@ def test_07_positive_tests_usage(self): # aggregation period and current period will give the network usage return + @attr(tags=["advanced", "basic"], required_hardware="false") + def test_08_checkNewVolumein_listUsageRecords(self): + """ Test case to check if new volume crated after + restore VM is listed in listUsageRecords + # 1. Launch a VM + # 2. Restore the VM + # 3. Check if the new volume created is listed in listUsageRecords API + """ + + # Step 1 + vm_cluster = VirtualMachine.create( + self.userapiclient, + self.testdata["small"], + templateid=self.template.id, + accountid=self.account.name, + domainid=self.account.domainid, + serviceofferingid=self.service_offering.id, + zoneid=self.zone.id, + ) + + volumes_root_list = list_volumes( + self.apiclient, + virtualmachineid=vm_cluster.id, + type='ROOT', + listall=True + ) --- End diff -- use validate list --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---