[SERVER-78005] Replace DatabaseName::db() with other proper functions in unit test codes Created: 12/Jun/23  Updated: 29/Oct/23  Resolved: 20/Jun/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: Sophia Tan Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-77537 Make DatabaseName::db() private Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-06-26
Participants:
Story Points: 2

 Description   

We are making `DatabaseName::db()` private, we need to replace the related call sites in unit test:

  • use toString_forTest().
  • use DatabaseName::serialize() if the db name is global const db name `DatabaseName::k*`.


 Comments   
Comment by Githook User [ 20/Jun/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-78005: Replace DatabaseName::db() with other proper functions in unit test codes
Branch: master
https://github.com/mongodb/mongo/commit/d0c38012ec4995225a34e3e0eeb9ab31545918a3

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