Blame SOURCES/0092-TESTS-adapt-tests-to-enabled-default-files-domain.patch

8d3578
From e48cdfb69b43964d5472bdf011af59343c719a06 Mon Sep 17 00:00:00 2001
8d3578
From: Tomas Halman <thalman@redhat.com>
8d3578
Date: Thu, 5 Sep 2019 09:30:04 +0200
8d3578
Subject: [PATCH 92/92] TESTS: adapt tests to enabled default files domain
8d3578
MIME-Version: 1.0
8d3578
Content-Type: text/plain; charset=UTF-8
8d3578
Content-Transfer-Encoding: 8bit
8d3578
8d3578
Some tests expect that SSSD is compiled with --enable-files-domain
8d3578
option (test_no_sssd_conf). But having this enabled by default
8d3578
breaks some other tests.
8d3578
8d3578
This patch adds --enable-files-domain to test build and explicitly
8d3578
disables the domain in configuration of some tests (ldap, enumeration).
8d3578
8d3578
Resolves:
8d3578
https://bugzilla.redhat.com/show_bug.cgi?id=1713352
8d3578
8d3578
Reviewed-by: Michal Židek <mzidek@redhat.com>
8d3578
---
8d3578
 Makefile.am                        | 2 ++
8d3578
 src/tests/intg/test_enumeration.py | 1 +
8d3578
 src/tests/intg/test_ldap.py        | 1 +
8d3578
 3 files changed, 4 insertions(+)
8d3578
8d3578
diff --git a/Makefile.am b/Makefile.am
8d3578
index bc74906a7..45a042624 100644
8d3578
--- a/Makefile.am
8d3578
+++ b/Makefile.am
8d3578
@@ -3766,6 +3766,8 @@ intgcheck-prepare:
8d3578
 	    --enable-intgcheck-reqs \
8d3578
 	    --without-semanage \
8d3578
 	    --with-session-recording-shell=/bin/false \
8d3578
+	    --enable-local-provider \
8d3578
+	    --enable-files-domain \
8d3578
 	    $(INTGCHECK_CONFIGURE_FLAGS) \
8d3578
 	    CFLAGS="-O2 -g $$CFLAGS -DKCM_PEER_UID=$$(id -u)"; \
8d3578
 	$(MAKE) $(AM_MAKEFLAGS) ; \
8d3578
diff --git a/src/tests/intg/test_enumeration.py b/src/tests/intg/test_enumeration.py
8d3578
index 669fd86c7..c105c6df0 100644
8d3578
--- a/src/tests/intg/test_enumeration.py
8d3578
+++ b/src/tests/intg/test_enumeration.py
8d3578
@@ -113,6 +113,7 @@ def format_basic_conf(ldap_conn, schema):
8d3578
         debug_level         = 0xffff
8d3578
         domains             = LDAP
8d3578
         services            = nss, pam
8d3578
+        enable_files_domain = false
8d3578
 
8d3578
         [nss]
8d3578
         debug_level         = 0xffff
8d3578
diff --git a/src/tests/intg/test_ldap.py b/src/tests/intg/test_ldap.py
8d3578
index 787255f92..c432068f9 100644
8d3578
--- a/src/tests/intg/test_ldap.py
8d3578
+++ b/src/tests/intg/test_ldap.py
8d3578
@@ -117,6 +117,7 @@ def format_basic_conf(ldap_conn, schema):
8d3578
         debug_level         = 0xffff
8d3578
         domains             = LDAP
8d3578
         services            = nss, pam
8d3578
+        enable_files_domain = false
8d3578
 
8d3578
         [nss]
8d3578
         debug_level         = 0xffff
8d3578
-- 
8d3578
2.20.1
8d3578