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

Add matcher helper to match request BSON object

    • Fully Compatible
    • Repl 2020-11-16, Repl 2020-11-30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It's common to match the fields of a request, like

      { "find": "oplog.rs" }

      , we need to make that easier. We could integrate query expression matcher to the mock framework. It may look like

      mock.expect(BSON("find" << "oplog.rs"), <response>).times(1);
      

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None