Skip to content

[Testing] Fail test if there are errors in Agent component logs #1188

@andrewkroh

Description

@andrewkroh

As a developer I want to be able to detect if there are errors occurring during system tests. These are some scenarios I would like to detected as early as possible:

  • An event is failing to index (elastic-agent-20230313-80.ndjson-{"log.level":"warn","@timestamp":"2023-03-13T15:43:25.350Z","message":"Cannot index event publisher.Event{Content:beat.Event{...). The system test will pass as long as other events are indexed.
  • An input is logging warnings, errors, or deprecation warnings.
  • Any panics occurring in the Agent during the system test.

I'd love discuss some options for implementing these types of checks for system tests without making a brittle system.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions