[SERVER-45702] Await replication after configuring test setup in ldap_authz_lib.js Created: 22/Jan/20  Updated: 29/Oct/23  Resolved: 02/Mar/20

Status: Closed
Project: Core Server
Component/s: Security, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.3.5

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Spencer Jackson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2020-02-24, Security 2020-03-09
Participants:
Linked BF Score: 12

 Description   

ldap_authz_lib.js creates some useful users and roles that are required by later test execution. However, it can create these on a mongos. Mongos can only issue createUser and createRole to the Config Server ReplicaSet with wMajority. Because the test will want to probe all nodes of the CSRS, we actually want wAll. Because we cannot easily make mongos do what we want, and wMajority is fine for production deployments, we should await replication of our operations after invoking setupTest.



 Comments   
Comment by Githook User [ 02/Mar/20 ]

Author:

{'name': 'Spencer Jackson', 'username': 'spencerjackson', 'email': 'spencer.jackson@mongodb.com'}

Message: SERVER-45702 Wait for user propagation in ldap_authz_lib.js
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/66aaace2420d953a9fe481499675381da16a6e53

Generated at Thu Feb 08 05:09:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.