From dbe9d93ec61948097c4c076bbeb13d30a8b5c44a Mon Sep 17 00:00:00 2001 From: Ashutosh K Date: Tue, 13 Jan 2015 14:31:14 +0530 Subject: [PATCH] CLOUDSTACK-8153: Adding global setting value check for few test cases in test_custom_hostname.py Signed-off-by: SrikanteswaraRao Talluri --- test/integration/component/test_custom_hostname.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/integration/component/test_custom_hostname.py b/test/integration/component/test_custom_hostname.py index fcd497e7421..ac85b8c37f9 100644 --- a/test/integration/component/test_custom_hostname.py +++ b/test/integration/component/test_custom_hostname.py @@ -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"]