Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2257

Run CMAP spec integration tests in the "mongo/integration" package

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Testing
    • None

    Description

      Some CMAP spec tests are integration tests that require connecting to an actual server and managing server failpoints. The CMAP spec tests currently rely on unexported functions and types in the x/mongo/driver/topology package. However, managing server failpoints requires using a mongo.Client, which can't be imported from the x/mongo/driver/topology package because it creates an import cycle.

      Make a new CMAP spec integration test runner in the mongo/integration (or similar) package that can run the CMAP spec integration tests and also manage server failpoints.

      Definition of done:

      • Create a CMAP spec integration test runner that can manage server failpoints.
      • Refactor the CMAP spec test runner to reduce code duplication between the x/mongo/driver/topology and mongo/integration packages.
      • Remove any prose-style tests that were added to cover CMAP spec integration test cases.
      • Remove the integration test skip from the CMAP spec test runner in x/mongo/driver/topology.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: