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:
parent
89b052aee4
commit
f5033cffb6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user