| /sssd-io/src/tests/ |
| H A D | common_tev.c | 32 struct sss_test_ctx *test_ctx; local 34 test_ctx = talloc_zero(mem_ctx, struct sss_test_ctx); 35 if (test_ctx == NULL) { 41 test_ctx->ev = tevent_context_init(test_ctx); 42 if (test_ctx->ev == NULL) { 47 return test_ctx; 50 talloc_free(test_ctx);
|
| H A D | auth-tests.c | 54 struct sysdb_test_ctx *test_ctx; local 69 test_ctx = talloc_zero(NULL, struct sysdb_test_ctx); 70 if (test_ctx == NULL) { 78 test_ctx->ev = tevent_context_init(test_ctx); 79 if (test_ctx->ev == NULL) { 81 talloc_free(test_ctx); 85 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 88 talloc_free(test_ctx); 94 ret = confdb_init(test_ctx, 158 struct sysdb_test_ctx *test_ctx = NULL; local [all...] |
| H A D | common_dom.c | 237 struct sss_test_ctx *test_ctx = NULL; local 242 test_ctx = create_ev_test_ctx(mem_ctx); 243 if (test_ctx == NULL) { 248 ret = mock_confdb(test_ctx, tests_path, cdb_file, &test_ctx->confdb); 257 ret = mock_confdb_domain(test_ctx, test_ctx->confdb, tests_path, 269 ret = mock_domain(test_ctx, test_ctx->confdb, tests_path, domains[i], 279 test_ctx [all...] |
| H A D | crypto-tests.c | 35 static TALLOC_CTX *test_ctx = NULL; variable 69 test_ctx = talloc_new(NULL); 70 fail_if(test_ctx == NULL); 71 ck_leaks_push(test_ctx); 74 ret = sss_password_encrypt(test_ctx, password[i], strlen(password[i])+1, 78 ret = sss_password_decrypt(test_ctx, obfpwd, &ctpwd); 87 ck_leaks_pop(test_ctx); 88 talloc_free(test_ctx); 131 test_ctx = talloc_new(NULL); 132 fail_if(test_ctx [all...] |
| H A D | files-tests.c | 45 static TALLOC_CTX *test_ctx = NULL; variable 50 test_ctx = talloc_new(NULL); 52 dir_path = mkdtemp(talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, tpl_dir)); 53 dst_path = mkdtemp(talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, tpl_dir)); 65 if (dir_path && test_ctx) { 66 cmd = talloc_asprintf(test_ctx, "/bin/rm -rf %s\n", dir_path); 72 if (dst_path && test_ctx) { 73 cmd = talloc_asprintf(test_ctx, "/bin/rm -rf %s\n", dst_path); 82 talloc_zfree(test_ctx); 249 tmp = talloc_asprintf(test_ctx, " [all...] |
| H A D | sysdb_ssh-tests.c | 49 struct sysdb_test_ctx *test_ctx; local 64 test_ctx = talloc_zero(NULL, struct sysdb_test_ctx); 65 if (test_ctx == NULL) { 73 test_ctx->ev = tevent_context_init(test_ctx); 74 if (test_ctx->ev == NULL) { 76 talloc_free(test_ctx); 80 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 83 talloc_free(test_ctx); 89 ret = confdb_init(test_ctx, 204 struct sysdb_test_ctx *test_ctx; local 246 struct sysdb_test_ctx *test_ctx; local 280 struct sysdb_test_ctx *test_ctx; local 316 struct sysdb_test_ctx *test_ctx; local [all...] |
| /sssd-io/src/tests/cmocka/data_provider/ |
| H A D | test_dp_builtin.c | 38 struct test_ctx { struct 46 struct test_ctx *test_ctx; local 51 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 52 assert_non_null(test_ctx); 54 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 56 assert_non_null(test_ctx->tctx); 58 test_ctx 75 struct test_ctx *test_ctx; local 88 struct test_ctx *test_ctx; local 115 struct test_ctx *test_ctx; local [all...] |
| H A D | test_dp_request_table.c | 27 struct test_ctx { struct 33 struct test_ctx *test_ctx = NULL; local 38 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 39 assert_non_null(test_ctx); 41 ret = dp_req_table_init(test_ctx, &test_ctx->table); 43 assert_non_null(test_ctx->table); 45 check_leaks_push(test_ctx); 54 struct test_ctx *test_ctx; local 63 get_req_key(struct test_ctx* test_ctx) argument 83 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 125 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 152 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 228 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local [all...] |
| H A D | test_dp_request.c | 36 struct test_ctx { struct 45 struct test_ctx *test_ctx; local 49 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 50 assert_non_null(test_ctx); 52 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 54 assert_non_null(test_ctx->tctx); 56 test_ctx 69 struct test_ctx *test_ctx; local 191 struct test_ctx *test_ctx; local 276 struct test_ctx *test_ctx; local 322 struct test_ctx *test_ctx; local 367 struct test_ctx *test_ctx; local [all...] |
| /sssd-io/src/tests/cmocka/ |
| H A D | test_expire_common.c | 95 struct expire_test_ctx *test_ctx; local 97 test_ctx = talloc_get_type(*state, struct expire_test_ctx); 98 assert_non_null(test_ctx); 100 talloc_free(test_ctx);
|
| H A D | test_ipa_dn.c | 40 struct ipa_dn_test_ctx *test_ctx = NULL; local 42 test_ctx = talloc_zero(NULL, struct ipa_dn_test_ctx); 43 assert_non_null(test_ctx); 44 *state = test_ctx; 47 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 50 assert_non_null(test_ctx->tctx); 52 test_ctx->sysdb = test_ctx->tctx->sysdb; 65 struct ipa_dn_test_ctx *test_ctx local 97 struct ipa_dn_test_ctx *test_ctx = NULL; local 129 struct ipa_dn_test_ctx *test_ctx = NULL; local [all...] |
| H A D | test_ipa_subdomains_utils.c | 43 struct test_ipa_subdom_ctx *test_ctx; local 47 test_ctx = talloc_zero(global_talloc_context, struct test_ipa_subdom_ctx); 48 assert_non_null(test_ctx); 50 test_ctx->ldb = ldb_init(test_ctx, NULL); 51 assert_non_null(test_ctx->ldb); 53 check_leaks_push(test_ctx); 54 *state = test_ctx; 60 struct test_ipa_subdom_ctx *test_ctx; local 62 test_ctx 89 struct test_ipa_subdom_ctx *test_ctx; local 109 struct test_ipa_subdom_ctx *test_ctx; local 151 struct test_ipa_subdom_ctx *test_ctx; local [all...] |
| H A D | test_sdap_access.c | 71 struct test_sdap_access_rhost_ctx *test_ctx; local 82 test_ctx = talloc(mem_ctx, struct test_sdap_access_rhost_ctx); 83 assert_non_null(test_ctx); 86 user_no_rhost = ldb_msg_new(test_ctx); 91 user_allow_somehost = ldb_msg_new(test_ctx); 98 user_deny_somehost = ldb_msg_new(test_ctx); 105 user_allow_all = ldb_msg_new(test_ctx); 112 user_allow_all_deny_somehost = ldb_msg_new(test_ctx); 122 user_allow_all_allow_somehost_deny_somehost = ldb_msg_new(test_ctx); 135 test_ctx 150 struct test_sdap_access_rhost_ctx *test_ctx; local 162 struct test_sdap_access_rhost_ctx *test_ctx; local [all...] |
| H A D | test_sysdb_domain_resolution_order.c | 49 struct domain_resolution_order_test_ctx *test_ctx; local 53 test_ctx = talloc_zero(global_talloc_context, 55 assert_non_null(test_ctx); 59 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 62 assert_non_null(test_ctx->tctx); 64 *state = test_ctx; 70 struct domain_resolution_order_test_ctx *test_ctx = local 74 talloc_free(test_ctx); 82 struct domain_resolution_order_test_ctx *test_ctx local [all...] |
| H A D | test_ad_access_filter.c | 43 static struct ad_access_test_ctx *test_ctx; variable in typeref:struct:ad_access_test_ctx 48 test_ctx = talloc_zero(global_talloc_context, 50 assert_non_null(test_ctx); 52 test_ctx->dom = talloc_zero(test_ctx, struct sss_domain_info); 53 assert_non_null(test_ctx->dom); 55 test_ctx->dom->name = talloc_strdup(test_ctx->dom, DOM_NAME); 56 assert_non_null(test_ctx->dom->name); 62 talloc_free(test_ctx); [all...] |
| H A D | test_ad_subdomains.c | 76 struct test_ad_subdom_ctx *test_ctx; local 80 test_ctx = talloc_zero(global_talloc_context, struct test_ad_subdom_ctx); 81 assert_non_null(test_ctx); 83 test_ctx->ad_id_ctx = NULL; 85 check_leaks_push(test_ctx); 86 *state = test_ctx; 92 struct test_ad_subdom_ctx *test_ctx; local 94 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx); 95 assert_non_null(test_ctx); 97 assert_true(check_leaks_pop(test_ctx) 105 struct test_ad_subdom_ctx *test_ctx; local 124 struct test_ad_subdom_ctx *test_ctx; local 162 struct test_ad_subdom_ctx *test_ctx; local 201 struct test_ad_subdom_ctx *test_ctx; local 238 struct test_ad_subdom_ctx *test_ctx; local [all...] |
| H A D | test_copy_ccache.c | 44 struct ccache_test_ctx *test_ctx; local 60 test_ctx = talloc_zero(global_talloc_context, struct ccache_test_ctx); 61 assert_non_null(test_ctx); 63 kerr = krb5_init_context(&test_ctx->kctx); 73 kerr = krb5_parse_name(test_ctx->kctx, CCACHE_TEST_CLIENT_PRINC, 74 &test_ctx->client_principal); 76 test_creds.client = test_ctx->client_principal; 77 kerr = krb5_parse_name(test_ctx->kctx, CCACHE_TEST_SERVER_PRINC, 78 &test_ctx->server_principal); 80 test_creds.server = test_ctx 140 struct ccache_test_ctx *test_ctx = talloc_get_type(*state, local 165 struct ccache_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
| H A D | test_copy_keytab.c | 44 struct keytab_test_ctx *test_ctx; local 53 test_ctx = talloc_zero(global_talloc_context, struct keytab_test_ctx); 54 assert_non_null(test_ctx); 56 kerr = krb5_init_context(&test_ctx->kctx); 59 test_ctx->keytab_file_name = "FILE:" KEYTAB_PATH; 61 kerr = krb5_parse_name(test_ctx->kctx, KEYTAB_TEST_PRINC, 62 &test_ctx->principal); 67 mock_krb5_keytab_entry(&keys[0], test_ctx->principal, 12345, 1, 1, "11"); 68 mock_krb5_keytab_entry(&keys[1], test_ctx->principal, 12345, 1, 2, "12"); 69 mock_krb5_keytab_entry(&keys[2], test_ctx 83 struct keytab_test_ctx *test_ctx = talloc_get_type(*state, local 110 struct keytab_test_ctx *test_ctx = talloc_get_type(*state, local 160 struct keytab_test_ctx *test_ctx = talloc_get_type(*state, local 211 struct keytab_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
| H A D | test_krb5_common.c | 48 struct test_ctx { struct 54 struct test_ctx *test_ctx; local 58 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 59 assert_non_null(test_ctx); 61 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 64 assert_non_null(test_ctx->tctx); 66 check_leaks_push(test_ctx); 74 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 181 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local [all...] |
| H A D | test_sdap_certmap.c | 54 struct certmap_test_ctx *test_ctx; local 61 test_ctx = talloc_zero(global_talloc_context, 63 assert_non_null(test_ctx); 64 check_leaks_push(test_ctx); 68 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 71 assert_non_null(test_ctx->tctx); 73 ret = sysdb_update_certmap(test_ctx->tctx->sysdb, certmap, false); 76 test_ctx->id_ctx = talloc_zero(test_ctx 92 struct certmap_test_ctx *test_ctx = local 106 struct certmap_test_ctx *test_ctx = talloc_get_type(*state, local 118 struct certmap_test_ctx *test_ctx = talloc_get_type(*state, local 138 struct certmap_test_ctx *test_ctx = talloc_get_type(*state, local 164 struct certmap_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
| H A D | test_sysdb_certmap.c | 45 struct certmap_test_ctx *test_ctx; local 52 test_ctx = talloc_zero(global_talloc_context, 54 assert_non_null(test_ctx); 55 check_leaks_push(test_ctx); 59 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 62 assert_non_null(test_ctx->tctx); 64 *state = test_ctx; 70 struct certmap_test_ctx *test_ctx = local 74 talloc_free(test_ctx [all...] |
| H A D | sbus_internal_tests.c | 92 struct sbus_get_id_ctx *test_ctx = talloc_get_type(pvt, local 95 test_ctx->reply_handler(NULL, test_ctx->reply_pvt); 119 struct sbus_get_id_ctx *test_ctx; local 122 test_ctx = talloc(global_talloc_context, struct sbus_get_id_ctx); 123 assert_non_null(test_ctx); 125 test_ctx->conn = talloc(test_ctx, struct sbus_connection); 126 assert_non_null(test_ctx->conn); 127 test_ctx 143 struct sbus_get_id_ctx *test_ctx = tevent_req_callback_data(req, local 159 struct sbus_get_id_ctx *test_ctx = talloc_get_type(*state, local 196 struct sbus_get_id_ctx *test_ctx = tevent_req_callback_data(req, local 209 struct sbus_get_id_ctx *test_ctx = talloc_get_type(*state, local 224 struct sbus_get_id_ctx *test_ctx = talloc_get_type(*state, local [all...] |
| H A D | test_ad_gpo.c | 41 static struct ad_gpo_test_ctx *test_ctx; variable in typeref:struct:ad_gpo_test_ctx 46 test_ctx = talloc_zero(global_talloc_context, 48 assert_non_null(test_ctx); 50 test_ctx->ldb_ctx = ldb_init(test_ctx, NULL); 51 assert_non_null(test_ctx->ldb_ctx); 57 talloc_free(test_ctx); 85 test_ctx->ldb_ctx,
|
| H A D | test_child_common.c | 40 struct sss_test_ctx *test_ctx; member in struct:child_test_ctx 55 child_tctx->test_ctx = create_ev_test_ctx(child_tctx); 56 assert_non_null(child_tctx->test_ctx); 297 ret = child_handler_setup(child_tctx->test_ctx->ev, child_pid, 301 ret = test_ev_loop(child_tctx->test_ctx); 303 assert_int_equal(child_tctx->test_ctx->error, 0); 312 child_ctx->test_ctx->error = EIO; 314 child_ctx->test_ctx->error = 0; 317 child_ctx->test_ctx->done = true; 358 ret = child_handler_setup(child_tctx->test_ctx [all...] |
| H A D | test_data_provider_be.c | 64 struct test_ctx { struct 71 struct test_ctx *test_ctx = NULL; local 81 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 82 assert_non_null(test_ctx); 84 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, 87 assert_non_null(test_ctx->tctx); 89 test_ctx 123 struct test_ctx *test_ctx = talloc_get_type(pvt, struct test_ctx); local 134 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 149 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 191 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local [all...] |