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

Add logging unit tests to locator #236

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Add logging unit tests to locator #236

merged 2 commits into from
Sep 28, 2023

Conversation

ablease
Copy link

@ablease ablease commented Sep 26, 2023

There is a new logging Context for the locator tests.

The Stream suite adds a custome handler to handle Debug level logs, and writes them to the GinkgoWriter.

In the locator tests, we Tee the logs into a seperate buffer, and make assertions on the structured logs in this buffer.

@ablease ablease marked this pull request as ready for review September 26, 2023 12:40
@Zerpet Zerpet linked an issue Sep 27, 2023 that may be closed by this pull request
@Zerpet Zerpet merged commit 17b210b into v2 Sep 28, 2023
4 checks passed
@Zerpet Zerpet deleted the test-logging-locator branch September 28, 2023 09:11
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 this pull request may close these issues.

Test logging in locator v2
2 participants