summaryrefslogtreecommitdiffstats
path: root/test/bad-config/formats/invalid-properties/format.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/bad-config/formats/invalid-properties/format.json')
-rw-r--r--test/bad-config/formats/invalid-properties/format.json45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/bad-config/formats/invalid-properties/format.json b/test/bad-config/formats/invalid-properties/format.json
new file mode 100644
index 0000000..a69a179
--- /dev/null
+++ b/test/bad-config/formats/invalid-properties/format.json
@@ -0,0 +1,45 @@
+{
+ "$schema": "https://lnav.org/schemas/format-v1.schema.json",
+ "invalid_props_log": {
+ "title": "invalid properties",
+ "regex": {
+ "std": {
+ "pattern": "^(?<timestamp>\\d+): (?<pid>\\w+) (?<body>.*)$"
+ }
+ },
+ "timestamp-field": "ts",
+ "subsecond-field": "ts-sub",
+ "sample": [
+ {
+ "line": "1428634687123: 1234 abc"
+ }
+ ],
+ "value": {
+ "non-existent": {
+ "kind": "string"
+ }
+ },
+ "highlights": {
+ "hl1": {
+ "color": "not a color",
+ "background-color": "also not a color"
+ }
+ },
+ "tags": {
+ "badtag": {
+ "paths": []
+ },
+ "badtag2": {
+ "pattern": ""
+ },
+ "badtag3": {
+ "pattern": "invalid(abc"
+ }
+ },
+ "search-table": {
+ "bad_table_regex": {
+ "pattern": "abc(def"
+ }
+ }
+ }
+} \ No newline at end of file