master
yaml 32 lines 807 Bytes
Raw
1 # Test error recovery - mix valid and problematic sections
2 pattern: "(?P<level>\\w+)\\s+(?P<message>.*)"
3
4 # This section should work
5 rewrite:
6 - key: WORKING_REWRITE
7 value: "Level: ${LEVEL}"
8 inject: yes
9
10 # Valid section after potential issues
11 rename:
12 - old_key: LEVEL
13 new_key: LOG_LEVEL
14
15 # Test with edge case values that might cause issues
16 filter:
17 include: ".*" # Very permissive
18 exclude: "^$" # Empty strings only
19
20 # Test unmatched section
21 unmatched:
22 key: PARSE_ERROR
23 inject:
24 - key: ERROR_HANDLED
25 value: "Parser recovered successfully"
26
27 # Combined inject section (fixed duplicate key issue)
28 inject:
29 - key: VALID_BEFORE_ERROR
30 value: "should work"
31 - key: COMPLEX_VAR_TEST
32 value: "Message: ${MESSAGE}, Level: ${LOG_LEVEL}, Working: ${WORKING_REWRITE}"