summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-06-01 16:53:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-14 21:44:39 +0200
commit50936fc7230a9b3f01e285e72c4182013542f53e (patch)
treeb169ca917f1f5acac5f201e02a61a5c2c3e9596b /src/tests
parentea224c3813a537639778f91ac762732b3c289603 (diff)
downloadsssd-50936fc7230a9b3f01e285e72c4182013542f53e.tar.gz
sssd-50936fc7230a9b3f01e285e72c4182013542f53e.tar.xz
sssd-50936fc7230a9b3f01e285e72c4182013542f53e.zip
UTIL/SYSDB: Move new_subdomain() to sysdb_subdomains.c and make it private
In order to make updating the subdomain list a two-step process. Therefore we need to make sure that update_subdomains() is the only interface towards the SSSD that changes the subdomain list. Move the new_subdomain() function to sysdb_subdomains.c and only make it available through a private header so it's usable by unit tests. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/cmocka/test_nss_srv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/cmocka/test_nss_srv.c b/src/tests/cmocka/test_nss_srv.c
index 2fbb1abbc..d1a4c1685 100644
--- a/src/tests/cmocka/test_nss_srv.c
+++ b/src/tests/cmocka/test_nss_srv.c
@@ -32,6 +32,7 @@
#include "responder/nss/nsssrv_private.h"
#include "sss_client/idmap/sss_nss_idmap.h"
#include "util/util_sss_idmap.h"
+#include "db/sysdb_private.h" /* new_subdomain() */
#define TESTS_PATH "tests_nss"
#define TEST_CONF_DB "test_nss_conf.ldb"