[SERVER-65713] Add test to validate tenantId when used as part of DatabaseName in CollectionCatalogTest Created: 15/Apr/22  Updated: 30/Mar/23  Resolved: 30/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.1 Desired
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Hugh Tong (Inactive) Assignee: [DO NOT USE] Backlog - Server Serverless (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Serverless
Participants:

 Description   

DatabaseName will contain two strings: a dbString which contains just (the string representation of) the database name, and a fullString which contains the tenantId-prefixed database name.  Some of the new functions are tenantId aware, and are able to separately access the tenantId from the database name, but many functions are not tenantId aware, and will need to be passed the fullString in the serverless environment.  However, since in the current stage of development the tenantId is always prefixed, we have that fullString == dbString hence tests are passing without issues.  We need to add a test that validates DatabaseName with fullString != dbString will work with both tenant aware and tenant unaware functions.


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