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 <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2012-09-20 17:59:11 +01:00
parent 89b052aee4
commit f5033cffb6

View 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