From 30a04be880ff26dfc3dba28f53dc3d80be267893 Mon Sep 17 00:00:00 2001 From: Braydon Kains Date: Mon, 24 Jun 2024 13:29:04 -0600 Subject: [PATCH] tests: runtime: filter_parser: adjust to updated parser API for system timezone Signed-off-by: Eduardo Silva --- tests/runtime/filter_parser.c | 149 +++++++++++++++++++++++++++++++--- 1 file changed, 139 insertions(+), 10 deletions(-) diff --git a/tests/runtime/filter_parser.c b/tests/runtime/filter_parser.c index c31fbcf840b..539c163a41e 100644 --- a/tests/runtime/filter_parser.c +++ b/tests/runtime/filter_parser.c @@ -108,7 +108,7 @@ void flb_test_filter_parser_extract_fields() /* Parser */ parser = flb_parser_create("dummy_test", "regex", "^(?[^ ]+) (?[^ ]+) (?[^ ]+) (?.+)$", FLB_TRUE, - NULL, NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE, NULL, 0, + NULL, NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, ctx->config); TEST_CHECK(parser != NULL); @@ -195,7 +195,7 @@ void flb_test_filter_parser_reserve_data_off() /* Parser */ parser = flb_parser_create("dummy_test", "regex", "^(?[^ ]+) (?[^ ]+) (?[^ ]+) (?.+)$", FLB_TRUE, - NULL, NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE, NULL, 0, + NULL, NULL, NULL, MK_FALSE, MK_TRUE, FLB_FALSE, FLB_FALSE, NULL, 0, NULL, ctx->config); TEST_CHECK(parser != NULL); @@ -273,7 +273,7 @@ void flb_test_filter_parser_handle_time_key() parser = flb_parser_create("timestamp", "regex", "^(?