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

Create a test suite for testing inputs in a language agnostic manner #3

Closed
kvch opened this issue May 18, 2022 · 1 comment
Closed
Assignees
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team v8.5.0

Comments

@kvch
Copy link
Contributor

kvch commented May 18, 2022

The goal of this task is to provide a suite for testing inputs to validate that it can be controlled by Elastic Agent and can forward events to the shipper. The test suite should rely on the testing package of Golant.

Requirements

  • The tester must be able to test an input regardless of its language (e.g. input can be written in Python)
  • The tester must check if the input understands the control protocol
  • The tester must check if the input can ship events using the shipper protocol

Test cases

Control protocol

  • Reports OK if correct configuration is sent
  • Reports Error if incorrect configuration is sent
  • Can start with correct configuration
  • Can be stopped when running in healthy state
  • Can be killed if running in degraded state

Shipper

  • Can publish events to the shipper
  • Can handle publishing errors
@cmacknz
Copy link
Member

cmacknz commented May 18, 2022

Adding in a comment from a previous issue since I still like the idea:

Rather than a framework or a separate test suite an interesting idea would be to just build these tests and validation steps into the agent (and perhaps shipper) themselves.

We could have a command for the agent that determines whether some binary can be run by the agent for example and prints out a compatibility report.

@kvch kvch mentioned this issue May 18, 2022
33 tasks
@jlind23 jlind23 added the v8.4.0 label May 24, 2022
@kvch kvch assigned belimawr and unassigned kvch Jun 2, 2022
@jlind23 jlind23 added v8.5.0 and removed v8.4.0 labels Jul 18, 2022
@belimawr belimawr mentioned this issue Jul 25, 2022
3 tasks
@belimawr belimawr added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Jul 25, 2022
@cmacknz cmacknz closed this as completed Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team v8.5.0
Projects
None yet
Development

No branches or pull requests

4 participants