summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-01-16 09:51:20 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-27 09:02:01 -0500
commitff907ba7a9b5e429de086515642f97a0447e546a (patch)
tree63785cfdb24f6da72c1590321c9f07f0c72560dc /src/tests
parent4c1bf6607060cea867fccf667063c028dfd51e96 (diff)
downloadsssd-ff907ba7a9b5e429de086515642f97a0447e546a.tar.gz
sssd-ff907ba7a9b5e429de086515642f97a0447e546a.tar.bz2
sssd-ff907ba7a9b5e429de086515642f97a0447e546a.zip
SYSDB: Add indexes for servicePort and serviceProtocol
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb-tests.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index 8b78ff32..fa034cec 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -2889,6 +2889,15 @@ void services_check_match(struct sysdb_test_ctx *test_ctx,
services_check_match(test_ctx, false, primary_name, port, aliases, protocols); \
} while(0);
+errno_t
+sysdb_svc_add(TALLOC_CTX *mem_ctx,
+ struct sysdb_ctx *sysdb,
+ const char *primary_name,
+ int port,
+ const char **aliases,
+ const char **protocols,
+ struct ldb_dn **dn);
+
START_TEST(test_sysdb_add_services)
{
errno_t ret;
@@ -3078,6 +3087,11 @@ START_TEST(test_sysdb_store_services)
}
END_TEST
+errno_t
+sysdb_svc_remove_alias(struct sysdb_ctx *sysdb,
+ struct ldb_dn *dn,
+ const char *alias);
+
START_TEST(test_sysdb_svc_remove_alias)
{
errno_t ret;