ehlo,
attached patches fix issue with memory cache
in integration tests.
https://fedorahosted.org/sssd/ticket/2726
LS
From 2b5f31feee6aac24af5d86abab3540466d359438 Mon Sep 17 00:00:00
2001
From: Lukas Slebodnik <lslebodn(a)redhat.com>
Date: Fri, 6 Nov 2015 11:37:54 +0100
Subject: [PATCH 3/4] test_memory_cache: Test removing mc without invalidation
Long living clients should be able to reinitialize
memory cache which was removed but it not initialized.
This patch also remove workaround in test_local_domain.py
Test for:
https://fedorahosted.org/sssd/ticket/2726
---
src/tests/intg/test_local_domain.py | 6 ++----
src/tests/intg/test_memory_cache.py | 39 +++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/src/tests/intg/test_memory_cache.py b/src/tests/intg/test_memory_cache.py
index a8d6d8f5c87bdea517a00b5a703b9658ebb1fe0a..d324f29fb1ddcf05a31a7eb22668234ece8e7301
100644
--- a/src/tests/intg/test_memory_cache.py
+++ b/src/tests/intg/test_memory_cache.py
@@ -743,3 +743,42 @@ def test_invalidate_everything_after_stop(ldap_conn,
sanity_rfc2307):
subprocess.call(["sss_cache", "-E"])
assert_missing_mc_records_for_user1()
+
+
+def test_removed_mc(ldap_conn, sanity_rfc2307):
+ """
+ Regression test for ticket:
+
https://fedorahosted.org/sssd/ticket/2726
+ """
+
+ import grp
+ import pwd
+
Ups.
Imports were already done on top of file.
updated patches are attached.
LS