Lines Matching defs:test_ctx
71 struct test_sdap_access_rhost_ctx *test_ctx;
82 test_ctx = talloc(mem_ctx, struct test_sdap_access_rhost_ctx);
83 assert_non_null(test_ctx);
86 user_no_rhost = ldb_msg_new(test_ctx);
91 user_allow_somehost = ldb_msg_new(test_ctx);
98 user_deny_somehost = ldb_msg_new(test_ctx);
105 user_allow_all = ldb_msg_new(test_ctx);
112 user_allow_all_deny_somehost = ldb_msg_new(test_ctx);
122 user_allow_all_allow_somehost_deny_somehost = ldb_msg_new(test_ctx);
135 test_ctx->user_no_rhost = user_no_rhost;
136 test_ctx->user_allow_somehost = user_allow_somehost;
137 test_ctx->user_deny_somehost = user_deny_somehost;
138 test_ctx->user_allow_all = user_allow_all;
139 test_ctx->user_allow_all_deny_somehost = user_allow_all_deny_somehost;
140 test_ctx->user_allow_all_allow_somehost_deny_somehost = \
143 *state = test_ctx;
150 struct test_sdap_access_rhost_ctx *test_ctx;
152 test_ctx = talloc_get_type(*state, struct test_sdap_access_rhost_ctx);
153 assert_non_null(test_ctx);
155 talloc_free(test_ctx);
162 struct test_sdap_access_rhost_ctx *test_ctx;
165 test_ctx = talloc_get_type(*state, struct test_sdap_access_rhost_ctx);
166 assert_non_null(test_ctx);
181 ret = sdap_access_rhost(test_ctx->user_no_rhost, NULL);
185 ret = sdap_access_rhost(test_ctx->user_no_rhost, pam_rhost_mock_empty);
189 ret = sdap_access_rhost(test_ctx->user_no_rhost, pam_rhost_mock_somehost);
193 ret = sdap_access_rhost(test_ctx->user_allow_somehost,
198 ret = sdap_access_rhost(test_ctx->user_deny_somehost,
203 ret = sdap_access_rhost(test_ctx->user_allow_all,
208 ret = sdap_access_rhost(test_ctx->user_allow_all_deny_somehost,
215 test_ctx->user_allow_all_allow_somehost_deny_somehost,
220 ret = sdap_access_rhost(test_ctx->user_no_rhost,
225 ret = sdap_access_rhost(test_ctx->user_allow_somehost,
230 ret = sdap_access_rhost(test_ctx->user_deny_somehost,
235 ret = sdap_access_rhost(test_ctx->user_allow_all,
240 ret = sdap_access_rhost(test_ctx->user_allow_all_deny_somehost,
247 test_ctx->user_allow_all_allow_somehost_deny_somehost,