From b7945f79a60c4774ebcae69cce67a6e8d6e6ac24 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 --- 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 24b63a62f14b..466fadfc735f 100644 --- a/test/integration/component/test_assign_vm.py +++ b/test/integration/component/test_assign_vm.py @@ -416,6 +416,8 @@ def test_13_move_across_subdomain_vm_snapshot(self): # 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 @@ def test_15_move_across_subdomain_account_limit(self): # 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 @@ def test_16_move_across_subdomain_volume_and_account_limit(self): # 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