fluent / fluentd

Fluentd: Unified Logging Layer (project under CNCF)
https://www.fluentd.org
Apache License 2.0
12.86k stars 1.34k forks source link

filter_parser: reorganize tests for abnormal cases #4638

Open daipom opened 2 weeks ago

daipom commented 2 weeks ago

Which issue(s) this PR fixes: None.

What this PR does / why we need it: Adds and reorganizes tests of filter_parser for abnormal cases.

The following PR will significantly change the implementation of filter_parser.

However, currently, there aren't enough tests for abnormal cases. This condition makes it difficult to safely make such a large change. This PR solves the problem.

Docs Changes: Not needed.

Release Note: Same as the title. (Or not needed because this changes only the test codes.)

daipom commented 2 weeks ago

Ruby 2.7 tests fail because Ruby 2.7 does not support Hash#except. I'm fixing it.

daipom commented 1 week ago

@kenhys Could you please review this?