CLOUDSTACK-8509: Skip snapshot tests for LXC and Hyper-V

This closes #296
This commit is contained in:
sanjeev 2015-05-25 18:00:05 +05:30
parent e6de9abeb4
commit dfafb441b0

View File

@ -416,6 +416,8 @@ class TestVMOwnership(cloudstackTestCase):
# Validate the following: # Validate the following:
# 1. deploy VM in sub subdomain1 with snapshot. # 1. deploy VM in sub subdomain1 with snapshot.
# 3. assignVirtualMachine to subdomain2 # 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.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) 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, snapshots = list_snapshots(self.apiclient,
@ -446,6 +448,8 @@ class TestVMOwnership(cloudstackTestCase):
# Validate the following: # Validate the following:
# 1. deploy VM in sub subdomain1 when account limit is reached. # 1. deploy VM in sub subdomain1 when account limit is reached.
# 3. assignVirtualMachine to subdomain2 # 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, update_resource_limit(self.apiclient,
0, # VM Instances 0, # VM Instances
account=self.sdomain_account_user2['account'].name, account=self.sdomain_account_user2['account'].name,
@ -465,6 +469,8 @@ class TestVMOwnership(cloudstackTestCase):
# Validate the following: # Validate the following:
# 1. deploy VM in sub subdomain1 when account limit is reached. # 1. deploy VM in sub subdomain1 when account limit is reached.
# 3. assignVirtualMachine to subdomain2 # 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( update_resource_limit(
self.apiclient, self.apiclient,
0, # VM Instances 0, # VM Instances