Skip to content

Commit 2a4ae69

Browse files
authored
Add error check for HTTPJSON template execution failure (#2151)
1 parent 8bcaa9b commit 2a4ae69

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/testrunner/runners/system/tester.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ var (
120120
regexp.MustCompile(`Component state changed .* \(HEALTHY->DEGRADED\): Degraded: pid .* missed .* check-in`),
121121
},
122122
},
123+
{
124+
// HTTPJSON template error.
125+
includes: regexp.MustCompile(`^error processing response: template: :\d+:\d+: executing "" at <`),
126+
excludes: []*regexp.Regexp{
127+
// Unfortunate: https://github.com/elastic/beats/issues/34544
128+
// See also https://github.com/elastic/beats/pull/39929.
129+
regexp.MustCompile(`: map has no entry for key`),
130+
regexp.MustCompile(`: can't evaluate field (?:[^ ]+) in type interface`),
131+
},
132+
},
123133
},
124134
},
125135
}

0 commit comments

Comments
 (0)