Refactor/Expand elastic-agent diagnostics integration tests #4384
Labels
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Testing
As demonstrated by #4376, the current diagnostics test does not cover enough of elastic-agent diagnostics functionality: the current tests run the
elastic-agent diagnostics
command with fake components and without installing agent.We need add testing for collecting diagnostic bundles from an installed agent running with real components (ideally we should also include endpoint or some other service component) and verify that we collect all the expected files.
Optional: we can think of testing also triggering the diagnostics using Fleet API and then download the archives from there.
The text was updated successfully, but these errors were encountered: