summaryrefslogtreecommitdiff
path: root/jstests/auth/system_auth_scram_mechs.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/system_auth_scram_mechs.js')
-rw-r--r--jstests/auth/system_auth_scram_mechs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/auth/system_auth_scram_mechs.js b/jstests/auth/system_auth_scram_mechs.js
index 08934385d05..e411a6dda6b 100644
--- a/jstests/auth/system_auth_scram_mechs.js
+++ b/jstests/auth/system_auth_scram_mechs.js
@@ -1,6 +1,5 @@
/**
- * Tests that the __system user can auth using both SCRAM-SHA-1 and SCRAM-SHA-256
- *
+ * Tests that the __system user can auth using SCRAM-SHA-256
* @tags: [requires_replication]
*/
(function() {
@@ -17,8 +16,9 @@ jsTestLog("Testing scram-sha-256");
assert.eq(db.auth({mechanism: 'SCRAM-SHA-256', user: '__system', pwd: keyfileContents}), 1);
db.logout();
+// Test that SCRAM-SHA-1 fails explicitly
jsTestLog("Testing scram-sha-1");
-assert.eq(db.auth({mechanism: 'SCRAM-SHA-1', user: '__system', pwd: keyfileContents}), 1);
+assert.eq(db.auth({mechanism: 'SCRAM-SHA-1', user: '__system', pwd: keyfileContents}), 0);
rs.stopSet();
})();