-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add test helper to verify receiver behavior on errors #7478
Comments
tigrannajaryan
changed the title
Add test helper to verify receiver behavior on non-permanent errors
Add test helper to verify receiver behavior on errors
Apr 3, 2023
tigrannajaryan
added a commit
to tigrannajaryan/opentelemetry-collector
that referenced
this issue
Apr 11, 2023
- Added a CheckConsumeContract() helper func that can be used to test the contract that receivers are expected to maintain for Consume() calls. - Added an example usage of CheckConsumeContract() helper. Resolves open-telemetry#7478
tigrannajaryan
added a commit
to tigrannajaryan/opentelemetry-collector
that referenced
this issue
Apr 11, 2023
- Added a CheckConsumeContract() helper func that can be used to test the contract that receivers are expected to maintain for Consume() calls. - Added an example usage of CheckConsumeContract() helper. Resolves open-telemetry#7478
tigrannajaryan
added a commit
to tigrannajaryan/opentelemetry-collector
that referenced
this issue
Apr 11, 2023
- Added a CheckConsumeContract() helper func that can be used to test the contract that receivers are expected to maintain for Consume() calls. - Added an example usage of CheckConsumeContract() helper. Resolves open-telemetry#7478
tigrannajaryan
added a commit
to tigrannajaryan/opentelemetry-collector
that referenced
this issue
Apr 11, 2023
- Added a CheckConsumeContract() helper func that can be used to test the contract that receivers are expected to maintain for Consume() calls. - Added an example usage of CheckConsumeContract() helper. Resolves open-telemetry#7478
tigrannajaryan
added a commit
to tigrannajaryan/opentelemetry-collector
that referenced
this issue
May 26, 2023
- Added a CheckConsumeContract() helper func that can be used to test the contract that receivers are expected to maintain for Consume() calls. - Added an example usage of CheckConsumeContract() helper. Resolves open-telemetry#7478
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The receivers are required to follow the Error Handling contract which says:
and
We need a test helper that makes testing for this part of the contract easy.
Helper Inputs
The helper should accept:
otlp
receiver testing we needotlp
request generator that behaves correctly according to OTLP protocol spec and retries the requests when instructed so by the receiver.Events to Test for
It is important that all 3 event types happen during the test at least once:
The test helper should provide a mock consumer that can accept data and return permanent and non-permanent errors (or success) as necessary.
Test Scenarios
The helper should be possible to configure for testing for permanent errors scenario and must verify:
The helper should be possible to configure for testing for non-permanent errors scenario and must verify:
Other Requirements
The text was updated successfully, but these errors were encountered: