1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/***************************************************************************
* Copyright (C) 2017-2025 ZmartZone Holding BV
* All rights reserved.
*
* DISCLAIMER OF WARRANTIES:
*
* THE SOFTWARE PROVIDED HEREUNDER IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
* ANY WARRANTIES OR REPRESENTATIONS EXPRESS, IMPLIED OR STATUTORY; INCLUDING,
* WITHOUT LIMITATION, WARRANTIES OF QUALITY, PERFORMANCE, NONINFRINGEMENT,
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NOR ARE THERE ANY
* WARRANTIES CREATED BY A COURSE OR DEALING, COURSE OF PERFORMANCE OR TRADE
* USAGE. FURTHERMORE, THERE ARE NO WARRANTIES THAT THE SOFTWARE WILL MEET
* YOUR NEEDS OR BE FREE FROM ERRORS, OR THAT THE OPERATION OF THE SOFTWARE
* WILL BE UNINTERRUPTED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @Author: Hans Zandbelt - hans.zandbelt@openidc.com
*
**************************************************************************/
#include "helper.h"
#include "mod_auth_openidc.h"
#include "util/util.h"
// base64
START_TEST(test_util_base64url_encode) {
int len = -1;
char *dst = NULL;
const char *src = NULL;
len = oidc_util_base64url_encode(oidc_test_request_get(), &dst, NULL, 0, 1);
ck_assert_ptr_null(dst);
ck_assert_int_eq(len, -1);
src = "test";
len = oidc_util_base64url_encode(oidc_test_request_get(), &dst, src, _oidc_strlen(src), 1);
ck_assert_msg(dst != NULL, "dst value is NULL");
ck_assert_int_eq(len, 6);
ck_assert_str_eq(dst, "dGVzdA");
len = -1;
dst = NULL;
len = oidc_util_base64url_encode(oidc_test_request_get(), &dst, src, _oidc_strlen(src), 0);
ck_assert_msg(dst != NULL, "dst value is NULL");
ck_assert_int_eq(len, 9);
ck_assert_str_eq(dst, "dGVzdA,,");
}
END_TEST
START_TEST(test_util_base64_decode) {
char *rv = NULL;
const char *input = "dGVzdA==";
char *output = NULL;
int len = -1;
rv = oidc_util_base64_decode(oidc_test_pool_get(), NULL, &output, &len);
ck_assert_ptr_nonnull(rv);
ck_assert_ptr_null(output);
ck_assert_int_eq(len, -1);
rv = oidc_util_base64_decode(oidc_test_pool_get(), "\\", &output, &len);
ck_assert_ptr_nonnull(rv);
ck_assert_int_eq(len, 0);
rv = oidc_util_base64_decode(oidc_test_pool_get(), input, &output, &len);
ck_assert_msg(rv == NULL, "return value is not NULL");
ck_assert_int_eq(len, 4);
ck_assert_str_eq(output, "test");
}
END_TEST
START_TEST(test_util_base64url_decode) {
int len = -1;
char *src = "c3ViamVjdHM_X2Q9MQ-Tl5u,";
char *dst = NULL;
len = oidc_util_base64url_decode(oidc_test_pool_get(), &dst, src);
ck_assert_msg(dst != NULL, "dst value is NULL");
ck_assert_int_eq(len, 17);
// TODO: need binary compare
// ck_assert_str_eq(dst, "subjects?_d=1���");
}
END_TEST
START_TEST(test_util_appinfo_set) {
apr_byte_t rc = FALSE;
json_t *claims = NULL;
request_rec *r = oidc_test_request_get();
rc = oidc_util_json_decode_object(r,
"{"
"\"simple\":\"hans\","
"\"name\": \"GÜnther\","
"\"dagger\": \"D†gÿger\","
"\"anarr\" : [ false, \"hans\", \"piet\", true, {} ],"
"\"names\" : [ \"hans\", \"piet\" ],"
"\"abool\": true,"
"\"anint\": 5,"
"\"lint\": 111111111111111,"
"\"areal\": 1.5,"
"\"anobj\" : { \"hans\": \"piet\", \"abool\": false },"
"\"anull\": null"
"}",
&claims);
ck_assert_int_eq(rc, TRUE);
oidc_util_appinfo_set_all(r, NULL, "OIDC_CLAIM_", ",", OIDC_APPINFO_PASS_HEADERS, OIDC_APPINFO_ENCODING_NONE);
oidc_util_appinfo_set_all(r, claims, "OIDC_CLAIM_", ",", OIDC_APPINFO_PASS_HEADERS, OIDC_APPINFO_ENCODING_NONE);
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_simple"), "hans");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_name"), "G\u00DCnther");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_dagger"), "D\u2020gÿger");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_anarr"), "0,hans,piet,1");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_names"), "hans,piet");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_abool"), "1");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_anint"), "5");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_lint"), "111111111111111");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_areal"), "1.5");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_anobj"), "{\"hans\":\"piet\",\"abool\":false}");
ck_assert_ptr_null(apr_table_get(r->headers_in, "OIDC_CLAIM_anull"));
ck_assert_ptr_null(apr_table_get(r->subprocess_env, "OIDC_CLAIM_names"));
oidc_util_appinfo_set_all(r, claims, "MYPREFIX_", "#", OIDC_APPINFO_PASS_HEADERS | OIDC_APPINFO_PASS_ENVVARS,
OIDC_APPINFO_ENCODING_NONE);
ck_assert_str_eq(apr_table_get(r->headers_in, "MYPREFIX_simple"), "hans");
ck_assert_str_eq(apr_table_get(r->headers_in, "MYPREFIX_name"), "G\u00DCnther");
ck_assert_str_eq(apr_table_get(r->headers_in, "MYPREFIX_dagger"), "D\u2020gÿger");
ck_assert_str_eq(apr_table_get(r->headers_in, "MYPREFIX_anarr"), "0#hans#piet#1");
ck_assert_ptr_null(apr_table_get(r->subprocess_env, "OIDC_CLAIM_names"));
ck_assert_str_eq(apr_table_get(r->subprocess_env, "MYPREFIX_anarr"), "0#hans#piet#1");
oidc_util_appinfo_set_all(r, claims, "OIDC_CLAIM_", ",", OIDC_APPINFO_PASS_HEADERS,
OIDC_APPINFO_ENCODING_BASE64URL);
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_simple"), "aGFucw");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_name"), "R8OcbnRoZXI");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_dagger"), "ROKAoGfDv2dlcg");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_anarr"), "MCxoYW5zLHBpZXQsMQ");
oidc_util_appinfo_set_all(r, claims, "OIDC_CLAIM_", ",", OIDC_APPINFO_PASS_HEADERS,
OIDC_APPINFO_ENCODING_LATIN1);
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_simple"), "hans");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_name"), "G\xDCnther");
ck_assert_str_eq(apr_table_get(r->headers_in, "OIDC_CLAIM_dagger"), "D?g\xFFger");
json_decref(claims);
}
END_TEST
START_TEST(test_util_expr_substitute) {
apr_byte_t rc = FALSE;
apr_pool_t *pool = oidc_test_pool_get();
const char *input = "match 292 numbers";
const char *regexp = "^.* ([0-9]+).*$";
const char *replace = "$1";
char *output = NULL;
char *error_str = NULL;
rc = oidc_util_regexp_substitute(pool, input, "$$$$$**@@", replace, &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_substitute returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_substitute(
pool,
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
regexp, replace, &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_substitute returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_substitute(pool, "", "", "", &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_substitute returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_substitute(pool, input, regexp, replace, &output, &error_str);
ck_assert_msg(rc == TRUE, "oidc_util_regexp_substitute returned FALSE");
ck_assert_ptr_null(error_str);
ck_assert_str_eq(output, "292");
}
END_TEST
START_TEST(test_util_expr_first_match) {
apr_byte_t rc = FALSE;
apr_pool_t *pool = oidc_test_pool_get();
const char *input = "12345 hello";
const char *regexp = "^([0-9]+)\\s+([a-z]+)$";
;
char *output = NULL;
char *error_str = NULL;
rc = oidc_util_regexp_first_match(pool, input, "$$$$$**@@", &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_first_match returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_first_match(pool, "abc", regexp, &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_first_match returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_first_match(pool, "abc abc", regexp, &output, &error_str);
ck_assert_msg(rc == FALSE, "oidc_util_regexp_first_match returned TRUE");
ck_assert_ptr_nonnull(error_str);
error_str = NULL;
rc = oidc_util_regexp_first_match(pool, input, regexp, &output, &error_str);
ck_assert_msg(rc == TRUE, "oidc_util_regexp_first_match returned FALSE");
ck_assert_ptr_null(error_str);
ck_assert_str_eq(output, "12345");
}
END_TEST
START_TEST(test_util_expr_parse) {
char *rv = NULL;
cmd_parms *cmd = oidc_test_cmd_get("");
oidc_apr_expr_t *expr = NULL;
// NB: stub only
expr = NULL;
rv = oidc_util_apr_expr_parse(cmd, NULL, &expr, FALSE);
ck_assert_ptr_null(rv);
ck_assert_ptr_null(expr);
// expr = NULL;
// rv = oidc_util_apr_expr_parse(cmd, "% ||| true)", &expr, FALSE);
// ck_assert_ptr_nonnull(rv);
// ck_assert_ptr_null(expr);
expr = NULL;
rv = oidc_util_apr_expr_parse(cmd, "", &expr, TRUE);
ck_assert_ptr_null(rv);
ck_assert_ptr_nonnull(expr);
}
END_TEST
START_TEST(test_util_expr_exec) {
const char *result = NULL;
char *rv = NULL;
cmd_parms *cmd = oidc_test_cmd_get("");
request_rec *r = oidc_test_request_get();
oidc_apr_expr_t *expr = NULL;
// NB: stub only
expr = NULL;
rv = oidc_util_apr_expr_parse(cmd, "true", &expr, FALSE);
ck_assert_ptr_null(rv);
ck_assert_ptr_nonnull(expr);
// NB: stub only
result = oidc_util_apr_expr_exec(r, expr, TRUE);
ck_assert_ptr_nonnull(result);
#if HAVE_APACHE_24
ck_assert_str_eq(result, "stub.c");
#else
ck_assert_str_eq(result, "true");
#endif
// NB: stub only
result = oidc_util_apr_expr_exec(r, expr, FALSE);
#if HAVE_APACHE_24
ck_assert_ptr_null(result);
#else
ck_assert_str_eq(result, "true");
#endif
// NB: stub only
expr = NULL;
rv = oidc_util_apr_expr_parse(cmd, "#", &expr, FALSE);
#if HAVE_APACHE_24
ck_assert_ptr_nonnull(rv);
ck_assert_ptr_null(expr);
#else
ck_assert_ptr_null(rv);
ck_assert_ptr_nonnull(expr);
#endif
}
END_TEST
START_TEST(test_util_file) {
request_rec *r = oidc_test_request_get();
const char *dir = NULL;
char *path = NULL;
apr_byte_t rc = FALSE;
char *text = NULL, *read = NULL;
apr_temp_dir_get(&dir, r->pool);
path = apr_psprintf(r->pool, "%s/test.tmp", dir);
oidc_util_random_str_gen(r, &text, 32);
// write directory instead of file
rc = oidc_util_file_write(r, dir, text);
ck_assert_msg(rc == FALSE, "oidc_util_file_write returned TRUE");
rc = oidc_util_file_write(r, path, text);
ck_assert_msg(rc == TRUE, "oidc_util_file_write returned FALSE");
// read no- existing file
rc = oidc_util_file_read(r, apr_psprintf(r->pool, "%s/bogus.tmp", dir), r->pool, &read);
ck_assert_msg(rc == FALSE, "oidc_util_file_read returned TRUE");
// read directory instead of file
rc = oidc_util_file_read(r, dir, r->pool, &read);
ck_assert_msg(rc == FALSE, "oidc_util_file_read returned TRUE");
rc = oidc_util_file_read(r, path, r->pool, &read);
ck_assert_msg(rc == TRUE, "oidc_util_file_read returned FALSE");
ck_assert_ptr_nonnull(read);
ck_assert_str_eq(read, text);
}
END_TEST
START_TEST(test_util_html_escape) {
apr_pool_t *pool = oidc_test_pool_get();
ck_assert_str_eq(oidc_util_html_escape(pool, NULL), "");
ck_assert_str_eq(oidc_util_html_escape(pool, ""), "");
ck_assert_str_eq(oidc_util_html_escape(pool, "<script>alert('This is an XSS attack');</script>"),
"<script>alert('This is an XSS attack');</script>");
// TODO: which spec/function is actually followed here?
ck_assert_ptr_eq(oidc_util_html_javascript_escape(pool, NULL), NULL);
ck_assert_str_eq(oidc_util_html_javascript_escape(pool, "@*_+-./"), "@*_+-.\\/");
}
END_TEST
START_TEST(test_util_html_content) {
int rv = -1;
request_rec *r = oidc_test_request_get();
r->user = NULL;
rv = oidc_util_html_content_prep(r, "test_util_html_content", "test title", "test head", "onload", "test body");
ck_assert_msg(rv == OK, "oidc_util_html_content_prep did not return OK: %d", rv);
ck_assert_str_eq(r->user, "");
ck_assert_str_eq(oidc_request_state_get(r, "title"), "test title");
r->user = NULL;
rv = oidc_util_html_content_send(r);
ck_assert_msg(rv == OK, "oidc_util_html_content_send did not return OK: %d", rv);
ck_assert_str_eq(r->user, "");
r->user = NULL;
rv = oidc_util_html_send(r, "test title", "test head", "onload", "test body", OK);
ck_assert_msg(rv == OK, "oidc_util_html_send did not return OK: %d", rv);
ck_assert_str_eq(r->user, "");
r->user = NULL;
rv = oidc_util_html_send(r, "test title", "test head", "onload", "test body", 201);
ck_assert_msg(rv == 201, "oidc_util_html_send did not return 201: %d", rv);
ck_assert_ptr_null(r->user);
rv = oidc_util_html_send_error(r, "my error", "my error description", 404);
ck_assert_msg(rv == 404, "oidc_util_html_send_error did not return 404: %d", rv);
ck_assert_str_eq(apr_table_get(r->subprocess_env, "OIDC_ERROR"), "my error");
ck_assert_str_eq(apr_table_get(r->subprocess_env, "OIDC_ERROR_DESC"), "my error description");
}
END_TEST
START_TEST(test_util_html_template) {
int rv = -1;
char *template_contents = NULL;
request_rec *r = oidc_test_request_get();
char *dir = getenv("srcdir") ? getenv("srcdir") : ".";
char *fname = apr_psprintf(r->pool, "%s/%s", dir, "post_preserve.template");
rv = oidc_util_html_send_in_template(r, fname, &template_contents, "arg1", OIDC_POST_PRESERVE_ESCAPE_NONE,
"arg2", OIDC_POST_PRESERVE_ESCAPE_NONE);
ck_assert_msg(rv == OK, "oidc_util_html_send_in_template did not return OK: %d", rv);
ck_assert_int_eq(_oidc_strlen(template_contents), 489);
ck_assert_int_eq(_oidc_strncmp(template_contents, "<!DOCTYPE HTML PUBLIC", 10), 0);
ck_assert_str_eq(oidc_request_state_get(r, "data_len"), "493");
ck_assert_ptr_nonnull(_oidc_strstr(oidc_request_state_get(r, "data"), "window.location='arg2"));
ck_assert_str_eq(oidc_request_state_get(r, "content_type"), "text/html");
}
END_TEST
START_TEST(test_util_jq) {
request_rec *r = oidc_test_request_get();
#ifdef USE_LIBJQ
ck_assert_str_eq(oidc_util_jq_filter(r, NULL, "."), "{}");
ck_assert_str_eq(oidc_util_jq_filter(r, "{ \"jan\": \"jan\", \"piet\": \"piet\" }", NULL),
"{ \"jan\": \"jan\", \"piet\": \"piet\" }");
ck_assert_str_eq(oidc_util_jq_filter(r, "{ \"jan\": \"jan\", \"piet\": \"piet\" }", "bogus"),
"{ \"jan\": \"jan\", \"piet\": \"piet\" }");
ck_assert_str_eq(oidc_util_jq_filter(r, "{ \"jan\": \"jan\", \"piet\": \"piet\" }", ".jan"), "\"jan\"");
ck_assert_str_eq(oidc_util_jq_filter(r, "{ \"jan\": \"jan\", \"piet\": \"piet\" }", ".jan"), "\"jan\"");
#else
ck_assert_str_eq(oidc_util_jq_filter(r, "{ \"jan\": \"jan\", \"piet\": \"piet\" }", ".jan"),
"{ \"jan\": \"jan\", \"piet\": \"piet\" }");
#endif
}
END_TEST
int main(void) {
TCase *c = NULL;
Suite *s = suite_create("util");
c = tcase_create("base64");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_base64url_encode);
tcase_add_test(c, test_util_base64_decode);
tcase_add_test(c, test_util_base64url_decode);
suite_add_tcase(s, c);
c = tcase_create("appinfo");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_appinfo_set);
suite_add_tcase(s, c);
c = tcase_create("expr");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_expr_substitute);
tcase_add_test(c, test_util_expr_first_match);
tcase_add_test(c, test_util_expr_parse);
tcase_add_test(c, test_util_expr_exec);
suite_add_tcase(s, c);
c = tcase_create("file");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_file);
suite_add_tcase(s, c);
c = tcase_create("html");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_html_escape);
tcase_add_test(c, test_util_html_content);
tcase_add_test(c, test_util_html_template);
suite_add_tcase(s, c);
c = tcase_create("jq");
tcase_add_checked_fixture(c, oidc_test_setup, oidc_test_teardown);
tcase_add_test(c, test_util_jq);
suite_add_tcase(s, c);
return oidc_test_suite_run(s);
}
|