diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:53:02 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:02 +0100 |
commit | 80c6afa474d8a1e0198832bddfe5da75a9818b29 (patch) | |
tree | f318887d71caa3250e8a96c50d6d67d349e4f0fe /src/tests | |
parent | 84c986f9bb2767d8930b6f5d92d34b09b8fabe60 (diff) | |
download | sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.tar.gz sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.tar.xz sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.zip |
Add domain argument to sysdb_has/set_enumerated()
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/sysdb-tests.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index ab0cdb96..76d5e483 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -4224,20 +4224,18 @@ START_TEST(test_sysdb_has_enumerated) ret = setup_sysdb_tests(&test_ctx); fail_if(ret != EOK, "Could not set up the test"); - ret = sysdb_has_enumerated(test_ctx->sysdb, &enumerated); + ret = sysdb_has_enumerated(test_ctx->sysdb, test_ctx->domain, &enumerated); fail_if(ret != EOK, "Error [%d][%s] checking enumeration", ret, strerror(ret)); fail_if(enumerated, "Enumeration should default to false"); - ret = sysdb_set_enumerated(test_ctx->sysdb, - true); + ret = sysdb_set_enumerated(test_ctx->sysdb, test_ctx->domain, true); fail_if(ret != EOK, "Error [%d][%s] setting enumeration", ret, strerror(ret)); /* Recheck enumeration status */ - ret = sysdb_has_enumerated(test_ctx->sysdb, - &enumerated); + ret = sysdb_has_enumerated(test_ctx->sysdb, test_ctx->domain, &enumerated); fail_if(ret != EOK, "Error [%d][%s] checking enumeration", ret, strerror(ret)); |