Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

[Elastic Agent] Add e2e test for Agent to be installed on top of Filebeat & Metricbeat docker containers #330

Closed
EricDavisX opened this issue Jul 3, 2020 · 8 comments · Fixed by #1272
Assignees
Labels
area:test Anything related to the Test automation priority:medium Important work, but not urgent or blocking. size:S less than 1 day Team:Elastic-Agent Label for the Agent team triaged Triaged issues will end up in Backlog column in Robots GH Project

Comments

@EricDavisX
Copy link
Contributor

This comes from Jason / Ruflin who reported some problems seen somewhere and we want to have a small automated test in place to make sure it always works, at least on a basic level.

I'll add this ticket to the main e2e testing issue for tracking.

Output of ticket:
elastic/e2e-testing repo has an Ingest Manager / Agent oriented test that proves a Filebeat (and Metricbeat) container can have Fleet Agent installed on it and both sets of processes will stream data to ES.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@mdelapenya
Copy link
Contributor

I think it's a matter of abstracting one of the existing scenarios, converting it into:

Original:

Scenario: Deploying an agent
  When an agent is deployed to Fleet
  Then the agent is listed in Fleet as online
    And system package dashboards are listed in Fleet

New:

Scenario Outline: Deploying an agent
  When a <baseImage> agent is deployed to Fleet
  Then the agent is listed in Fleet as online
    And system package dashboards are listed in Fleet
Examples:
| baseImage |
| centos |
| metricbeat |
| filebeat |

Then the implementation code would read that variable to spin up the proper container. Things to consider: what versions of the beats do we want to use?

@EricDavisX
Copy link
Contributor Author

That may be a good way to start and proceed. I think we'll need to write explicit test validation steps however, to confirm that the Beats are functioning when env comes up (show me the Beats data in ES) then install Agent, and then confirm Agent as well as Beats data flow (again).

@EricDavisX
Copy link
Contributor Author

If we could have the prior GA version of Beats that might be best - as it would closely mimic an upgrade scenario for a customer going from Beats to Agent usage. But maybe we'd want to run the simple scenario twice...with current-minus-1 GA version and current snapshot version. we'll have to chat the way we'll coordinate / manage running some portions of tests multiple times. very exciting.

@mostlyjason
Copy link

For reference, here is the issue that kicked off this thread elastic/beats#19369

@EricDavisX EricDavisX transferred this issue from elastic/beats Sep 28, 2020
@EricDavisX EricDavisX added the Team:Elastic-Agent Label for the Agent team label Oct 27, 2020
@EricDavisX
Copy link
Contributor Author

interesting enough, we have the start of some validation for this in the Ingest Manager / Demo test server, it has beats installed on a given host and then we install the Agent on top and run the Agent Beats. We do not have any data validation or 'usage' on top of it, however - if the installs succeed that is about all we know. It would still be great to have this coverage formalized or validated further in either scenario.

@mdelapenya mdelapenya added area:test Anything related to the Test automation priority:medium Important work, but not urgent or blocking. size:S less than 1 day triaged Triaged issues will end up in Backlog column in Robots GH Project labels Apr 28, 2021
@mdelapenya mdelapenya self-assigned this Jun 18, 2021
@cachedout
Copy link
Contributor

This issue will be resolve once this PR is merged: #1269

@EricDavisX
Copy link
Contributor Author

@cachedout - hi - I know the 2 tasks and am not sure if this is solved by 1269 as noted, did you mean to link to another?

@mdelapenya I am fine to close this out and open a new one to host specifics of what we want to validate. Their side by side existence is a good start. We'd ideally want to confirm the separate data being indexed.

I've logged that ticket as:
#1292

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:test Anything related to the Test automation priority:medium Important work, but not urgent or blocking. size:S less than 1 day Team:Elastic-Agent Label for the Agent team triaged Triaged issues will end up in Backlog column in Robots GH Project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants