Lines Matching refs:test_ctx
49 struct sysdb_test_ctx *test_ctx;
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, &test_ctx->confdb, conf_db);
92 talloc_free(test_ctx);
97 ret = confdb_add_param(test_ctx->confdb, true,
101 talloc_free(test_ctx);
106 ret = confdb_add_param(test_ctx->confdb, true,
110 talloc_free(test_ctx);
115 ret = confdb_add_param(test_ctx->confdb, true,
119 talloc_free(test_ctx);
124 ret = confdb_add_param(test_ctx->confdb, true,
128 talloc_free(test_ctx);
132 ret = sssd_domain_init(test_ctx, test_ctx->confdb, "local",
133 TESTS_PATH, &test_ctx->domain);
136 talloc_free(test_ctx);
139 test_ctx->sysdb = test_ctx->domain->sysdb;
141 *ctx = test_ctx;
204 struct sysdb_test_ctx *test_ctx;
208 ret = setup_sysdb_tests(&test_ctx);
214 data = talloc_zero(test_ctx, struct test_data);
217 talloc_free(test_ctx);
221 data->ctx = test_ctx;
222 data->ev = test_ctx->ev;
223 data->hostname = talloc_strdup(test_ctx, TEST_HOSTNAME);
226 talloc_free(test_ctx);
230 data->attrs = sysdb_new_attrs(test_ctx);
233 talloc_free(test_ctx);
240 talloc_free(test_ctx);
246 struct sysdb_test_ctx *test_ctx;
250 ret = setup_sysdb_tests(&test_ctx);
256 data = talloc_zero(test_ctx, struct test_data);
262 data->ctx = test_ctx;
263 data->ev = test_ctx->ev;
264 data->hostname = talloc_strdup(test_ctx, TEST_HOSTNAME);
267 talloc_free(test_ctx);
274 talloc_free(test_ctx);
280 struct sysdb_test_ctx *test_ctx;
284 ret = setup_sysdb_tests(&test_ctx);
290 data = talloc_zero(test_ctx, struct test_data);
293 talloc_free(test_ctx);
297 data->ctx = test_ctx;
298 data->ev = test_ctx->ev;
299 data->hostname = talloc_strdup(test_ctx, "nonexistent_host");
302 talloc_free(test_ctx);
309 talloc_free(test_ctx);
316 struct sysdb_test_ctx *test_ctx;
320 ret = setup_sysdb_tests(&test_ctx);
326 data = talloc_zero(test_ctx, struct test_data);
329 talloc_free(test_ctx);
333 data->ctx = test_ctx;
334 data->ev = test_ctx->ev;
335 data->hostname = talloc_strdup(test_ctx, TEST_HOSTNAME);
338 talloc_free(test_ctx);
342 data->attrs = sysdb_new_attrs(test_ctx);
345 talloc_free(test_ctx);
352 talloc_free(test_ctx);
359 talloc_free(test_ctx);