summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-06-14 14:57:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-14 16:36:58 +0000
commit66566c2abd31219d8ace67b4dce19621e49bf8ce (patch)
tree8973fb18da828ae66d6cdb08ff7cd4f8402e3c96 /jstests
parente7f4004be036eb1e009d54b913cebb140d6182c1 (diff)
downloadmongo-66566c2abd31219d8ace67b4dce19621e49bf8ce.tar.gz
SERVER-66963 Improve performance of NamespaceString and DatabaseName construction
Diffstat (limited to 'jstests')
-rw-r--r--jstests/auth/security_token.js8
-rw-r--r--jstests/auth/token_privileges.js7
2 files changed, 11 insertions, 4 deletions
diff --git a/jstests/auth/security_token.js b/jstests/auth/security_token.js
index 8ff91f8b6c2..9a4fa443535 100644
--- a/jstests/auth/security_token.js
+++ b/jstests/auth/security_token.js
@@ -153,13 +153,17 @@ function runTests(enabled) {
runTest(standalone, enabled);
MongoRunner.stopMongod(standalone);
}
- {
+
+ // TODO SERVER-66708 Run on replica sets as well. Currently the namespace from oplog entries
+ // won't be deserialized including the tenantId.
+ /*{
const rst = new ReplSetTest({nodes: 2, nodeOptions: opts});
rst.startSet({keyFile: 'jstests/libs/key1'});
rst.initiate();
runTest(rst.getPrimary(), enabled, rst);
rst.stopSet();
- }
+ }*/
+
// Do not test sharding since mongos must have an authenticated connection to
// all mongod nodes, and this conflicts with proxying tokens which we'll be
// performing in mongoq.
diff --git a/jstests/auth/token_privileges.js b/jstests/auth/token_privileges.js
index f7d5c567b88..2c10e9caf44 100644
--- a/jstests/auth/token_privileges.js
+++ b/jstests/auth/token_privileges.js
@@ -72,11 +72,14 @@ const opts = {
runTest(standalone);
MongoRunner.stopMongod(standalone);
}
-{
+
+// TODO SERVER-66708 Run on replica sets as well. Currently the namespace from oplog entries
+// won't be deserialized including the tenantId.
+/*{
const rst = new ReplSetTest({nodes: 2, nodeOptions: opts});
rst.startSet({keyFile: 'jstests/libs/key1'});
rst.initiate();
runTest(rst.getPrimary(), rst);
rst.stopSet();
-}
+}*/
})();