[SERVER-78536] Create a jstest lib for injecting tenant prefix into command objects Created: 29/Jun/23  Updated: 29/Oct/23  Resolved: 30/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Matt Broadstone
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-70547 Create multitenancySupport passthroug... Closed
is depended on by SERVER-78420 Create multitenancySupport passthroug... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-07-24, Server Serverless 2023-08-07, Server Serverless 2023-08-21, Server Serverless 2023-09-04
Participants:
Story Points: 3

 Description   

Create a jstest lib for injecting tenant prefix into command objects.

This lib should have the functions:

  • a function to inject tenant prefix in command first param if the command's first param is ns or db name.
  • a function to inject tenant prefix into any "ns" or "db" fields of the command objects.
  • a function to inject "expectPrefix:true" to the command objects 
  • a function to inject "$tenant" to the command objects


 Comments   
Comment by Githook User [ 30/Aug/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-78536 Add $tenant, expectPrefix to simulate_atlas_proxy
Branch: master
https://github.com/mongodb/mongo/commit/9d9e08c4cb66e048ad738949bcf6c197744fe048

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