Skip to content

[config] Extend ConfigTest to validate probe config fields more deeply - #1275

Merged
manugarg merged 3 commits into
mainfrom
config_test
Mar 19, 2026
Merged

manugarg merged 3 commits into
mainfrom
config_test

Conversation

@manugarg

@manugarg manugarg commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

ConfigTest previously only verified that the config file could be parsed and unmarshalled into proto messages. This missed cases where string fields like interval or timeout were improperly formatted (e.g. "1223" without a unit suffix). This adds a ValidateProbeConfig function that checks duration fields, field conflicts, and other probe config constraints, and calls it from ConfigTest for each probe.

Fixes #1171

…to unmarshalling

ConfigTest previously only verified that the config file could be parsed
and unmarshalled into proto messages. This missed cases where string fields
like interval or timeout were improperly formatted (e.g. "1223" without a
unit suffix). This adds a ValidateProbeConfig function that checks duration
fields, field conflicts, and other probe config constraints, and calls it
from ConfigTest for each probe.

Fixes #1171
@manugarg manugarg changed the title [config] Extend ConfigTest to validate probe config fields beyond pro… [config] Extend ConfigTest to validate probe config fields more deeply Mar 19, 2026
@manugarg
manugarg merged commit c22bd82 into main Mar 19, 2026
12 checks passed
@manugarg
manugarg deleted the config_test branch March 20, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a way to test configs further than proto unmarshalling

1 participant