Lines Matching defs:test_request
52 static struct auth_request test_request;
61 test_assert(request == &test_request);
101 tab = auth_request_get_var_expand_table(&test_request, test_escape);
124 test_request.userdb_lookup = FALSE;
125 test_request.secured = AUTH_REQUEST_SECURED_NONE;
126 test_request.valid_client_cert = FALSE;
128 auth_request_get_var_expand_table(&test_request, test_escape),
132 test_request.userdb_lookup = TRUE;
133 test_request.secured = AUTH_REQUEST_SECURED;
134 test_request.valid_client_cert = TRUE;
138 auth_request_get_var_expand_table(&test_request, test_escape),
164 auth_request_get_var_expand_table(&test_request, test_escape),
189 test_request.user = t_strdup_noconst(tests[i].username);
192 auth_request_get_var_expand_table(&test_request, test_escape),
196 test_request.user = default_test_request.user;
208 test_request.extra_fields = auth_fields_init(pool);
209 test_request.userdb_reply = auth_fields_init(pool);
211 auth_fields_add(test_request.extra_fields, "pkey1", "-pval1", 0);
212 auth_fields_add(test_request.extra_fields, "pkey2", "", 0);
214 auth_fields_add(test_request.userdb_reply, "ukey1", "-uval1", 0);
215 auth_fields_add(test_request.userdb_reply, "ukey2", "", 0);
222 &test_request, test_escape, &value, &error) == 1);
230 &test_request, test_escape, &value, &error) == 1);
244 test_request = default_test_request;