summaryrefslogtreecommitdiffstats
path: root/fluent-bit/tests/internal/include/sp_snapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/tests/internal/include/sp_snapshot.h')
-rw-r--r--fluent-bit/tests/internal/include/sp_snapshot.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/fluent-bit/tests/internal/include/sp_snapshot.h b/fluent-bit/tests/internal/include/sp_snapshot.h
new file mode 100644
index 00000000..e8ca6fad
--- /dev/null
+++ b/fluent-bit/tests/internal/include/sp_snapshot.h
@@ -0,0 +1,38 @@
+#include "sp_cb_functions.h"
+
+#ifndef FLB_TEST_SP_SNAPSHOT
+#define FLB_TEST_SP_SNAPSHOT
+
+/* Tests for 'test_snapshot' */
+struct task_check snapshot_checks[][2] = {
+ {
+ { // Snapshot
+ 0, 0, 0, 0,
+ "snapshot_create",
+ "SELECT * FROM STREAM:FLB LIMIT 5;",
+ cb_snapshot_create
+ },
+ { // Flush
+ 1, 0, 0, 0,
+ "snapshot_purge",
+ "SELECT * FROM STREAM:FLB;",
+ cb_snapshot_purge
+ },
+ },
+ {
+ { // Snapshot
+ 2, 0, 5, 0,
+ "snapshot_create",
+ "SELECT * FROM STREAM:FLB;",
+ cb_snapshot_create
+ },
+ { // Flush
+ 3, 0, 0, 0,
+ "snapshot_purge",
+ "SELECT * FROM STREAM:FLB;",
+ cb_snapshot_purge_time
+ },
+ },
+};
+
+#endif