/sssd/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/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_sss_idmap.c | 49 struct test_ctx { struct 66 struct test_ctx *test_ctx; local 71 test_ctx = talloc_zero(global_talloc_context, struct test_ctx); 72 assert_non_null(test_ctx); 74 check_leaks_push(test_ctx); 76 test_ctx->mem_idmap = talloc_new(test_ctx); 77 assert_non_null(test_ctx 87 setup_ranges(struct test_ctx *test_ctx, bool external_mapping, bool second_domain, bool sec_slices) argument 134 setup_ranges_2922(struct test_ctx *test_ctx) argument 166 struct test_ctx *test_ctx; local 179 struct test_ctx *test_ctx; local 192 struct test_ctx *test_ctx; local 205 struct test_ctx *test_ctx; local 218 struct test_ctx *test_ctx; local 232 struct test_ctx *test_ctx; local 248 struct test_ctx *test_ctx; local 312 struct test_ctx *test_ctx; local 360 struct test_ctx *test_ctx; local 405 struct test_ctx *test_ctx; local 447 struct test_ctx *test_ctx; local 483 struct test_ctx *test_ctx; local 513 struct test_ctx *test_ctx; local 552 struct test_ctx *test_ctx; local [all...] |
H A D | test_responder_cache_req.c | 221 static void run_user_by_name(struct cache_req_test_ctx *test_ctx, argument 226 run_cache_req(test_ctx, cache_req_user_by_name_send, 231 static void run_user_by_upn(struct cache_req_test_ctx *test_ctx, argument 236 run_cache_req(test_ctx, cache_req_user_by_name_send, 241 static void run_user_by_id(struct cache_req_test_ctx *test_ctx, argument 246 run_cache_req(test_ctx, cache_req_user_by_id_send, 251 static void assert_msg_has_shortname(struct cache_req_test_ctx *test_ctx, argument 261 ret = sss_parse_internal_fqname(test_ctx, ldbname, &shortname, NULL); 267 static void check_user(struct cache_req_test_ctx *test_ctx, argument 275 assert_non_null(test_ctx 328 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 338 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 348 check_group(struct cache_req_test_ctx *test_ctx, struct test_group *group, struct sss_domain_info *exp_dom) argument 377 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 440 struct cache_req_test_ctx *test_ctx = NULL; local 469 struct cache_req_test_ctx *test_ctx; local 485 struct cache_req_test_ctx *test_ctx = NULL; local 516 struct cache_req_test_ctx *test_ctx; local 533 struct cache_req_test_ctx *test_ctx = NULL; local 558 struct cache_req_test_ctx *test_ctx = NULL; local 574 struct cache_req_test_ctx *test_ctx = NULL; local 642 struct cache_req_test_ctx *test_ctx = NULL; local 656 struct cache_req_test_ctx *test_ctx = NULL; local 676 struct cache_req_test_ctx *test_ctx = NULL; local 695 struct cache_req_test_ctx *test_ctx = NULL; local 718 struct cache_req_test_ctx *test_ctx = NULL; local 737 struct cache_req_test_ctx *test_ctx = NULL; local 752 struct cache_req_test_ctx *test_ctx = NULL; local 777 struct cache_req_test_ctx *test_ctx = NULL; local 793 struct cache_req_test_ctx *test_ctx = NULL; local 810 struct cache_req_test_ctx *test_ctx = NULL; local 831 struct cache_req_test_ctx *test_ctx = NULL; local 851 struct cache_req_test_ctx *test_ctx = NULL; local 871 struct cache_req_test_ctx *test_ctx = NULL; local 891 struct cache_req_test_ctx *test_ctx = NULL; local 907 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 960 struct cache_req_test_ctx *test_ctx = NULL; local 980 struct cache_req_test_ctx *test_ctx = NULL; local 999 struct cache_req_test_ctx *test_ctx = NULL; local 1015 struct cache_req_test_ctx *test_ctx = NULL; local 1034 struct cache_req_test_ctx *test_ctx = NULL; local 1049 struct cache_req_test_ctx *test_ctx = NULL; local 1073 struct cache_req_test_ctx *test_ctx = NULL; local 1089 struct cache_req_test_ctx *test_ctx = NULL; local 1155 struct cache_req_test_ctx *test_ctx = NULL; local 1169 struct cache_req_test_ctx *test_ctx = NULL; local 1189 struct cache_req_test_ctx *test_ctx = NULL; local 1208 struct cache_req_test_ctx *test_ctx = NULL; local 1231 struct cache_req_test_ctx *test_ctx = NULL; local 1250 struct cache_req_test_ctx *test_ctx = NULL; local 1265 struct cache_req_test_ctx *test_ctx = NULL; local 1288 struct cache_req_test_ctx *test_ctx = NULL; local 1303 struct cache_req_test_ctx *test_ctx = NULL; local 1317 struct cache_req_test_ctx *test_ctx = NULL; local 1337 struct cache_req_test_ctx *test_ctx = NULL; local 1356 struct cache_req_test_ctx *test_ctx = NULL; local 1372 struct cache_req_test_ctx *test_ctx = NULL; local 1391 struct cache_req_test_ctx *test_ctx = NULL; local 1419 struct cache_req_test_ctx *test_ctx = NULL; local 1460 struct cache_req_test_ctx *test_ctx = NULL; local 1521 struct cache_req_test_ctx *test_ctx = NULL; local 1562 struct cache_req_test_ctx *test_ctx = NULL; local 1590 struct cache_req_test_ctx *test_ctx = NULL; local 1636 struct cache_req_test_ctx *test_ctx = NULL; local 1676 struct cache_req_test_ctx *test_ctx = NULL; local 1743 struct cache_req_test_ctx *test_ctx = NULL; local 1771 struct cache_req_test_ctx *test_ctx = NULL; local 1803 struct cache_req_test_ctx *test_ctx = NULL; local 1819 struct cache_req_test_ctx *test_ctx = NULL; local 1841 struct cache_req_test_ctx *test_ctx = NULL; local 1862 struct cache_req_test_ctx *test_ctx = NULL; local 1880 struct cache_req_test_ctx *test_ctx = NULL; local 1901 struct cache_req_test_ctx *test_ctx = NULL; local 1918 struct cache_req_test_ctx *test_ctx = NULL; local 1943 struct cache_req_test_ctx *test_ctx = NULL; local 1959 struct cache_req_test_ctx *test_ctx = NULL; local 1975 struct cache_req_test_ctx *test_ctx = NULL; local 1997 struct cache_req_test_ctx *test_ctx = NULL; local 2018 struct cache_req_test_ctx *test_ctx = NULL; local 2036 struct cache_req_test_ctx *test_ctx = NULL; local 2057 struct cache_req_test_ctx *test_ctx = NULL; local 2074 struct cache_req_test_ctx *test_ctx = NULL; local 2099 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_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_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 | 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 | 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 87 test_ctx = talloc_zero(global_talloc_context, 89 assert_non_null(test_ctx); 93 test_ctx->tctx = create_multidom_test_ctx(test_ctx, TESTS_PATH, 96 assert_non_null(test_ctx->tctx); 98 *state = test_ctx; 104 struct ad_sysdb_test_ctx *test_ctx = local 108 talloc_free(test_ctx); 116 struct ad_sysdb_test_ctx *test_ctx local 220 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 266 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 314 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 415 struct ad_common_test_ctx *test_ctx; local 444 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 460 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 524 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 584 struct ad_common_test_ctx *test_ctx; local 642 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 684 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 699 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 751 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 780 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local 814 struct ad_common_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
H A D | test_ipa_subdomains_server.c | 246 static void add_test_subdomains(struct trust_test_ctx *test_ctx, argument 252 ret = sysdb_subdomain_store(test_ctx->tctx->sysdb, 259 ret = sysdb_subdomain_store(test_ctx->tctx->sysdb, 266 ret = sysdb_update_subdomains(test_ctx->tctx->dom); 271 static void add_test_2way_subdomains(struct trust_test_ctx *test_ctx) argument 273 return add_test_subdomains(test_ctx, 0x1 | 0x2); 276 static void add_test_1way_subdomains(struct trust_test_ctx *test_ctx) argument 278 return add_test_subdomains(test_ctx, 0x1); 284 struct trust_test_ctx *test_ctx; local 289 test_ctx 323 struct trust_test_ctx *test_ctx = local 347 struct trust_test_ctx *test_ctx = local 367 struct trust_test_ctx *test_ctx = \\ local 453 struct trust_test_ctx *test_ctx = \\ local 512 struct trust_test_ctx *test_ctx = local 520 struct trust_test_ctx *test_ctx = local 574 struct dir_test_ctx *test_ctx; local 592 struct dir_test_ctx *test_ctx = local 600 test_trust_dir_getset(struct dir_test_ctx *test_ctx, uint32_t dir_in) argument 616 struct dir_test_ctx *test_ctx = local 624 struct dir_test_ctx *test_ctx = local 632 struct dir_test_ctx *test_ctx = local 642 struct dir_test_ctx *test_ctx = local 660 struct dir_test_ctx *test_ctx = local 678 struct trust_test_ctx *test_ctx = local 707 struct trust_test_ctx *test_ctx = \\ local 749 struct trust_test_ctx *test_ctx = local 782 struct trust_test_ctx *test_ctx = local 818 struct trust_test_ctx *test_ctx = local 847 struct trust_test_ctx *test_ctx = \\ local 861 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 | 59 struct sysdb_test_ctx *test_ctx; local 71 test_ctx = talloc_zero(global_talloc_context, struct sysdb_test_ctx); 72 assert_non_null(test_ctx); 77 test_ctx->ev = tevent_context_init(test_ctx); 78 assert_non_null(test_ctx->ev); 80 conf_db = talloc_asprintf(test_ctx, "%s/%s", TESTS_PATH, TEST_CONF_FILE); 85 ret = confdb_init(test_ctx, &test_ctx->confdb, conf_db); 89 ret = confdb_add_param(test_ctx 125 struct sysdb_test_ctx *test_ctx; local 138 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 157 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 225 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 293 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 321 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 353 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 387 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 454 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 519 enum_test_user_override(struct sysdb_test_ctx *test_ctx, const char *name) argument 553 enum_test_add_users(struct sysdb_test_ctx *test_ctx, const char *usernames[]) argument 579 enum_test_del_users(struct sysdb_test_ctx *test_ctx, const char *usernames[]) argument 602 struct sysdb_test_ctx *test_ctx; local 650 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 671 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 682 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 693 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 737 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 776 enum_test_group_override(struct sysdb_test_ctx *test_ctx, const char *name, unsigned override_gid) argument 809 enum_test_add_groups(struct sysdb_test_ctx *test_ctx, const char *groupnames[]) argument 850 struct sysdb_test_ctx *test_ctx; local 865 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 910 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 921 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 932 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local 975 struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state, local [all...] |
H A D | test_nested_groups.c | 138 struct nested_groups_test_ctx *test_ctx = NULL; local 144 test_ctx = talloc_get_type_abort(*state, struct nested_groups_test_ctx); 146 rootgroup = mock_sysdb_group_rfc2307bis(test_ctx, GROUP_BASE_DN, 1000, 157 req = sdap_nested_group_send(req_mem_ctx, test_ctx->tctx->ev, 158 test_ctx->sdap_domain, test_ctx->sdap_opts, 159 test_ctx->sdap_handle, rootgroup); 161 tevent_req_set_callback(req, nested_groups_test_done, test_ctx); 163 ret = test_ev_loop(test_ctx->tctx); 170 assert_int_equal(test_ctx 180 struct nested_groups_test_ctx *test_ctx = NULL; local 242 struct nested_groups_test_ctx *test_ctx = NULL; local 303 struct nested_groups_test_ctx *test_ctx = NULL; local 367 struct nested_groups_test_ctx *test_ctx = NULL; local 429 struct nested_groups_test_ctx *test_ctx = NULL; local 525 struct nested_groups_test_ctx *test_ctx = NULL; local 593 struct nested_groups_test_ctx *test_ctx = NULL; local 822 struct nested_groups_test_ctx *test_ctx; local 843 struct nested_groups_test_ctx *test_ctx = talloc_get_type(*state, local 901 mock_group_with_ext_members(struct nested_groups_test_ctx *test_ctx, const char *name, gid_t gid, const char *ext_members[]) argument 945 nested_group_test_save_group(struct nested_groups_test_ctx *test_ctx, struct sysdb_attrs *ldap_attrs, struct group *gr) argument 991 nested_group_test_link_group(struct nested_groups_test_ctx *test_ctx, const char *shortname_parent, const char *shortname_child) argument 1020 assert_sysdb_name_equal(struct nested_groups_test_ctx *test_ctx, struct ldb_message *msg, const char *shortname) argument 1036 assert_member_dn(struct nested_groups_test_ctx *test_ctx, const char *member_name, const char *exp_member_name) argument 1058 struct nested_groups_test_ctx *test_ctx = talloc_get_type(*state, local [all...] |
/sssd/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/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...] |
H A D | resolv-tests.c | 63 struct resolv_test_ctx *test_ctx; local 66 test_ctx = talloc_zero(global_talloc_context, struct resolv_test_ctx); 67 if (test_ctx == NULL) { 72 test_ctx->ev = tevent_context_init(test_ctx); 73 if (test_ctx->ev == NULL) { 75 talloc_free(test_ctx); 79 ret = resolv_init(test_ctx, test_ctx->ev, timeout, &test_ctx 267 struct resolv_test_ctx *test_ctx = tevent_req_callback_data(req, local 299 struct resolv_test_ctx *test_ctx; local 337 struct resolv_test_ctx *test_ctx = tevent_req_callback_data(req, local 369 struct resolv_test_ctx *test_ctx; local 406 struct resolv_test_ctx *test_ctx; local 430 struct resolv_test_ctx *test_ctx; local 464 struct resolv_test_ctx *test_ctx; local 536 struct resolv_test_ctx *test_ctx; local 569 struct resolv_test_ctx *test_ctx; local 594 struct resolv_test_ctx *test_ctx; local 641 struct resolv_test_ctx *test_ctx; local 701 struct resolv_test_ctx *test_ctx; local 788 struct resolv_test_ctx *test_ctx; local 851 struct resolv_test_ctx *test_ctx; local 903 struct resolv_test_ctx *test_ctx; local 926 struct resolv_test_ctx *test_ctx; local [all...] |