master
yaml 21 lines 437 Bytes
Raw
1 ---
2 # Error message validation test
3 # Tests that error messages are consistent and helpful
4
5 pattern: "(?P<data>.*)"
6
7 inject:
8 VALID_INJECT: "This should work"
9
10 filename:
11 key: FILENAME
12
13 # Missing required match field - should generate specific error
14 rewrite:
15 - key: MESSAGE
16 value: 'This rewrite has no match'
17
18 # Invalid regex - should generate PCRE2 error
19 - key: MESSAGE
20 match: '[unclosed'
21 value: 'Invalid regex test'