summaryrefslogtreecommitdiffstats
path: root/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h')
-rw-r--r--fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h b/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h
new file mode 100644
index 00000000..b3af3722
--- /dev/null
+++ b/fluent-bit/tests/runtime/data/stackdriver/stackdriver_test_operation.h
@@ -0,0 +1,62 @@
+#define OPERATION_COMMON_CASE "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": " \
+ "{" \
+ "\"id\": \"test_id\"," \
+ "\"producer\": \"test_producer\"," \
+ "\"first\": true," \
+ "\"last\": true" \
+ "}" \
+ "}]"
+
+#define EMPTY_OPERATION "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": " \
+ "{" \
+ "}" \
+ "}]"
+
+#define OPERATION_IN_STRING "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": \"some string\"" \
+ "}]"
+
+#define PARTIAL_SUBFIELDS "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": " \
+ "{" \
+ "\"first\": false," \
+ "\"last\": false" \
+ "}" \
+ "}]"
+
+#define SUBFIELDS_IN_INCORRECT_TYPE "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": " \
+ "{" \
+ "\"id\": 123," \
+ "\"producer\": true," \
+ "\"first\": \"some string\"," \
+ "\"last\": 123" \
+ "}" \
+ "}]"
+
+#define EXTRA_SUBFIELDS_EXISTED "[" \
+ "1591111124," \
+ "{" \
+ "\"logging.googleapis.com/operation\": " \
+ "{" \
+ "\"id\": \"test_id\"," \
+ "\"producer\": \"test_producer\"," \
+ "\"first\": true," \
+ "\"last\": true," \
+ "\"extra_key1\": \"extra_val1\"," \
+ "\"extra_key2\": 123," \
+ "\"extra_key3\": true" \
+ "}" \
+ "}]"