summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-07 17:16:45 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:21 +0100
commit20d2466dbce2bb950813e3f739bc40b511020efb (patch)
treed3284cd515bcbd01f4ff844ab3bb59cb5badcdb3 /src/tests
parent3f94d6718d44185137e13b6d326dfd63e8dc61c6 (diff)
downloadsssd-20d2466dbce2bb950813e3f739bc40b511020efb.tar.gz
sssd-20d2466dbce2bb950813e3f739bc40b511020efb.tar.xz
sssd-20d2466dbce2bb950813e3f739bc40b511020efb.zip
Add domain argument to sysdb_set_group_attr()
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb-tests.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index baf1afe5c..25d5fc9c9 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -2112,8 +2112,8 @@ START_TEST (test_sysdb_memberof_mod_add)
}
/* Perform the add operation */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_ADD);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_ADD);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* Before the delete, all groups with gid >= _i have the testuser%_i
@@ -2206,8 +2206,8 @@ START_TEST (test_sysdb_memberof_mod_replace)
}
/* Perform the replace operation */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_REP);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_REP);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* After the replace, all groups with gid >= _i have the testghost%_i
@@ -2335,8 +2335,8 @@ START_TEST (test_sysdb_memberof_mod_replace_keep)
}
/* Perform the replace operation */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_REP);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_REP);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* After the replace, testusera should still be there, but we also need
@@ -2874,8 +2874,8 @@ START_TEST (test_sysdb_memberof_mod_del)
}
/* Delete the attribute */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_DEL);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_DEL);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* After the delete, we shouldn't be able to find the ghost attribute */
@@ -3123,8 +3123,8 @@ START_TEST (test_sysdb_memberof_ghost_replace)
fail_if(test_gv == NULL, "Cannot find ghost user %s\n", ghostname_del);
/* Perform the replace operation */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_REP);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_REP);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* After the replace, the group has the testghost%_i as a member */
@@ -3207,8 +3207,8 @@ START_TEST (test_sysdb_memberof_ghost_replace_noop)
fail_if(test_gv == NULL, "Cannot find ghost user %s\n", ghostname_del);
/* Perform the replace operation */
- ret = sysdb_set_group_attr(test_ctx->sysdb, data->groupname,
- data->attrs, SYSDB_MOD_REP);
+ ret = sysdb_set_group_attr(test_ctx->sysdb, test_ctx->domain,
+ data->groupname, data->attrs, SYSDB_MOD_REP);
fail_unless(ret == EOK, "Cannot set group attrs\n");
/* After the replace, the group has the testghost%_i as a member */