[DRIVERS-2076] Stop using admin database in specification tests Created: 09/Sep/19  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: Multiple
Fix Version/s: None

Type: Spec Change Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Driver Changes: Needed

 Description   

Several of our automated spec tests (e.g. FLE, retryable reads) require use of the "admin" database for CRUD operations. 

In practice, we generally don't recommend that applications store user data should in the admin database, and so by using the admin db in tests we end up not testing the behavior that actual applications would experience. In particular, in sharded clusters the admin database is actually located on the config servers, not one of the shards.  

See SERVER-42842 for one example of where using the admin database inadvertently broke driver tests on sharded clusters.



 Comments   
Comment by Rathi Gnanasekaran [ 28/Oct/19 ]

Review tests, prose tests and readme and update to use non-admin database (suggestion : test ).

Generated at Thu Feb 08 08:24:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.