Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend output plugin test to support http responses #9260

Open
edsiper opened this issue Aug 21, 2024 · 0 comments · May be fixed by #9401
Open

Extend output plugin test to support http responses #9260

edsiper opened this issue Aug 21, 2024 · 0 comments · May be fixed by #9401
Assignees

Comments

@edsiper
Copy link
Member

edsiper commented Aug 21, 2024

Current testing exists for output plugins where the format of the payload to be sent can be tested. e.g: under specific config properties and certain payload, the formatted callback helps to validate expected behaviors when preparing a payload, here is an example:

    .test_formatter.callback = elasticsearch_format,

We miss a way to test behaviors for HTTP responses, e.g:

  • if HTTP response is 400 what is our return code ?
  • if the HTTP response payload is a JSON document, how do we process it ?

An idea would be to implement something like:

   .test_http_response.callback = something,

the prototype of something still needs to be defined, but would be good to start the discussion to cover majority of use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants