Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53400

Write tests for verifying client metadata

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • 4

      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.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: