Skip to content

Commit

Permalink
Add error check for HTTPJSON template execution failure (#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 authored Oct 11, 2024
1 parent 8bcaa9b commit 2a4ae69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/testrunner/runners/system/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
},
},
},
},
}
Expand Down

0 comments on commit 2a4ae69

Please sign in to comment.