cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gir...@apache.org
Subject git commit: updated refs/heads/4.2 to 25dd115
Date Thu, 05 Dec 2013 08:20:50 GMT
Updated Branches:
  refs/heads/4.2 a3f2b1636 -> 25dd11567


CLOUDSTACK-5377: Fixed test case dependency issue in snapshots test cases


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/25dd1156
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/25dd1156
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/25dd1156

Branch: refs/heads/4.2
Commit: 25dd1156736dbbe9af4069b25b6b0457e0f55429
Parents: a3f2b16
Author: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
Authored: Thu Dec 5 13:49:11 2013 +0530
Committer: Girish Shilamkar <girish@clogeny.com>
Committed: Thu Dec 5 13:50:46 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_snapshots.py | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/25dd1156/test/integration/component/test_snapshots.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_snapshots.py b/test/integration/component/test_snapshots.py
index 0a82fc1..d3fac42 100644
--- a/test/integration/component/test_snapshots.py
+++ b/test/integration/component/test_snapshots.py
@@ -543,11 +543,29 @@ class TestSnapshots(cloudstackTestCase):
         #3. Verify snapshot is removed by calling List Snapshots API
         #4. Verify snapshot was removed from image store
 
+        self.debug("Creating volume under account: %s" % self.account.name)
+        volume = Volume.create(
+                               self.apiclient,
+                               self.services["volume"],
+                               zoneid=self.zone.id,
+                               account=self.account.name,
+                               domainid=self.account.domainid,
+                               diskofferingid=self.disk_offering.id
+                               )
+        self.debug("Created volume: %s" % volume.id)
+        self.debug("Attaching volume to vm: %s" % self.virtual_machine.id)
+
+        self.virtual_machine.attach_volume(
+                                           self.apiclient,
+                                           volume
+                                           )
+        self.debug("Volume attached to vm")
+
         volumes = list_volumes(
                                self.apiclient,
                                virtualmachineid=self.virtual_machine.id,
                                type='DATADISK',
-                               listall=True
+                               id=volume.id
                                )
         self.assertEqual(
                             isinstance(volumes, list),


Mime
View raw message