From dfafb441b051c8d9465a0a979377aee33e00f842 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Mon, 25 May 2015 18:00:05 +0530 Subject: [PATCH] CLOUDSTACK-8509: Skip snapshot tests for LXC and Hyper-V This closes #296 --- test/integration/component/test_assign_vm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/component/test_assign_vm.py b/test/integration/component/test_assign_vm.py index 24b63a62f14..466fadfc735 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