From 58daab21cd043e1dc37024a7f99b396788372918 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:48 +0100 Subject: Merging upstream version 1.44.3. Signed-off-by: Daniel Baumann --- fluent-bit/tests/runtime/config_map_opts.c | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fluent-bit/tests/runtime/config_map_opts.c (limited to 'fluent-bit/tests/runtime/config_map_opts.c') diff --git a/fluent-bit/tests/runtime/config_map_opts.c b/fluent-bit/tests/runtime/config_map_opts.c new file mode 100644 index 000000000..57b396bb4 --- /dev/null +++ b/fluent-bit/tests/runtime/config_map_opts.c @@ -0,0 +1,35 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +#include +#include "flb_tests_runtime.h" + +/* Test functions */ +void flb_test_config_map_opts(void); + +/* Test list */ +TEST_LIST = { + {"config_map_opts", flb_test_config_map_opts }, + {NULL, NULL} +}; + +void flb_test_config_map_opts(void) +{ + flb_ctx_t *ctx = NULL; + int in_ffd, r; + + flb_init_env(); + + ctx = flb_create(); + in_ffd = flb_input(ctx, (char *) "tail", NULL); + r = flb_input_property_check(ctx, in_ffd, "invalid_option", "invalid value"); + TEST_CHECK(r != 0); + + in_ffd = flb_filter(ctx, (char *) "kubernetes", NULL); + r = flb_filter_property_check(ctx, in_ffd, "invalid_option", "invalid value"); + TEST_CHECK(r != 0); + + in_ffd = flb_output(ctx, (char *) "stdout", NULL); + r = flb_output_property_check(ctx, in_ffd, "invalid_option", "invalid value"); + TEST_CHECK(r != 0); + + flb_destroy(ctx); +} -- cgit v1.2.3