From db349fdb64dfd4ddb705c7010d26b4f943892a04 Mon Sep 17 00:00:00 2001 From: Peter Schretlen Date: Fri, 5 Jul 2024 10:37:43 -0400 Subject: [PATCH] add validation case for browser (#773) --- pkg/pb/synthetic_monitoring/checks_extra.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/pb/synthetic_monitoring/checks_extra.go b/pkg/pb/synthetic_monitoring/checks_extra.go index 1c6bf14e..dd31a1ae 100644 --- a/pkg/pb/synthetic_monitoring/checks_extra.go +++ b/pkg/pb/synthetic_monitoring/checks_extra.go @@ -563,6 +563,11 @@ func (s CheckSettings) Validate() error { validateFn = s.Grpc.Validate } + if s.Browser != nil { + settingsCount++ + validateFn = s.Browser.Validate + } + if settingsCount != 1 { return ErrInvalidCheckSettings }