Repository: cloudstack
Updated Branches:
  refs/heads/master e6de9abeb -> dfafb441b


CLOUDSTACK-8509: Skip snapshot tests for LXC and Hyper-V
This closes #296


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

Branch: refs/heads/master
Commit: dfafb441b051c8d9465a0a979377aee33e00f842
Parents: e6de9ab
Author: sanjeev <[email protected]>
Authored: Mon May 25 18:00:05 2015 +0530
Committer: sanjeev <[email protected]>
Committed: Mon May 25 18:03:14 2015 +0530

----------------------------------------------------------------------
 test/integration/component/test_assign_vm.py | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dfafb441/test/integration/component/test_assign_vm.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_assign_vm.py 
b/test/integration/component/test_assign_vm.py
index 24b63a6..466fadf 100644
--- a/test/integration/component/test_assign_vm.py
+++ b/test/integration/component/test_assign_vm.py
@@ -416,6 +416,8 @@ class TestVMOwnership(cloudstackTestCase):
         # Validate the following:
         # 1. deploy VM in sub subdomain1 with snapshot.
         # 3. assignVirtualMachine to subdomain2
+        if self.hypervisor.lower() in ['hyperv', 'lxc']:
+            self.skipTest("Snapshots feature is not supported on %s" % 
self.hypervisor)
         self.create_vm(self.sdomain_account_user1['account'], 
self.sdomain_account_user1['domain'], snapshot=True)
         self.virtual_machine.assign_virtual_machine(self.apiclient, 
self.sdomain_account_user2['account'].name 
,self.sdomain_account_user2['domain'].id)
         snapshots = list_snapshots(self.apiclient,
@@ -446,6 +448,8 @@ class TestVMOwnership(cloudstackTestCase):
         # Validate the following:
         # 1. deploy VM in sub subdomain1 when account limit is reached.
         # 3. assignVirtualMachine to subdomain2
+        if self.hypervisor.lower() in ['hyperv', 'lxc']:
+            self.skipTest("Snapshots feature is not supported on %s" % 
self.hypervisor)
         update_resource_limit(self.apiclient,
                               0, # VM Instances
                               
account=self.sdomain_account_user2['account'].name,
@@ -465,6 +469,8 @@ class TestVMOwnership(cloudstackTestCase):
         # Validate the following:
         # 1. deploy VM in sub subdomain1 when account limit is reached.
         # 3. assignVirtualMachine to subdomain2
+        if self.hypervisor.lower() in ['hyperv', 'lxc']:
+            self.skipTest("Snapshots feature is not supported on %s" % 
self.hypervisor)
         update_resource_limit(
                               self.apiclient,
                               0, # VM Instances

Reply via email to