[SSSD] [PATCH] update sysdb tests to new config file version
Sumit Bose
sbose at redhat.com
Mon Sep 28 15:52:32 UTC 2009
On Mon, Sep 28, 2009 at 11:32:08AM -0400, Stephen Gallagher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 09/28/2009 11:00 AM, Sumit Bose wrote:
> > Hi,
> >
> > this patch should make sysdb tests happy again.
> >
> > bye,
> > Sumit
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > sssd-devel mailing list
> > sssd-devel at lists.fedorahosted.org
> > https://fedorahosted.org/mailman/listinfo/sssd-devel
>
> Please remove the setup line for magicPrivateGroups. This is both not
> updated and not necessary (as the local id_provider forces it to true
> internally)
>
new version attached.
bye,
Sumit
-------------- next part --------------
>From b494e95963083e0606cf2ec6cbe1708b2b4dadaf Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Mon, 28 Sep 2009 16:58:31 +0200
Subject: [PATCH] update sysdb tests to new config file version
---
server/tests/sysdb-tests.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/server/tests/sysdb-tests.c b/server/tests/sysdb-tests.c
index 424393c..a16aa79 100644
--- a/server/tests/sysdb-tests.c
+++ b/server/tests/sysdb-tests.c
@@ -90,7 +90,7 @@ static int setup_sysdb_tests(struct sysdb_test_ctx **ctx)
val[0] = "LOCAL";
ret = confdb_add_param(test_ctx->confdb, true,
- "config/domains", "domains", val);
+ "config/sssd", "domains", val);
if (ret != EOK) {
fail("Could not initialize domains placeholder");
talloc_free(test_ctx);
@@ -99,7 +99,7 @@ static int setup_sysdb_tests(struct sysdb_test_ctx **ctx)
val[0] = "local";
ret = confdb_add_param(test_ctx->confdb, true,
- "config/domains/LOCAL", "provider", val);
+ "config/domain/LOCAL", "id_provider", val);
if (ret != EOK) {
fail("Could not initialize provider");
talloc_free(test_ctx);
@@ -108,16 +108,7 @@ static int setup_sysdb_tests(struct sysdb_test_ctx **ctx)
val[0] = "TRUE";
ret = confdb_add_param(test_ctx->confdb, true,
- "config/domains/LOCAL", "magicPrivateGroups", val);
- if (ret != EOK) {
- fail("Could not initialize LOCAL domain");
- talloc_free(test_ctx);
- return ret;
- }
-
- val[0] = "TRUE";
- ret = confdb_add_param(test_ctx->confdb, true,
- "config/domains/LOCAL", "enumerate", val);
+ "config/domain/LOCAL", "enumerate", val);
if (ret != EOK) {
fail("Could not initialize LOCAL domain");
talloc_free(test_ctx);
--
1.6.2.5
More information about the sssd-devel
mailing list