[SERVER-77199] Change expected responses of {upsert: true} tests in updateOne_without_shard_key_basic.js Created: 16/May/23  Updated: 29/Oct/23  Resolved: 17/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Sanika Phanse (Inactive) Assignee: Sanika Phanse (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2023-05-29
Participants:
Story Points: 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



 Comments   
Comment by Githook User [ 17/May/23 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-77199 Change expected responses of upsert tests in updateOne_without_shard_key_basic.js
Branch: master
https://github.com/mongodb/mongo/commit/d71a066275aef95e15de4e9701dc94c217871f20

Generated at Thu Feb 08 06:34:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.