mirror of https://github.com/apache/cloudstack.git
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:
parent
f2ea617238
commit
dbe9d93ec6
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue