From 286d0680a6d4ae53b79596e545f9291791e36aa5 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Thu, 17 Dec 2020 10:17:07 +0100 Subject: [PATCH] ipatests: clear initgroups cache in clear_sssd_cache The tasks module provides a method to clear sssd cache, but the method does not remove the file /var/lib/sss/mc/initgroups. Update the method to also remove this file. Signed-off-by: Florence Blanc-Renaud Reviewed-By: Rob Crittenden --- ipaplatform/base/paths.py | 1 + ipatests/pytest_ipa/integration/tasks.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py index 0481dc56e..99e75f235 100644 --- a/ipaplatform/base/paths.py +++ b/ipaplatform/base/paths.py @@ -342,6 +342,7 @@ class BasePathNamespace: SSSD_DB = "/var/lib/sss/db" SSSD_MC_GROUP = "/var/lib/sss/mc/group" SSSD_MC_PASSWD = "/var/lib/sss/mc/passwd" + SSSD_MC_INITGROUPS = "/var/lib/sss/mc/initgroups" SSSD_PUBCONF_DIR = "/var/lib/sss/pubconf" SSSD_PUBCONF_KNOWN_HOSTS = "/var/lib/sss/pubconf/known_hosts" SSSD_PUBCONF_KRB5_INCLUDE_D_DIR = "/var/lib/sss/pubconf/krb5.include.d/" diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index de8c70c48..a1d0575ab 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -872,6 +872,7 @@ def clear_sssd_cache(host): "xargs rm -fv") host.run_command(['rm', '-fv', paths.SSSD_MC_GROUP]) host.run_command(['rm', '-fv', paths.SSSD_MC_PASSWD]) + host.run_command(['rm', '-fv', paths.SSSD_MC_INITGROUPS]) if systemd_available: host.run_command(['systemctl', 'start', 'sssd'])