summaryrefslogtreecommitdiff
path: root/jstests/ssl/upgrade_noauth_to_x509_ssl.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/ssl/upgrade_noauth_to_x509_ssl.js')
-rw-r--r--jstests/ssl/upgrade_noauth_to_x509_ssl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/ssl/upgrade_noauth_to_x509_ssl.js b/jstests/ssl/upgrade_noauth_to_x509_ssl.js
index fa4c58f66b1..ba1f53bdb8e 100644
--- a/jstests/ssl/upgrade_noauth_to_x509_ssl.js
+++ b/jstests/ssl/upgrade_noauth_to_x509_ssl.js
@@ -35,7 +35,7 @@ load('jstests/ssl/libs/ssl_helpers.js');
{createUser: 'root', pwd: 'root', roles: ['root'], writeConcern: {w: 3}}));
assert.writeOK(testDB.a.insert({a: 1, str: 'TESTTESTTEST'}));
- assert.eq(1, testDB.a.find().itcount(), 'Error interacting with replSet');
+ assert.eq(1, testDB.a.count(), 'Error interacting with replSet');
print('=== UPGRADE transition to x509/allowSSL -> transition to x509/preferSSL ===');
rst.nodes.forEach(function(node) {
@@ -44,7 +44,7 @@ load('jstests/ssl/libs/ssl_helpers.js');
rst.awaitSecondaryNodes();
testDB = rst.getPrimary().getDB(dbName);
assert.writeOK(testDB.a.insert({a: 1, str: 'TESTTESTTEST'}));
- assert.eq(2, testDB.a.find().itcount(), 'Error interacting with replSet');
+ assert.eq(2, testDB.a.count(), 'Error interacting with replSet');
print('=== UPGRADE transition to x509/preferSSL -> x509/requireSSL ===');
rst.upgradeSet(x509RequireSSL, 'root', 'root');
@@ -52,7 +52,7 @@ load('jstests/ssl/libs/ssl_helpers.js');
// upgradeSet leaves its connections logged in as root
testDB = rst.getPrimary().getDB(dbName);
assert.writeOK(testDB.a.insert({a: 1, str: 'TESTTESTTEST'}));
- assert.eq(3, testDB.a.find().itcount(), 'Error interacting with replSet');
+ assert.eq(3, testDB.a.count(), 'Error interacting with replSet');
rst.stopSet();
}());