Skip to content

Provide a way to test configs further than proto unmarshalling #1171

Closed

Description

@manugarg

For config testing, we currently only unmarshal the config into a protobuf. That misses cases where string fields may be improperly formatted, e.g. let's say someone sets "interval" to "1223" (no unit suffix). We should extend ConfigTest to verify such fields as well.

Activity

  1. added
    enhancement
    on Nov 4, 2025
  2. self-assigned this
    on Nov 4, 2025
  3. manugarg commented on Nov 11, 2025

    @manugarg
    ContributorAuthor

    Fields that we should verify:

    • interval
    • timeout
    • latency_unit
    • interval and timeout correctness

    I guess we should just run a limited version of:

    func BuildProbeOptions(p *configpb.ProbeDef, ldLister endpoint.Lister, proberConfig *proberconfigpb.ProberConfig, l *logger.Logger) (*Options, error) {

  4. added a commit that references this issue on Mar 19, 2026
    b5032d1
  5. added a commit that references this issue on Mar 19, 2026
    c22bd82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions