From 2a4ae69827c3a34898ef792e1c322391c1fa85a2 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 11 Oct 2024 18:26:36 +1030 Subject: [PATCH] Add error check for HTTPJSON template execution failure (#2151) --- internal/testrunner/runners/system/tester.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/testrunner/runners/system/tester.go b/internal/testrunner/runners/system/tester.go index bd8711618..309636007 100644 --- a/internal/testrunner/runners/system/tester.go +++ b/internal/testrunner/runners/system/tester.go @@ -120,6 +120,16 @@ var ( regexp.MustCompile(`Component state changed .* \(HEALTHY->DEGRADED\): Degraded: pid .* missed .* check-in`), }, }, + { + // HTTPJSON template error. + includes: regexp.MustCompile(`^error processing response: template: :\d+:\d+: executing "" at <`), + excludes: []*regexp.Regexp{ + // Unfortunate: https://github.com/elastic/beats/issues/34544 + // See also https://github.com/elastic/beats/pull/39929. + regexp.MustCompile(`: map has no entry for key`), + regexp.MustCompile(`: can't evaluate field (?:[^ ]+) in type interface`), + }, + }, }, }, }