[SERVER-53400] Write tests for verifying client metadata Created: 16/Dec/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-53334 Hitting unexpected invariant failure,... Closed
Assigned Teams:
Service Arch
Participants:
Story Points: 4

 Description   

We include the ClientMetadata for egress here and here. However, we lack integration tests to verify that it is parsed correctly here and here. To achieve this, we need to use some way to establish an egress connection without the initial handshake. Then we can run arbitrary OP_QUERY/OP_MSG hello commands and test a wider space of handshaking patterns.

Acceptance criteria:

  • We should have tests that would have caught the bug described in SERVER-53334. This could be in the form of unit tests for ClientMetadata (there currently aren't any that test ClientMetadata::setFromMetadata), unit tests for service entry point/strategy, or integration tests.

Generated at Thu Feb 08 05:30:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.