vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.2k stars 1.6k forks source link

Provide generic `generate_config` and `test_generate_config` #21865

Open pront opened 14 hours ago

pront commented 14 hours ago

Currently these work with Toml::Values however YAML is now the first class format in Vector.

See https://github.com/vectordotdev/vector/blob/v0.42.0/src/test_util/mod.rs#L95-L103

We can also support JSON values.

jszwedko commented 14 hours ago

Related: https://github.com/vectordotdev/vector/issues/19963