CLOUDSTACK-8153: Adding global setting value check for few test cases in test_custom_hostname.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Ashutosh K 2015-01-13 14:31:14 +05:30 committed by SrikanteswaraRao Talluri
parent f2ea617238
commit dbe9d93ec6
1 changed files with 12 additions and 0 deletions

View File

@ -652,6 +652,12 @@ class TestInstanceNameFlagTrue(cloudstackTestCase):
# internal name will not be changed. The VM functionality must not
# be effected.
if not is_config_suitable(
apiclient=self.apiclient,
name='vm.instancename.flag',
value='true'):
self.skipTest('vm.instancename.flag should be true. skipping')
# Spawn an instance in that network
self.debug("Deploying VM in account: %s" % self.account.name)
virtual_machine = VirtualMachine.create(
@ -755,6 +761,12 @@ class TestInstanceNameFlagTrue(cloudstackTestCase):
# characters. Only ASCII letters a~z, A~Z, digits 0~9, hyphen are
# allowed. Must start with a letter and end with a letter or digit
if not is_config_suitable(
apiclient=self.apiclient,
name='vm.instancename.flag',
value='true'):
self.skipTest('vm.instancename.flag should be true. skipping')
self.debug("Creating VM with unsupported chars in display name")
display_names = ["!hkzs566", "asdh asd", "!dsf d"]