Repository: cloudstack
Updated Branches:
  refs/heads/master f2ea61723 -> dbe9d93ec


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

Signed-off-by: SrikanteswaraRao Talluri <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/dbe9d93e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/dbe9d93e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/dbe9d93e

Branch: refs/heads/master
Commit: dbe9d93ec61948097c4c076bbeb13d30a8b5c44a
Parents: f2ea617
Author: Ashutosh K <[email protected]>
Authored: Tue Jan 13 14:31:14 2015 +0530
Committer: SrikanteswaraRao Talluri <[email protected]>
Committed: Tue Feb 3 17:58:42 2015 +0530

----------------------------------------------------------------------
 test/integration/component/test_custom_hostname.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dbe9d93e/test/integration/component/test_custom_hostname.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_custom_hostname.py 
b/test/integration/component/test_custom_hostname.py
index fcd497e..ac85b8c 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"]
 

Reply via email to