[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: |