summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-02-23 08:46:46 -0500
committerSimo Sorce <idra@samba.org>2009-02-23 10:26:22 -0500
commitf8469b71247b5a41cfdf0f54c25ceda1552e0ee9 (patch)
treee61b1ab3b30174ea76c05120acfbe02640377b0e /server/tests
parent70901a109f546b0d5adcbb01430649cddf607e35 (diff)
downloadsssd-f8469b71247b5a41cfdf0f54c25ceda1552e0ee9.tar.gz
sssd-f8469b71247b5a41cfdf0f54c25ceda1552e0ee9.tar.xz
sssd-f8469b71247b5a41cfdf0f54c25ceda1552e0ee9.zip
Attach the InfoPipe to the D-BUS system bus. InfoPipe is now capable of listening for requests to org.freeipa.sssd.infopipe
I made the sbus_add_connection function public so that I could use it for system bus connections. Adding initial framework for the InfoPipe Updating sysdb tests for the refactored sysdb methods.
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/sysdb-tests.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/sysdb-tests.c b/server/tests/sysdb-tests.c
index a24ae1819..f809f5542 100644
--- a/server/tests/sysdb-tests.c
+++ b/server/tests/sysdb-tests.c
@@ -104,7 +104,7 @@ START_TEST (test_sysdb_store_local_account_posix)
const char *username = talloc_asprintf(test_ctx, "testuser%d", _i);
const char *home = talloc_asprintf(test_ctx, "/home/testuser%d", _i);
- ret = sysdb_posix_store_user(test_ctx, test_ctx->sysdb,
+ ret = sysdb_legacy_store_user(test_ctx, test_ctx->sysdb,
"LOCAL", username, "password",
_i, _i,
"Test User",
@@ -132,7 +132,7 @@ START_TEST (test_sysdb_store_local_group_posix)
group_name = talloc_asprintf(test_ctx, "%s%d", SYSDB_POSIX_TEST_GROUP, _i);
fail_if(group_name == NULL, "Could not allocate group name");
- ret = sysdb_posix_store_group(test_ctx, test_ctx->sysdb,
+ ret = sysdb_legacy_store_group(test_ctx, test_ctx->sysdb,
"LOCAL", group_name, _i, NULL);
fail_if(ret != EOK, "Could not store POSIX group");
@@ -238,7 +238,7 @@ START_TEST (test_sysdb_add_acct_to_posix_group)
username = talloc_asprintf(test_ctx, "testuser%d", _i);
group = talloc_asprintf(test_ctx, "%s%d",SYSDB_POSIX_TEST_GROUP, _i);
- ret = sysdb_posix_add_user_to_group(test_ctx,
+ ret = sysdb_add_user_to_group(test_ctx,
test_ctx->sysdb,
"LOCAL",
group,
@@ -403,7 +403,7 @@ START_TEST (test_sysdb_add_invalid_member)
/* Add nonexistent user to test group */
username = talloc_asprintf(test_ctx, "nonexistentuser%d", _i);
- ret = sysdb_posix_add_user_to_group(test_ctx,
+ ret = sysdb_add_user_to_group(test_ctx,
test_ctx->sysdb,
"LOCAL",
group,
@@ -481,7 +481,7 @@ START_TEST (test_sysdb_remove_acct_from_posix_group)
username = talloc_asprintf(test_ctx, "testuser%d", _i);
group = talloc_asprintf(test_ctx, "%s%d",SYSDB_POSIX_TEST_GROUP, _i);
- ret = sysdb_posix_remove_user_from_group(test_ctx,
+ ret = sysdb_remove_user_from_group(test_ctx,
test_ctx->sysdb,
"LOCAL",
group,
@@ -511,7 +511,7 @@ START_TEST (test_sysdb_remove_local_acct_posix)
*/
const char *username = talloc_asprintf(test_ctx, "testuser%d", _i);
- ret = sysdb_posix_remove_user(test_ctx, test_ctx->sysdb, "LOCAL", username);
+ ret = sysdb_delete_user(test_ctx, test_ctx->sysdb, "LOCAL", username);
fail_if(ret != EOK, "Could not remove POSIX user %s", username);
talloc_free(test_ctx);
@@ -530,7 +530,7 @@ START_TEST (test_sysdb_remove_local_acct_posix_by_uid)
return;
}
- ret = sysdb_posix_remove_user_by_uid(test_ctx, test_ctx->sysdb, "LOCAL", _i);
+ ret = sysdb_delete_user_by_uid(test_ctx, test_ctx->sysdb, "LOCAL", _i);
fail_if(ret != EOK, "Could not remove POSIX group");
talloc_free(test_ctx);
@@ -553,7 +553,7 @@ START_TEST (test_sysdb_remove_local_group_posix)
group_name = talloc_asprintf(test_ctx, "%s%d", SYSDB_POSIX_TEST_GROUP, _i);
fail_if(group_name == NULL, "Could not allocate group name");
- ret = sysdb_posix_remove_group(test_ctx, test_ctx->sysdb,
+ ret = sysdb_delete_group(test_ctx, test_ctx->sysdb,
"LOCAL", group_name);
fail_if(ret != EOK, "Could not remove POSIX group");
@@ -573,7 +573,7 @@ START_TEST (test_sysdb_remove_local_group_posix_by_gid)
return;
}
- ret = sysdb_posix_remove_group_by_gid(test_ctx, test_ctx->sysdb,
+ ret = sysdb_delete_group_by_gid(test_ctx, test_ctx->sysdb,
"LOCAL", _i);
fail_if(ret != EOK, "Could not remove POSIX group");