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

Write tests for verifying client metadata

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: