From daf2d64f83c4bd4d0fe60323f51d63e8355652b7 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 5 Feb 2014 12:07:26 +0100 Subject: ipatests: Stop sssd service before deleting the cache In the integration tests, we do not stop the sssd service before deleting the cache, but rather start it. We need to stop sssd before deleting the cache. Reviewed-By: Nathaniel McCallum --- ipatests/test_integration/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 7a7fd4b3e..9a6ea3fa5 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -399,9 +399,9 @@ def clear_sssd_cache(host): systemd_available = host.transport.file_exists('/bin/systemctl') if systemd_available: - host.run_command(['systemctl', 'start', 'sssd']) + host.run_command(['systemctl', 'stop', 'sssd']) else: - host.run_command(['/sbin/service', 'sssd', 'start']) + host.run_command(['/sbin/service', 'sssd', 'stop']) host.run_command("find /var/lib/sss/db -name '*.ldb' | " "xargs rm -fv") -- cgit