mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7181: Skip tests on KVM - changing service offering when VM is in running state - not supported on KVM
This commit is contained in:
parent
0332a23aa7
commit
12ce5115e4
@ -26,7 +26,8 @@
|
|||||||
from marvin.cloudstackTestCase import cloudstackTestCase
|
from marvin.cloudstackTestCase import cloudstackTestCase
|
||||||
from marvin.lib.utils import (cleanup_resources,
|
from marvin.lib.utils import (cleanup_resources,
|
||||||
validateList,
|
validateList,
|
||||||
random_gen)
|
random_gen,
|
||||||
|
get_hypervisor_type)
|
||||||
from marvin.lib.base import (Account,
|
from marvin.lib.base import (Account,
|
||||||
VirtualMachine,
|
VirtualMachine,
|
||||||
ServiceOffering,
|
ServiceOffering,
|
||||||
@ -752,6 +753,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase):
|
|||||||
# Validations:
|
# Validations:
|
||||||
# 1. Scaling operation should be successful
|
# 1. Scaling operation should be successful
|
||||||
|
|
||||||
|
hypervisor = get_hypervisor_type(self.apiclient)
|
||||||
|
if hypervisor.lower() == "kvm":
|
||||||
|
self.skipTest("Scaling VM in running state is not supported on KVM")
|
||||||
|
|
||||||
isadmin=True
|
isadmin=True
|
||||||
if value == USER_ACCOUNT:
|
if value == USER_ACCOUNT:
|
||||||
isadmin=False
|
isadmin=False
|
||||||
@ -812,6 +817,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase):
|
|||||||
# 1. Scale operation in step 4 should be successful
|
# 1. Scale operation in step 4 should be successful
|
||||||
# 2. Scale operation in step 6 should fail
|
# 2. Scale operation in step 6 should fail
|
||||||
|
|
||||||
|
hypervisor = get_hypervisor_type(self.apiclient)
|
||||||
|
if hypervisor.lower() == "kvm":
|
||||||
|
self.skipTest("Scaling VM in running state is not supported on KVM")
|
||||||
|
|
||||||
isadmin=True
|
isadmin=True
|
||||||
if value == USER_ACCOUNT:
|
if value == USER_ACCOUNT:
|
||||||
isadmin=False
|
isadmin=False
|
||||||
@ -886,6 +895,9 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase):
|
|||||||
|
|
||||||
# Validations:
|
# Validations:
|
||||||
# 1. Scale operation in step 4 should be successful
|
# 1. Scale operation in step 4 should be successful
|
||||||
|
hypervisor = get_hypervisor_type(self.apiclient)
|
||||||
|
if hypervisor.lower() == "kvm":
|
||||||
|
self.skipTest("Scaling VM in running state is not supported on KVM")
|
||||||
|
|
||||||
isadmin=True
|
isadmin=True
|
||||||
if value == USER_ACCOUNT:
|
if value == USER_ACCOUNT:
|
||||||
@ -952,6 +964,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase):
|
|||||||
# 2. Scale operation in step 5 should be successful
|
# 2. Scale operation in step 5 should be successful
|
||||||
# 3. Scale operation in step 6 should fail
|
# 3. Scale operation in step 6 should fail
|
||||||
|
|
||||||
|
hypervisor = get_hypervisor_type(self.apiclient)
|
||||||
|
if hypervisor.lower() == "kvm":
|
||||||
|
self.skipTest("Scaling VM in running state is not supported on KVM")
|
||||||
|
|
||||||
isadmin=True
|
isadmin=True
|
||||||
if value == USER_ACCOUNT:
|
if value == USER_ACCOUNT:
|
||||||
isadmin=False
|
isadmin=False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user