]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat tests : convert HA test to exec_sudo_command
authorSteven Hardy <shardy@redhat.com>
Thu, 20 Sep 2012 16:59:11 +0000 (17:59 +0100)
committerSteven Hardy <shardy@redhat.com>
Thu, 20 Sep 2012 16:59:11 +0000 (17:59 +0100)
Use exec_sudo_command to ensure sudo command works

Change-Id: I9e4b25de04112f860c40604f6152f86efd937468
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/functional/test_WordPress_Single_Instance_With_HA.py

index 550e634704416e59e7860c4e60be1bd10a960213..19907c590d333b86d1057e1b7d2915fa160ea546 100644 (file)
@@ -63,7 +63,7 @@ class HaFunctionalTest(unittest.TestCase):
         self.assertTrue(self.service_is_running('httpd'))
 
         # kill httpd
-        self.WikiDatabase.exec_command('sudo systemctl stop httpd.service')
+        self.WikiDatabase.exec_sudo_command('systemctl stop httpd.service')
 
         # check that httpd service recovers
         # should take less than 60 seconds, but no worse than 70 seconds