[SERVER-78300] Use expectPrefix in the tenant aware response checker Created: 21/Jun/23  Updated: 29/Oct/23  Resolved: 09/Aug/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: Hugh Tong (Inactive) Assignee: Didier Nadeau
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-74284 Fix existing tests for command serial... Closed
is depended on by SERVER-70547 Create multitenancySupport passthroug... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-08-07, Server Serverless 2023-08-21
Participants:
Story Points: 2

 Description   

tenant_aware_response_checker.js currently does not determine the response result according to the expectPrefix field used in the request, which affects the command response following SERVER-74284.  We need to update the lib (used by inject_dollar_tenant and inject_security_token) to properly key on expectPrefix in order to determine whether or not the response output is correct (ie. contains or is absent of a prefixed tenantId).

As SERVER-70547 depends on these overrides interacting with the inject_tenant_prefix override, we might also want to make sure these overrides are able to inject the `expectPrefix` field as needed as well.



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

Author:

{'name': 'Didier Nadeau', 'email': 'didier.nadeau@mongodb.com', 'username': 'nadeaudi'}

Message: SERVER-78300 Use expectPrefix in the tenant aware response checker
Branch: master
https://github.com/mongodb/mongo/commit/655c849f27de9a429d8bce36bf97f2121a426eb2

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