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

Change expected responses of {upsert: true} tests in updateOne_without_shard_key_basic.js

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding NYC 2023-05-29
    • 1

    Description

      These replacement style upserts should not include the query in the resulting document. True database response is correct, the testing framework only checks the first element of the document in `expectedResponse`, which is why the test isn't failing.

      https://github.com/mongodb/mongo/blob/0249b20d05c58ceb47375413e9eb47e028859489/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js#L384-L416

      Attachments

        Activity

          People

            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: