[CDRIVER-2753] Thoroughly test options inheritance Created: 17/Jul/18  Updated: 28/Oct/23  Resolved: 01/Aug/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.13.0

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-2656 Refactor mongoc_cmd_parts_assemble, p... Backlog
Epic Link: Test option inheritance

 Description   

The tests written for CDRIVER-2705 show a nice example of how we could test inheritance of options from the client, database, and collection.

We could iterate over combinations of different options and all functions that take a read preference, read concern, and write concern, and ensure the inheritance works as we expect.



 Comments   
Comment by Githook User [ 01/Aug/18 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2753 test bulk options inheritance
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5bc43d9a1d43c47b25eebec0a63c0a33da60eb45

Comment by Githook User [ 31/Jul/18 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2753 thoroughly test options inheritance
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/988164f1ef6d78bebd1a4681a47a6ae56b40bf34

Comment by Githook User [ 30/Jul/18 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2753 test mongoc_client_get_database
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/14abeee98cdeee618a932d7d5e23903824d06aa3

Comment by Githook User [ 28/Jul/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CDRIVER-2753 test code: switch missing default
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2b7a3ffb83b0d19356ab0512cbbc3fc68b4c07ee

Comment by Githook User [ 28/Jul/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CDRIVER-2753 leak in options tests
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/bee12b46acbca0b27425cbab77075fb4ef67be07

Comment by Githook User [ 28/Jul/18 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2753 options inheritance tests

Test that functions which take readConcern, writeConcern, and read prefs
from "opts" properly inherit their options from the client, database, or
collection object, and prefer the options in "opts" if they are set.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8707267f7b441bcf665a48cfd53f10185fde44e7

Generated at Wed Feb 07 21:16:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.