From: Steven Hardy Date: Thu, 20 Sep 2012 16:59:11 +0000 (+0100) Subject: heat tests : convert HA test to exec_sudo_command X-Git-Tag: 2014.1~1365 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f5033cffb6ec4de1d055079f6f4cfe29e507c52f;p=openstack-build%2Fheat-build.git heat tests : convert HA test to exec_sudo_command Use exec_sudo_command to ensure sudo command works Change-Id: I9e4b25de04112f860c40604f6152f86efd937468 Signed-off-by: Steven Hardy --- diff --git a/heat/tests/functional/test_WordPress_Single_Instance_With_HA.py b/heat/tests/functional/test_WordPress_Single_Instance_With_HA.py index 550e6347..19907c59 100644 --- a/heat/tests/functional/test_WordPress_Single_Instance_With_HA.py +++ b/heat/tests/functional/test_WordPress_Single_Instance_With_HA.py @@ -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