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:36:59 +0100
commitb99de765f942d4c4bcdf164d666aa997f593343e (patch)
tree990662b50ed98f4a750e83b380d1735d04b0b1cb
parent324519ff794372a10b7e43fd0788719f9c71a6db (diff)
downloadfreeipa-b99de765f942d4c4bcdf164d666aa997f593343e.tar.gz
freeipa-b99de765f942d4c4bcdf164d666aa997f593343e.tar.xz
freeipa-b99de765f942d4c4bcdf164d666aa997f593343e.zip
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 37db9561c..19c575327 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")