From 12ce5115e4c1879626bfdfabf27b71ca26fbccee Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Thu, 24 Jul 2014 22:28:12 -0400 Subject: [PATCH] CLOUDSTACK-7181: Skip tests on KVM - changing service offering when VM is in running state - not supported on KVM --- .../component/test_dynamic_compute_offering.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test/integration/component/test_dynamic_compute_offering.py b/test/integration/component/test_dynamic_compute_offering.py index 87c3b323de0..a3e2d56c23c 100644 --- a/test/integration/component/test_dynamic_compute_offering.py +++ b/test/integration/component/test_dynamic_compute_offering.py @@ -26,7 +26,8 @@ from marvin.cloudstackTestCase import cloudstackTestCase from marvin.lib.utils import (cleanup_resources, validateList, - random_gen) + random_gen, + get_hypervisor_type) from marvin.lib.base import (Account, VirtualMachine, ServiceOffering, @@ -752,6 +753,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): # Validations: # 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 if value == USER_ACCOUNT: isadmin=False @@ -812,6 +817,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): # 1. Scale operation in step 4 should be successful # 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 if value == USER_ACCOUNT: isadmin=False @@ -886,6 +895,9 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): # Validations: # 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 if value == USER_ACCOUNT: @@ -952,6 +964,10 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): # 2. Scale operation in step 5 should be successful # 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 if value == USER_ACCOUNT: isadmin=False