From f5033cffb6ec4de1d055079f6f4cfe29e507c52f Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 20 Sep 2012 17:59:11 +0100 Subject: [PATCH] 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 --- heat/tests/functional/test_WordPress_Single_Instance_With_HA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2