mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8509: Skip snapshot tests for LXC and Hyper-V
This closes #296
This commit is contained in:
parent
e6de9abeb4
commit
dfafb441b0
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user