diff options
Diffstat (limited to 'jstests/ssl/libs/ssl_helpers.js')
-rw-r--r-- | jstests/ssl/libs/ssl_helpers.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/ssl/libs/ssl_helpers.js b/jstests/ssl/libs/ssl_helpers.js index 65ba385b321..969a812c8ed 100644 --- a/jstests/ssl/libs/ssl_helpers.js +++ b/jstests/ssl/libs/ssl_helpers.js @@ -204,6 +204,13 @@ function mixedShardTest(options1, options2, shouldSucceed, disableResumableRange 'CN=client,OU=KernelUser,O=MongoDB,L=New York City,ST=New York,C=US'; st.s.getDB('$external') .createUser({user: x509User, roles: [{role: '__system', db: 'admin'}]}); + + // Check orphan hook needs a privileged user to auth as. + // Works only for stand alone shards. + st._connections.forEach((shardConn) => { + shardConn.getDB('$external') + .createUser({user: x509User, roles: [{role: '__system', db: 'admin'}]}); + }); } st.stop(); |