When using drop processors in ingest pipelines the pipeline tests is unable to verify the output of *-expected.json
When drop processors hit, the returning json object is null, resulting -expected.json to look like this:
{
"expected":[
{
"network":{
"community_id":"1:HQ1oJYZ+9SJOoeju7badiLfvwls=",
"type":"ipv4",
"bytes":568,
"iana_number":"6",
"packets":8
}
},
null,
{
"network":{
"community_id":"1:HQ1oJYZ+9SJOoeju7badiLfvwls=",
"type":"ipv4",
"bytes":568,
"iana_number":"6",
"packets":8
}
}
]
}
Because of the null value, when running elastic-package test pipeline --generate, the following error will occur:
verifying test result failed: comparing test results failed: can't adjust test results: can't unmarshal event: unexpected end of JSON input
When using drop processors in ingest pipelines the pipeline tests is unable to verify the output of
*-expected.jsonWhen drop processors hit, the returning json object is
null, resulting -expected.json to look like this:{ "expected":[ { "network":{ "community_id":"1:HQ1oJYZ+9SJOoeju7badiLfvwls=", "type":"ipv4", "bytes":568, "iana_number":"6", "packets":8 } }, null, { "network":{ "community_id":"1:HQ1oJYZ+9SJOoeju7badiLfvwls=", "type":"ipv4", "bytes":568, "iana_number":"6", "packets":8 } } ] }Because of the
nullvalue, when runningelastic-package test pipeline --generate, the following error will occur:verifying test result failed: comparing test results failed: can't adjust test results: can't unmarshal event: unexpected end of JSON input