Lines Matching refs:test_ctx

54     struct certmap_test_ctx *test_ctx;
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->tctx, struct sdap_id_ctx);
77 assert_non_null(test_ctx->id_ctx);
79 test_ctx->id_ctx->opts = talloc_zero(test_ctx->tctx, struct sdap_options);
80 assert_non_null(test_ctx->id_ctx->opts);
82 test_ctx->id_ctx->be = talloc_zero(test_ctx->tctx, struct be_ctx);
83 assert_non_null(test_ctx->id_ctx->be);
84 test_ctx->id_ctx->be->domain = test_ctx->tctx->dom;
86 *state = test_ctx;
92 struct certmap_test_ctx *test_ctx =
96 talloc_free(test_ctx->tctx);
97 assert_true(check_leaks_pop(test_ctx));
98 talloc_free(test_ctx);
106 struct certmap_test_ctx *test_ctx = talloc_get_type(*state,
109 ret = sdap_init_certmap(test_ctx, test_ctx->id_ctx);
112 talloc_free(test_ctx->id_ctx->opts->sdap_certmap_ctx);
118 struct certmap_test_ctx *test_ctx = talloc_get_type(*state,
125 ret = sdap_init_certmap(test_ctx, test_ctx->id_ctx);
129 test_ctx->id_ctx->opts->sdap_certmap_ctx);
132 talloc_free(test_ctx->id_ctx->opts->sdap_certmap_ctx);
138 struct certmap_test_ctx *test_ctx = talloc_get_type(*state,
143 ret = sdap_init_certmap(test_ctx, test_ctx->id_ctx);
146 sdap_certmap_ref = test_ctx->id_ctx->opts->sdap_certmap_ctx;
149 ret = sdap_init_certmap(test_ctx, test_ctx->id_ctx);
153 test_ctx->id_ctx->opts->sdap_certmap_ctx);
157 talloc_free(test_ctx->id_ctx->opts->sdap_certmap_ctx);
164 struct certmap_test_ctx *test_ctx = talloc_get_type(*state,
169 ret = sdap_init_certmap(test_ctx, test_ctx->id_ctx);
172 sdap_certmap_ref = test_ctx->id_ctx->opts->sdap_certmap_ctx;
178 test_ctx->id_ctx->opts->sdap_certmap_ctx);
184 test_ctx->id_ctx->opts->sdap_certmap_ctx);
190 test_ctx->id_ctx->opts->sdap_certmap_ctx);
194 talloc_free(test_ctx->id_ctx->opts->sdap_certmap_ctx);