diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:39:50 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:02 +0100 |
commit | a58ccee5afc802c7560624929614616aeefa9bd0 (patch) | |
tree | c007a5d2faaa1978740419e5978ce227b7b81640 /src/tests | |
parent | 2b7ee2a760e7fcc70f4970a3bbee6fbf8f2ccb9d (diff) | |
download | sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.gz sssd-a58ccee5afc802c7560624929614616aeefa9bd0.tar.bz2 sssd-a58ccee5afc802c7560624929614616aeefa9bd0.zip |
Add domain argument to sysdb_delete_group()
Also remove sysdb_delete_domgroup()
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/sysdb-tests.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 105d72f8..e11977bd 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -240,7 +240,8 @@ static int test_remove_nonexistent_group(struct test_data *data) { int ret; - ret = sysdb_delete_group(data->ctx->sysdb, NULL, data->uid); + ret = sysdb_delete_group(data->ctx->sysdb, + data->ctx->domain, NULL, data->uid); return ret; } @@ -298,7 +299,8 @@ static int test_remove_group_by_gid(struct test_data *data) { int ret; - ret = sysdb_delete_group(data->ctx->sysdb, NULL, data->gid); + ret = sysdb_delete_group(data->ctx->sysdb, + data->ctx->domain, NULL, data->gid); if (ret == ENOENT) { ret = EOK; } @@ -2799,7 +2801,7 @@ START_TEST (test_sysdb_memberof_remove_child_group_and_check_ghost) 2, data->msg->elements[0].num_values); /* Remove the parent */ - ret = sysdb_delete_group(data->ctx->sysdb, NULL, delgid); + ret = sysdb_delete_group(data->ctx->sysdb, data->ctx->domain, NULL, delgid); fail_if(ret != EOK, "Cannot delete group %llu [%d]: %s\n", (unsigned long long) data->gid, ret, strerror(ret)); @@ -3811,7 +3813,8 @@ START_TEST(test_odd_characters) /* Delete Group */ - ret = sysdb_delete_group(test_ctx->sysdb, odd_groupname, 20000); + ret = sysdb_delete_group(test_ctx->sysdb, test_ctx->domain, + odd_groupname, 20000); fail_unless(ret == EOK, "sysdb_delete_group error [%d][%s]", ret, strerror(ret)); @@ -4507,7 +4510,7 @@ START_TEST(test_sysdb_subdomain_group_ops) fail_unless(ldb_dn_compare(msg->dn, check_dn) == 0, "Unexpedted DN returned"); - ret = sysdb_delete_domgroup(subdomain, "subdomgroup", 12345); + ret = sysdb_delete_group(subdomain->sysdb, subdomain, "subdomgroup", 12345); fail_unless(ret == EOK, "sysdb_delete_domgroup failed with [%d][%s].", ret, strerror(ret)); |