summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-02-05 12:07:26 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-02-10 10:37:31 +0100
commitdaf2d64f83c4bd4d0fe60323f51d63e8355652b7 (patch)
tree82ed60f48ff114b7a4eac9bf34c69dd5c5ea18f5
parent99facb753a634f63df5250a8decbf53d13d955bb (diff)
downloadfreeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.zip
freeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.tar.gz
freeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.tar.xz
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 <npmccallum@redhat.com>
-rw-r--r--ipatests/test_integration/tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 7a7fd4b..9a6ea3f 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")