diff options
author | Ali Mir <ali.mir@mongodb.com> | 2020-09-16 19:00:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-01 19:17:34 +0000 |
commit | fa5aff14111de4fe23ae0094c597673cc4a48d3b (patch) | |
tree | 8aa602e82b2283c07592e7a547ac30a98a52489c /jstests/sslSpecial | |
parent | 6c6567ec4113ae3c3e760ae9a308139840aac85b (diff) | |
download | mongo-fa5aff14111de4fe23ae0094c597673cc4a48d3b.tar.gz |
SERVER-50651 Replace occurrences of isMaster command with hello in misc jstests
Diffstat (limited to 'jstests/sslSpecial')
-rw-r--r-- | jstests/sslSpecial/ssl_ecdsa_cert.js | 2 | ||||
-rw-r--r-- | jstests/sslSpecial/x509_cluster_auth_rollover.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sslSpecial/ssl_ecdsa_cert.js b/jstests/sslSpecial/ssl_ecdsa_cert.js index 331844162dc..25d58627220 100644 --- a/jstests/sslSpecial/ssl_ecdsa_cert.js +++ b/jstests/sslSpecial/ssl_ecdsa_cert.js @@ -31,7 +31,7 @@ const test = () => { '--port', mongod.port, '--eval', - 'db.isMaster()'), + 'db.hello()'), "mongo did not initialize properly"); // Add an X509 user diff --git a/jstests/sslSpecial/x509_cluster_auth_rollover.js b/jstests/sslSpecial/x509_cluster_auth_rollover.js index 8aa50d50902..b9d51c1ced3 100644 --- a/jstests/sslSpecial/x509_cluster_auth_rollover.js +++ b/jstests/sslSpecial/x509_cluster_auth_rollover.js @@ -56,7 +56,7 @@ const rolloverConfig = function(newConfig) { assert.soon(() => { let primary = rst.getPrimary(); - assert.commandWorked(primary.getDB("admin").runCommand({isMaster: 1})); + assert.commandWorked(primary.getDB("admin").runCommand({hello: 1})); assert.commandWorked(primary.getDB('test').a.insert({a: 1, str: 'TESTTESTTEST'})); // Start a shell that connects to the server with the current CA/cert configuration |