master
yaml 48 lines 950 Bytes
Raw
1 pattern: "(?P<msg>.*)" # Valid pattern
2
3 inject:
4 - key: EMPTY_VALUE
5 value: "" # Empty value
6
7 - key: "" # Empty key - should error
8 value: "test"
9
10 - key: WHITESPACE_VALUE
11 value: " " # Only whitespace
12
13 - key: TAB_VALUE
14 value: " " # Only tabs
15
16 rewrite:
17 - key: "" # Empty key
18 value: "test"
19 inject: yes
20
21 - key: TEST_KEY
22 match: ".*" # Valid match pattern
23 value: "" # Empty replacement
24
25 - key: ANOTHER_KEY
26 match: ".*"
27 value: "" # Empty replacement
28
29 rename:
30 - old_key: ""
31 new_key: NEW_NAME
32
33 - old_key: OLD_NAME
34 new_key: "" # Empty new name
35
36 - old_key: " " # Whitespace only
37 new_key: "TRIMMED"
38
39 # Comment out problematic empty values that cause parse errors
40 # filter:
41 # include: "" # Empty include pattern
42 # exclude: "" # Empty exclude pattern
43
44 # unmatched:
45 # key: "" # Empty unmatched key
46 # inject:
47 # - key: ""
48 # value: "test"