mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7271: Accept any hypervisor in error message
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
parent
1e3a689793
commit
5f816e3e3f
@ -35,6 +35,8 @@ from marvin.codes import FAILED
|
|||||||
|
|
||||||
from nose.plugins.attrib import attr
|
from nose.plugins.attrib import attr
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
class TestData(object):
|
class TestData(object):
|
||||||
"""Test data object that is required to create resources
|
"""Test data object that is required to create resources
|
||||||
"""
|
"""
|
||||||
@ -195,7 +197,7 @@ class TestDeployVM(cloudstackTestCase):
|
|||||||
rootdisksize=newrootsize
|
rootdisksize=newrootsize
|
||||||
)
|
)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
if "Hypervisor XenServer does not support rootdisksize override" in str(ex):
|
if re.search("Hypervisor \S+ does not support rootdisksize override", str(ex)):
|
||||||
success = True
|
success = True
|
||||||
else:
|
else:
|
||||||
self.debug("virtual machine create did not fail appropriately. Error was actually : " + str(ex));
|
self.debug("virtual machine create did not fail appropriately. Error was actually : " + str(ex));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user