[SERVER-71087] Add tests for aggregation stages that have a nss field as input or ouput Created: 04/Nov/22  Updated: 29/Oct/23  Resolved: 05/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-12-12, Server Serverless 2022-12-26, Server Serverless 2023-01-09
Participants:
Linked BF Score: 46
Story Points: 2

 Description   

Add tests to native_tenant_data_isolation_basic_security_token.js to test the following agg stages work correctly when sent with a security token.

The following agg stages take either a nss or db name as an input field:

  • $graphLookup
  • $lookup
  • $merge
  • $out
  • $unionWith

The above should all correctly construct NamespaceString/DatabaseName objects with a tenantId already.

The following agg stages include a nss or db name as output:

  • $collStats
    • We'll need to change the serialization points here and here to call NamespaceStringUtil::serialize.


 Comments   
Comment by Githook User [ 05/Jan/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-71087 Add tests for agg stages that have a nss field input/output
Branch: master
https://github.com/mongodb/mongo/commit/ede02d898c5f1f3c22cb09a7ea049cce05697774

Comment by xgen-buildbaron-user [ 04/Jan/23 ]

Ticket re-opened due to revert. serverless began a consistent failure of jstests/serverless/native_tenant_data_isolation_basic_security_token.js

Comment by Githook User [ 04/Jan/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com'}

Message: Revert "SERVER-71087 Add tests for agg stages that have a nss field input/output"

This reverts commit 852ba33156927868de6c6130d3911a2e6630d898.
Branch: master
https://github.com/mongodb/mongo/commit/eb1eb780fa454689150b601018bd4a3aa6d61ce8

Comment by Githook User [ 03/Jan/23 ]

Author:

{'name': 'cortrain', 'email': '95658946+cortrain@users.noreply.github.com', 'username': 'cortrain'}

Message: SERVER-71087 Add tests for agg stages that have a nss field input/output
Branch: master
https://github.com/mongodb/mongo/commit/852ba33156927868de6c6130d3911a2e6630d898

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