forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/kubeletstats] Use pdata to improve assertions in unit tests (…
…open-telemetry#30348) **Description:** This PR introduces the usage of pdata and golden files within the unit tests of the `kubeletstats` receiver. Insted of manually asserting the unit-tests' results and having the expected values hard-coded within the tests we use generated pdata stored in golden files to improve the assertions by using the [`pdatatest`](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/c87856083e3afa11cd35dbd9cbb8fbda0194fbf4/pkg/pdatatest/README.md#L11) helper functions. **Link to tracking Issue:** Fixes open-telemetry#27468 **Testing:** <Describe what testing was performed and which tests were added.> Unit tests being improved. --------- Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
- Loading branch information
Showing
16 changed files
with
14,759 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.