[CXX-1193] Only assert fields present in expected document in CRUD tests Created: 17/Jan/17  Updated: 07/Feb/17  Resolved: 06/Feb/17

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

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


 Description   

Currently, the automated CRUD spec tests require the server version to be passed into the test-specific logic so that the replaceOne tests can suppress returning the upsertedId for server versions less than 2.6. It would be better to avoid doing a version check within the specific test logic, so instead the tests should rebuild the actual document returned from the server with only the fields that are present in the document that the JSON spec file expects.



 Comments   
Comment by Githook User [ 07/Feb/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1193 Only assert fields present in expected document in CRUD tests
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3c492e1c623344885dcdd584928d177fb7d858c9

Generated at Wed Feb 07 22:01:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.