summaryrefslogtreecommitdiffstats
path: root/fluent-bit/tests/runtime/config_map_opts.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:20:02 +0000
commit58daab21cd043e1dc37024a7f99b396788372918 (patch)
tree96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /fluent-bit/tests/runtime/config_map_opts.c
parentReleasing debian version 1.43.2-1. (diff)
downloadnetdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz
netdata-58daab21cd043e1dc37024a7f99b396788372918.zip
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/tests/runtime/config_map_opts.c')
-rw-r--r--fluent-bit/tests/runtime/config_map_opts.c35
1 files changed, 35 insertions, 0 deletions
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 <fluent-bit.h>
+#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);
+}