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

Ability to mock command responses on the server

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None

      Some tests require reproduction of non-trivial conditions such as network instability between cluster members.
      It'd be great if we can have a mechanism similar to configureFailPoint: "failCommand" where we'll be able to mock the server response.
      Ideally we'd be able to replace parts of the response - for example, set commitmentState: false for replSetGetConfig.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            tomer.yakir@mongodb.com Tomer Yakir
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: