Agent should validate validations
mem opened this issue · comments
Marcelo Magallon commented
It was reported that the agent is accepting regular expression validations with invalid regular expressions.
E.g. if fail_if_body_matches_regexp contains an invalid regular expression, the agent will consider the check to be valid.
That validation should be happening somewhere around here: https://github.com/grafana/synthetic-monitoring-agent/blob/main/pkg/pb/synthetic_monitoring/checks_extra.go#L574