logstash-filter-verifier
logstash-filter-verifier copied to clipboard
YAML testcase input
trafficstars
Is it possible to specify the input of a test case directly in YAML instead of as a string?
Basically, write this:
---
testcases:
- input:
- field1: value1
field2: value2
expected:
- field1: modified_value1
field2: modified_value2
Instead of:
---
codec: json_lines
testcases:
- input:
- >
{
"field1": "value1",
"field2": "value2"
}
expected:
- field1: modified_value1
field2: modified_value2
@nicolasreich there is currently some work going on for logstash-filter-verifier v 2.0. There we have some ideas to make this possible. See also: https://github.com/magnusbaeck/logstash-filter-verifier/issues/94#issuecomment-770877220
@breml cool, yeah I'm following the 2.0 work and discussion, so many great features! Big thanks to you and @magnusbaeck for this!