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

GODRIVER-2943 Re-organize client entity expected log messages #1366

Merged
merged 12 commits into from
Dec 7, 2023

Conversation

prestonvasquez
Copy link
Collaborator

GODRIVER-2943

Summary

Since logs are client-oriented, this PR proposes a method of storing the logs onto the testing context to be retrieved by a client ID, rather than aggregating all of the logs for each test case.

Background & Motivation

@prestonvasquez prestonvasquez changed the title Godriver 2943 GODRIVER-2943 Re-organize client entity expected log messages Aug 29, 2023
@prestonvasquez prestonvasquez changed the base branch from master to v1 September 13, 2023 18:05
@@ -84,6 +84,28 @@ func entities(ctx context.Context) *EntityMap {
return ctx.Value(entitiesKey).(*EntityMap)
}

func expectedLogMessageCount(ctx context.Context) int {
return ctx.Value(expectedLogMessageCountKey).(int)
func expectedLogMessagesCount(ctx context.Context, clientID string) int {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UTR expects this data to be client-specific. Before this change, this data was held at the test level which is incorrect. Suggest storing log message information on the context at the client-level.

blink1073
blink1073 previously approved these changes Oct 6, 2023
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

qingyang-hu
qingyang-hu previously approved these changes Oct 10, 2023
Copy link

API Change Report

No changes found!

@prestonvasquez prestonvasquez merged commit 2f0917c into mongodb:v1 Dec 7, 2023
33 of 37 checks passed
@prestonvasquez prestonvasquez deleted the GODRIVER-2943 branch December 7, 2023 23:34
blink1073 pushed a commit to blink1073/mongo-go-driver that referenced this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants