From 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:01:36 +0200 Subject: Adding upstream version 0.11.2. Signed-off-by: Daniel Baumann --- test/bad-config/formats/invalid-sample/format.json | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 test/bad-config/formats/invalid-sample/format.json (limited to 'test/bad-config/formats/invalid-sample') diff --git a/test/bad-config/formats/invalid-sample/format.json b/test/bad-config/formats/invalid-sample/format.json new file mode 100644 index 0000000..d990bb9 --- /dev/null +++ b/test/bad-config/formats/invalid-sample/format.json @@ -0,0 +1,49 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "bad_sample_log": { + "title": "invalid sample test", + "regex": { + "std": { + "pattern": "^(?\\d+): (?\\w+) (?.*)$" + }, + "semi": { + "pattern": "^(?\\d+); (?\\w+)$" + }, + "bad-time": { + "pattern": "^(?\\w+): (?\\w+)$" + }, + "with-level": { + "pattern": "^(?\\d+)\\| (?\\w+) (?\\w+)$" + } + }, + "timestamp-format": [ + "%i" + ], + "value": { + "pid": { + "kind": "foo" + } + }, + "level-field": "level", + "level": { + "info": "info", + "debug": "debug" + }, + "sample": [ + { + "line": "abc: foo" + }, + { + "line": "1428634687123| debug hello", + "level": "info" + }, + { + "line": "1428634687123| debug hello\ngoodbye", + "level": "debug" + }, + { + "line": "1428634687123; foo bar" + } + ] + } +} -- cgit v1.2.3