/sssd-io/src/tests/cwrap/ |
H A D | test_negcache.c | 121 struct ncache_test_ctx *test_ctx; local 125 test_ctx = talloc_zero(global_talloc_context, struct ncache_test_ctx); 126 assert_non_null(test_ctx); 130 test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB, 132 assert_non_null(test_ctx->tctx); 134 create_groups(test_ctx, test_ctx->tctx->dom); 135 create_users(test_ctx, test_ctx 146 struct ncache_test_ctx *test_ctx; local 211 set_users(struct ncache_test_ctx *test_ctx) argument 224 check_users(struct ncache_test_ctx *test_ctx, int case_a, int case_b, int case_c, int case_d) argument 251 struct ncache_test_ctx *test_ctx; local 269 struct ncache_test_ctx *test_ctx; local 287 struct ncache_test_ctx *test_ctx; local 305 struct ncache_test_ctx *test_ctx; local 322 set_uids(struct ncache_test_ctx *test_ctx) argument 335 check_uids(struct ncache_test_ctx *test_ctx, int case_a, int case_b, int case_c, int case_d) argument 362 struct ncache_test_ctx *test_ctx; local 380 struct ncache_test_ctx *test_ctx; local 398 struct ncache_test_ctx *test_ctx; local 416 struct ncache_test_ctx *test_ctx; local 433 set_groups(struct ncache_test_ctx *test_ctx) argument 446 check_groups(struct ncache_test_ctx *test_ctx, int case_a, int case_b, int case_c, int case_d) argument 473 struct ncache_test_ctx *test_ctx; local 491 struct ncache_test_ctx *test_ctx; local 509 struct ncache_test_ctx *test_ctx; local 527 struct ncache_test_ctx *test_ctx; local 544 set_gids(struct ncache_test_ctx *test_ctx) argument 557 check_gids(struct ncache_test_ctx *test_ctx, int case_a, int case_b, int case_c, int case_d) argument 584 struct ncache_test_ctx *test_ctx; local 602 struct ncache_test_ctx *test_ctx; local 620 struct ncache_test_ctx *test_ctx; local 638 struct ncache_test_ctx *test_ctx; local [all...] |
/sssd-io/src/tests/cmocka/ |
H A D | test_be_ptask.c | 41 struct test_ctx { struct 52 #define mark_online(test_ctx) do { \ 53 test_ctx->be_ctx->offstat.went_offline = 0; \ 54 test_ctx->be_ctx->offstat.offline = false; \ 57 #define mark_offline(test_ctx) do { \ 58 test_ctx->be_ctx->offstat.went_offline = get_current_time(); \ 59 test_ctx->be_ctx->offstat.offline = true; \ 62 /* Since both test_ctx->done and ptask->req is marked as finished already 67 #define is_sync_ptask_finished(test_ctx, ptask) \ 68 (test_ctx 94 struct test_ctx *test_ctx = NULL; local 108 struct test_ctx *test_ctx = NULL; local 117 struct test_ctx *test_ctx; member in struct:test_be_ptask_state 127 struct test_ctx *test_ctx = NULL; local 156 struct test_ctx *test_ctx = NULL; local 178 struct test_ctx *test_ctx = NULL; local 233 struct test_ctx *test_ctx = NULL; local 255 struct test_ctx *test_ctx = NULL; local 273 struct test_ctx *test_ctx = NULL; local 304 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 317 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 330 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 343 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 356 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 369 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 396 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 423 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 445 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 478 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 513 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 546 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 579 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 605 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 638 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 665 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 692 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 726 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 783 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 803 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 823 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 850 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 883 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local 910 struct test_ctx *test_ctx = (struct test_ctx *)(*state); local [all...] |
H A D | test_fqnames.c | 74 struct fqdn_test_ctx *test_ctx; local 78 test_ctx = talloc_zero(global_talloc_context, struct fqdn_test_ctx); 79 assert_non_null(test_ctx); 81 test_ctx->dom = create_test_domain(test_ctx, DOMNAME, FLATNAME, 84 check_leaks_push(test_ctx); 85 *state = test_ctx; 91 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 94 if (test_ctx == NULL) { 99 assert_true(check_leaks_pop(test_ctx) 107 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 139 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 171 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 203 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 244 parse_name_check(struct parse_name_test_ctx *test_ctx, const char *full_name, const char *default_domain, const char exp_ret, const char *exp_name, const char *exp_domain) argument 277 struct parse_name_test_ctx *test_ctx; local 322 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 331 sss_parse_name_check(struct parse_name_test_ctx *test_ctx, const char *input_name, const int exp_ret, const char *exp_name, const char *exp_domain) argument 364 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 380 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 393 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 405 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 420 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local 434 struct fqdn_test_ctx *test_ctx = talloc_get_type(*state, local 452 struct parse_name_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
H A D | test_fo_srv.c | 217 struct test_fo_ctx *test_ctx; local 225 test_ctx = talloc_zero(global_mock_context, 227 assert_non_null(test_ctx); 229 test_ctx->ctx = create_ev_test_ctx(test_ctx); 230 assert_non_null(test_ctx->ctx); 232 ret = resolv_init(test_ctx, test_ctx->ctx->ev, 233 TEST_RESOLV_TIMEOUT, &test_ctx->resolv); 234 assert_non_null(test_ctx 254 struct test_fo_ctx *test_ctx = local 265 struct test_fo_ctx *test_ctx; local 351 test_fo_srv_mock_dns(struct test_fo_ctx *test_ctx, int ttl) argument 375 struct test_fo_ctx *test_ctx = local 390 test_fo_srv_step1(struct test_fo_ctx *test_ctx) argument 403 struct test_fo_ctx *test_ctx = \\ local 428 struct test_fo_ctx *test_ctx = \\ local 452 struct test_fo_ctx *test_ctx = \\ local 476 struct test_fo_ctx *test_ctx = \\ local 501 struct test_fo_ctx *test_ctx = \\ local 528 struct test_fo_ctx *test_ctx = local 535 test_fo_srv_ttl_change_step(struct test_fo_ctx *test_ctx) argument 563 struct test_fo_ctx *test_ctx = \\ local 605 struct test_fo_ctx *test_ctx = \\ local 651 struct test_fo_ctx *test_ctx = \\ local 669 struct test_fo_ctx *test_ctx = local 679 struct test_fo_ctx *test_ctx = local 705 struct test_fo_ctx *test_ctx = local 738 struct test_fo_ctx *test_ctx = \\ local [all...] |
H A D | test_responder_cache_req.c | 259 static void run_user_by_name(struct cache_req_test_ctx *test_ctx, argument 264 run_cache_req_domtype(test_ctx, cache_req_user_by_name_send, 271 static void run_user_by_upn(struct cache_req_test_ctx *test_ctx, argument 276 run_cache_req_domtype(test_ctx, cache_req_user_by_name_send, 283 static void run_user_by_id(struct cache_req_test_ctx *test_ctx, argument 288 run_cache_req(test_ctx, cache_req_user_by_id_send, 293 static void assert_msg_has_shortname(struct cache_req_test_ctx *test_ctx, argument 303 ret = sss_parse_internal_fqname(test_ctx, ldbname, &shortname, NULL); 309 static void check_user(struct cache_req_test_ctx *test_ctx, argument 317 assert_non_null(test_ctx 370 run_group_by_name(struct cache_req_test_ctx *test_ctx, struct sss_domain_info *domain, int cache_refresh_percent, errno_t exp_ret) argument 382 run_group_by_id(struct cache_req_test_ctx *test_ctx, struct sss_domain_info *domain, int cache_refresh_percent, errno_t exp_ret) argument 392 check_group(struct cache_req_test_ctx *test_ctx, struct test_group *group, struct sss_domain_info *exp_dom) argument 421 run_object_by_sid(struct cache_req_test_ctx *test_ctx, struct sss_domain_info *domain, const char *sid, const char **attrs, int cache_refresh_percent, errno_t exp_ret) argument 448 run_object_by_id(struct cache_req_test_ctx *test_ctx, struct sss_domain_info *domain, id_t id, const char **attrs, int cache_refresh_percent, errno_t exp_ret) argument 532 struct cache_req_test_ctx *test_ctx = NULL; local 566 struct cache_req_test_ctx *test_ctx; local 591 struct cache_req_test_ctx *test_ctx = NULL; local 622 struct cache_req_test_ctx *test_ctx = NULL; local 635 struct cache_req_test_ctx *test_ctx = NULL; local 648 struct cache_req_test_ctx *test_ctx; local 664 struct cache_req_test_ctx *test_ctx = NULL; local 709 struct cache_req_test_ctx *test_ctx; local 725 struct cache_req_test_ctx *test_ctx = NULL; local 750 struct cache_req_test_ctx *test_ctx = NULL; local 766 struct cache_req_test_ctx *test_ctx = NULL; local 836 struct cache_req_test_ctx *test_ctx = NULL; local 850 struct cache_req_test_ctx *test_ctx = NULL; local 870 struct cache_req_test_ctx *test_ctx = NULL; local 889 struct cache_req_test_ctx *test_ctx = NULL; local 912 struct cache_req_test_ctx *test_ctx = NULL; local 931 struct cache_req_test_ctx *test_ctx = NULL; local 946 struct cache_req_test_ctx *test_ctx = NULL; local 971 struct cache_req_test_ctx *test_ctx = NULL; local 987 struct cache_req_test_ctx *test_ctx = NULL; local 1004 struct cache_req_test_ctx *test_ctx = NULL; local 1025 struct cache_req_test_ctx *test_ctx = NULL; local 1045 struct cache_req_test_ctx *test_ctx = NULL; local 1065 struct cache_req_test_ctx *test_ctx = NULL; local 1085 struct cache_req_test_ctx *test_ctx = NULL; local 1101 struct cache_req_test_ctx *test_ctx = NULL; local 1126 struct cache_req_test_ctx *test_ctx = NULL; local 1142 struct cache_req_test_ctx *test_ctx = NULL; local 1183 struct cache_req_test_ctx *test_ctx = NULL; local 1221 struct cache_req_test_ctx *test_ctx = NULL; local 1261 struct cache_req_test_ctx *test_ctx = NULL; local 1303 struct cache_req_test_ctx *test_ctx = NULL; local 1343 struct cache_req_test_ctx *test_ctx = NULL; local 1384 struct cache_req_test_ctx *test_ctx = NULL; local 1397 struct cache_req_test_ctx *test_ctx = NULL; local 1410 struct cache_req_test_ctx *test_ctx = NULL; local 1423 struct cache_req_test_ctx *test_ctx = NULL; local 1472 struct cache_req_test_ctx *test_ctx = NULL; local 1486 struct cache_req_test_ctx *test_ctx = NULL; local 1506 struct cache_req_test_ctx *test_ctx = NULL; local 1525 struct cache_req_test_ctx *test_ctx = NULL; local 1541 struct cache_req_test_ctx *test_ctx = NULL; local 1560 struct cache_req_test_ctx *test_ctx = NULL; local 1575 struct cache_req_test_ctx *test_ctx = NULL; local 1599 struct cache_req_test_ctx *test_ctx = NULL; local 1615 struct cache_req_test_ctx *test_ctx = NULL; local 1682 struct cache_req_test_ctx *test_ctx = NULL; local 1696 struct cache_req_test_ctx *test_ctx = NULL; local 1716 struct cache_req_test_ctx *test_ctx = NULL; local 1735 struct cache_req_test_ctx *test_ctx = NULL; local 1758 struct cache_req_test_ctx *test_ctx = NULL; local 1777 struct cache_req_test_ctx *test_ctx = NULL; local 1792 struct cache_req_test_ctx *test_ctx = NULL; local 1816 struct cache_req_test_ctx *test_ctx = NULL; local 1832 struct cache_req_test_ctx *test_ctx = NULL; local 1874 struct cache_req_test_ctx *test_ctx = NULL; local 1912 struct cache_req_test_ctx *test_ctx = NULL; local 1952 struct cache_req_test_ctx *test_ctx = NULL; local 1994 struct cache_req_test_ctx *test_ctx = NULL; local 2034 struct cache_req_test_ctx *test_ctx = NULL; local 2075 struct cache_req_test_ctx *test_ctx = NULL; local 2088 struct cache_req_test_ctx *test_ctx = NULL; local 2137 struct cache_req_test_ctx *test_ctx = NULL; local 2151 struct cache_req_test_ctx *test_ctx = NULL; local 2171 struct cache_req_test_ctx *test_ctx = NULL; local 2190 struct cache_req_test_ctx *test_ctx = NULL; local 2206 struct cache_req_test_ctx *test_ctx = NULL; local 2225 struct cache_req_test_ctx *test_ctx = NULL; local 2251 struct cache_req_test_ctx *test_ctx = NULL; local 2293 struct cache_req_test_ctx *test_ctx = NULL; local 2355 struct cache_req_test_ctx *test_ctx = NULL; local 2397 struct cache_req_test_ctx *test_ctx = NULL; local 2426 struct cache_req_test_ctx *test_ctx = NULL; local 2471 struct cache_req_test_ctx *test_ctx = NULL; local 2512 struct cache_req_test_ctx *test_ctx = NULL; local 2580 struct cache_req_test_ctx *test_ctx = NULL; local 2609 struct cache_req_test_ctx *test_ctx = NULL; local 2642 struct cache_req_test_ctx *test_ctx = NULL; local 2658 struct cache_req_test_ctx *test_ctx = NULL; local 2680 struct cache_req_test_ctx *test_ctx = NULL; local 2701 struct cache_req_test_ctx *test_ctx = NULL; local 2719 struct cache_req_test_ctx *test_ctx = NULL; local 2740 struct cache_req_test_ctx *test_ctx = NULL; local 2757 struct cache_req_test_ctx *test_ctx = NULL; local 2782 struct cache_req_test_ctx *test_ctx = NULL; local 2798 struct cache_req_test_ctx *test_ctx = NULL; local 2814 struct cache_req_test_ctx *test_ctx = NULL; local 2836 struct cache_req_test_ctx *test_ctx = NULL; local 2857 struct cache_req_test_ctx *test_ctx = NULL; local 2875 struct cache_req_test_ctx *test_ctx = NULL; local 2896 struct cache_req_test_ctx *test_ctx = NULL; local 2913 struct cache_req_test_ctx *test_ctx = NULL; local 2938 struct cache_req_test_ctx *test_ctx = NULL; local 2954 struct cache_req_test_ctx *test_ctx = NULL; local 2969 struct cache_req_test_ctx *test_ctx = NULL; local 2990 struct cache_req_test_ctx *test_ctx = NULL; local 3010 struct cache_req_test_ctx *test_ctx = NULL; local 3040 struct cache_req_test_ctx *test_ctx = NULL; local 3060 struct cache_req_test_ctx *test_ctx = NULL; local 3076 struct cache_req_test_ctx *test_ctx = NULL; local 3102 struct cache_req_test_ctx *test_ctx = NULL; local 3119 struct cache_req_test_ctx *test_ctx = NULL; local 3134 struct cache_req_test_ctx *test_ctx = NULL; local 3155 struct cache_req_test_ctx *test_ctx = NULL; local 3175 struct cache_req_test_ctx *test_ctx = NULL; local 3207 struct cache_req_test_ctx *test_ctx = NULL; local 3227 struct cache_req_test_ctx *test_ctx = NULL; local 3243 struct cache_req_test_ctx *test_ctx = NULL; local 3269 struct cache_req_test_ctx *test_ctx = NULL; local 3286 struct cache_req_test_ctx *test_ctx = NULL; local 3328 struct cache_req_test_ctx *test_ctx = NULL; local 3367 struct cache_req_test_ctx *test_ctx = NULL; local 3408 struct cache_req_test_ctx *test_ctx = NULL; local 3451 struct cache_req_test_ctx *test_ctx = NULL; local 3492 struct cache_req_test_ctx *test_ctx = NULL; local 3534 struct cache_req_test_ctx *test_ctx = NULL; local 3550 struct cache_req_test_ctx *test_ctx = NULL; local 3600 struct cache_req_test_ctx *test_ctx = NULL; local 3642 struct cache_req_test_ctx *test_ctx = NULL; local 3681 struct cache_req_test_ctx *test_ctx = NULL; local 3722 struct cache_req_test_ctx *test_ctx = NULL; local 3765 struct cache_req_test_ctx *test_ctx = NULL; local 3806 struct cache_req_test_ctx *test_ctx = NULL; local 3848 struct cache_req_test_ctx *test_ctx = NULL; local 3864 struct cache_req_test_ctx *test_ctx = NULL; local [all...] |
H A D | test_ldap_id_cleanup.c | 52 struct sysdb_test_ctx *test_ctx; local 64 test_ctx = talloc_zero(global_talloc_context, struct sysdb_test_ctx); 65 assert_non_null(test_ctx); 70 test_ctx->ev = tevent_context_init(test_ctx); 71 assert_non_null(test_ctx->ev); 73 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 78 ret = confdb_init(test_ctx, &test_ctx->confdb, conf_db); 82 ret = confdb_add_param(test_ctx 117 struct sysdb_test_ctx *test_ctx; local 146 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 194 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, 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_inotify.c | 184 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(ptr, local 190 f = fopen(test_ctx->filename, "w"); 192 test_ctx->tctx->error = errno; 193 test_ctx->tctx->done = true; 197 fprintf(f, "%s\n", test_ctx->filename); 202 static void check_and_set_threshold(struct inotify_test_ctx *test_ctx, argument 205 if (test_ctx->exp_flags != 0 && !(test_ctx->exp_flags & flags)) { 209 test_ctx->ncb++; 216 struct inotify_test_ctx *test_ctx local 227 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(pvt, local 242 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(*state, local 286 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(ptr, local 326 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(*state, local 359 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(ptr, local 387 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(*state, local 418 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(*state, local 453 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(ptr, local 472 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(ptr, local 488 struct inotify_test_ctx *test_ctx = talloc_get_type_abort(*state, local [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...] |
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_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_krb5_wait_queue.c | 131 struct test_krb5_wait_queue *test_ctx; local 133 test_ctx = talloc_zero(global_talloc_context, 135 assert_non_null(test_ctx); 137 test_ctx->tctx = create_ev_test_ctx(test_ctx); 138 assert_non_null(test_ctx); 140 test_ctx->be_ctx = mock_be_ctx(test_ctx, test_ctx->tctx); 141 assert_non_null(test_ctx 155 struct test_krb5_wait_queue *test_ctx = local 162 test_krb5_wait_mock(struct test_krb5_wait_queue *test_ctx, const char *username, time_t us_delay, int ret, int pam_status, int dp_err) argument 178 test_krb5_wait_mock_success(struct test_krb5_wait_queue *test_ctx, const char *username) argument 190 struct test_krb5_wait_queue *test_ctx = local 209 struct test_krb5_wait_queue *test_ctx = \\ local 229 struct test_krb5_wait_queue *test_ctx = local 252 struct test_krb5_wait_queue *test_ctx = \\ local 276 struct test_krb5_wait_queue *test_ctx = local 299 struct test_krb5_wait_queue *test_ctx = \\ local [all...] |
H A D | test_kcm_queue.c | 133 struct test_ctx { struct 147 struct test_ctx *tctx; 149 tctx = talloc_zero(NULL, struct test_ctx); 164 struct test_ctx *tctx = talloc_get_type(*state, struct test_ctx); 171 struct test_ctx *test_ctx = tevent_req_callback_data(req, local 172 struct test_ctx); 175 test_ctx->error = timed_request_recv(req, &req_id); 177 if (test_ctx 203 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 232 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local 276 struct test_ctx *test_ctx = talloc_get_type(*state, struct test_ctx); local [all...] |
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_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_sdap.c | 251 struct parse_test_ctx *test_ctx; local 255 test_ctx = talloc_zero(global_talloc_context, struct parse_test_ctx); 256 assert_non_null(test_ctx); 258 check_leaks_push(test_ctx); 259 *state = test_ctx; 265 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 268 assert_true(check_leaks_pop(test_ctx) == true); 269 talloc_free(test_ctx); 278 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 304 ret = sdap_copy_map(test_ctx, ipa_user_ma 352 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 395 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 430 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 482 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 528 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 555 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 592 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 627 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 662 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 695 struct parse_test_ctx *test_ctx = talloc_get_type_abort(*state, local 731 struct copy_map_entry_test_ctx *test_ctx; local 754 struct copy_map_entry_test_ctx *test_ctx = talloc_get_type_abort(*state, local 762 copy_uuid(struct copy_map_entry_test_ctx *test_ctx) argument 775 struct copy_map_entry_test_ctx *test_ctx = talloc_get_type_abort(*state, local 790 struct copy_map_entry_test_ctx *test_ctx = talloc_get_type_abort(*state, local 825 struct test_sdap_inherit_ctx *test_ctx; local 853 struct test_sdap_inherit_ctx *test_ctx = \\ local 863 struct test_sdap_inherit_ctx *test_ctx = \\ local 882 struct test_sdap_inherit_ctx *test_ctx = \\ local 903 struct test_sdap_inherit_ctx *test_ctx = \\ local 924 struct test_sdap_inherit_ctx *test_ctx = \\ local 1004 struct copy_dom_obj_test_ctx *test_ctx; local 1052 struct copy_dom_obj_test_ctx *test_ctx = talloc_get_type_abort(*state, local 1061 struct copy_dom_obj_test_ctx *test_ctx = talloc_get_type_abort(*state, local 1104 struct copy_dom_obj_test_ctx *test_ctx = talloc_get_type_abort(*state, local [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_common.c | 80 struct ad_sysdb_test_ctx *test_ctx; local 84 test_ctx = talloc_zero(global_talloc_context, 86 assert_non_null(test_ctx); 90 test_ctx->tctx = create_multidom_test_ctx(test_ctx, TESTS_PATH, 93 assert_non_null(test_ctx->tctx); 95 *state = test_ctx; 101 struct ad_sysdb_test_ctx *test_ctx = local 105 talloc_free(test_ctx); 113 struct ad_sysdb_test_ctx *test_ctx local 217 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 263 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 311 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 394 struct ad_common_test_ctx *test_ctx; local 423 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 439 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 507 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 572 struct ad_common_test_ctx *test_ctx; local 635 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 677 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 692 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 744 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 773 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 807 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
H A D | test_ipa_subdomains_server.c | 247 static void add_test_subdomains(struct trust_test_ctx *test_ctx, argument 253 ret = sysdb_subdomain_store(test_ctx->tctx->sysdb, 260 ret = sysdb_subdomain_store(test_ctx->tctx->sysdb, 267 ret = sysdb_update_subdomains(test_ctx->tctx->dom, test_ctx->tctx->confdb); 272 static void add_test_2way_subdomains(struct trust_test_ctx *test_ctx) argument 274 return add_test_subdomains(test_ctx, 0x1 | 0x2); 277 static void add_test_1way_subdomains(struct trust_test_ctx *test_ctx) argument 279 return add_test_subdomains(test_ctx, 0x1); 285 struct trust_test_ctx *test_ctx; local 324 struct trust_test_ctx *test_ctx = local 348 struct trust_test_ctx *test_ctx = local 368 struct trust_test_ctx *test_ctx = \\ local 454 struct trust_test_ctx *test_ctx = \\ local 523 struct trust_test_ctx *test_ctx = local 531 struct trust_test_ctx *test_ctx = local 593 struct dir_test_ctx *test_ctx; local 611 struct dir_test_ctx *test_ctx = local 619 test_trust_dir_getset(struct dir_test_ctx *test_ctx, uint32_t dir_in) argument 635 struct dir_test_ctx *test_ctx = local 643 struct dir_test_ctx *test_ctx = local 651 struct dir_test_ctx *test_ctx = local 661 struct dir_test_ctx *test_ctx = local 679 struct dir_test_ctx *test_ctx = local 697 struct trust_test_ctx *test_ctx = local 726 struct trust_test_ctx *test_ctx = \\ local 778 struct trust_test_ctx *test_ctx = local 811 struct trust_test_ctx *test_ctx = local 847 struct trust_test_ctx *test_ctx = local 876 struct trust_test_ctx *test_ctx = \\ local 890 struct trust_test_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_sysdb_views.c | 60 struct sysdb_test_ctx *test_ctx; local 72 test_ctx = talloc_zero(global_talloc_context, struct sysdb_test_ctx); 73 assert_non_null(test_ctx); 78 test_ctx->ev = tevent_context_init(test_ctx); 79 assert_non_null(test_ctx->ev); 81 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 86 ret = confdb_init(test_ctx, &test_ctx->confdb, conf_db); 90 ret = confdb_add_param(test_ctx 126 struct sysdb_test_ctx *test_ctx; local 139 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 158 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 226 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 294 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 322 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 354 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 388 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 455 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 520 enum_test_user_override(struct sysdb_test_ctx *test_ctx, const char *name) argument 554 enum_test_add_users(struct sysdb_test_ctx *test_ctx, const char *usernames[]) argument 580 enum_test_del_users(struct sysdb_test_ctx *test_ctx, const char *usernames[]) argument 603 struct sysdb_test_ctx *test_ctx; local 676 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 698 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 709 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 720 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 765 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 805 enum_test_group_override(struct sysdb_test_ctx *test_ctx, const char *name, unsigned override_gid) argument 838 enum_test_add_groups(struct sysdb_test_ctx *test_ctx, const char *groupnames[]) argument 879 struct sysdb_test_ctx *test_ctx; local 894 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 940 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 951 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 962 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 1006 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, 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.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...] |
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...] |
/sssd-io/src/tests/ |
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...] |