diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-02-05 12:07:26 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-02-10 10:37:31 +0100 |
commit | daf2d64f83c4bd4d0fe60323f51d63e8355652b7 (patch) | |
tree | 82ed60f48ff114b7a4eac9bf34c69dd5c5ea18f5 /ipatests | |
parent | 99facb753a634f63df5250a8decbf53d13d955bb (diff) | |
download | freeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.tar.gz freeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.tar.xz freeipa-daf2d64f83c4bd4d0fe60323f51d63e8355652b7.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>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/test_integration/tasks.py | 4 |
1 files 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") |