You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ek...@apache.org on 2015/06/08 11:45:50 UTC
[29/50] [abbrv] git commit: updated refs/heads/feature/vpc-ipv6 to
6140db5
CLOUDSTACK-8515: Skipping snapshots tests on HyperV and LXC hypervisors
Signed-off-by: Gaurav Aradhye <ga...@clogeny.com>
This closes #350
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f92a5036
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f92a5036
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f92a5036
Branch: refs/heads/feature/vpc-ipv6
Commit: f92a50363c74ba699dc678489ed75624a2ac75a1
Parents: 00884b3
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Wed Jun 3 15:38:44 2015 +0530
Committer: Gaurav Aradhye <ga...@clogeny.com>
Committed: Thu Jun 4 10:56:28 2015 +0530
----------------------------------------------------------------------
.../component/test_escalations_volumes.py | 38 ++++++++++++++++----
1 file changed, 31 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f92a5036/test/integration/component/test_escalations_volumes.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_escalations_volumes.py b/test/integration/component/test_escalations_volumes.py
index 83e0e71..b2e21f6 100644
--- a/test/integration/component/test_escalations_volumes.py
+++ b/test/integration/component/test_escalations_volumes.py
@@ -461,7 +461,7 @@ class TestVolumes(cloudstackTestCase):
Step6: Resizing data volume
"""
if self.hypervisor.lower() in ['hyperv']:
- raise unittest.SkipTest(
+ self.skipTest(
"This featureis not supported on existing\
hypervisor. Hence, skipping the test")
# Listing volumes for a user before creating a volume
@@ -584,7 +584,7 @@ class TestVolumes(cloudstackTestCase):
Step6: Resizing custom volume
"""
if self.hypervisor.lower() in ['hyperv']:
- raise unittest.SkipTest(
+ self.skipTest(
"This featureis not supported on existing\
hypervisor. Hence, skipping the test")
# Listing all the disk offerings
@@ -710,8 +710,8 @@ class TestVolumes(cloudstackTestCase):
Step4: Creating Volume from snapshot
Step5: Creating Template from Snapshot
"""
- if self.hypervisor.lower() in ['hyperv']:
- raise unittest.SkipTest(
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
"This featureis not supported on existing\
hypervisor. Hence, skipping the test")
list_volumes_before = Volume.list(
@@ -932,6 +932,12 @@ class TestVolumes(cloudstackTestCase):
Step6: Listing snapshot policies for a volume created in step1 again
Step7: Verifyign that the list snapshot policy length is increased by 1
"""
+
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
+ "This featureis not supported on existing\
+ hypervisor. Hence, skipping the test")
+
list_volumes_before = Volume.list(
self.userapiclient,
listall=self.services["listall"])
@@ -1064,6 +1070,12 @@ class TestVolumes(cloudstackTestCase):
Step6: Listing snapshot policies for a volume created in step1 again
Step7: Verifyign that the list snapshot policy length is increased by 1
"""
+
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
+ "This featureis not supported on existing\
+ hypervisor. Hence, skipping the test")
+
list_volumes_before = Volume.list(
self.userapiclient,
listall=self.services["listall"])
@@ -1195,6 +1207,12 @@ class TestVolumes(cloudstackTestCase):
Step6: Listing snapshot policies for a volume created in step1 again
Step7: Verifyign that the list snapshot policy length is increased by 1
"""
+
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
+ "This featureis not supported on existing\
+ hypervisor. Hence, skipping the test")
+
list_volumes_before = Volume.list(
self.userapiclient,
listall=self.services["listall"])
@@ -1330,6 +1348,11 @@ class TestVolumes(cloudstackTestCase):
Step10:Verifying that the list snapshot policy length is decreased
by 1
"""
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
+ "This featureis not supported on existing\
+ hypervisor. Hence, skipping the test")
+
list_volumes_before = Volume.list(
self.userapiclient,
listall=self.services["listall"])
@@ -1473,10 +1496,11 @@ class TestVolumes(cloudstackTestCase):
Step11: Listign the snapshots from page 2 again and verifyign that
list returns none
"""
- if self.hypervisor.lower() in ['hyperv']:
- raise unittest.SkipTest(
+ if self.hypervisor.lower() in ["hyperv", "lxc"]:
+ self.skipTest(
"This featureis not supported on existing\
hypervisor. Hence, skipping the test")
+
list_volumes_before = Volume.list(
self.userapiclient,
listall=self.services["listall"])
@@ -1810,7 +1834,7 @@ class TestVolumes(cloudstackTestCase):
but not with size X
"""
if self.hypervisor.lower() in ['hyperv']:
- raise unittest.SkipTest(
+ self.skipTest(
"This featureis not supported on existing\
hypervisor. Hence, skipping the test")
disk_offering = DiskOffering.create(