summaryrefslogtreecommitdiff
path: root/jstests/replsets/test-egress.js
diff options
context:
space:
mode:
authorMatthew Saltz <matthew.saltz@mongodb.com>2020-03-30 16:44:24 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-30 21:02:42 +0000
commit83ce74a769bca2a73f99a3e21f8bfa3209bd2586 (patch)
tree0be1474693fae68a3b3f763cc64900d9116973bf /jstests/replsets/test-egress.js
parenta1e3df295c30533361ecf84e47ed86d61421c276 (diff)
downloadmongo-83ce74a769bca2a73f99a3e21f8bfa3209bd2586.tar.gz
Revert "SERVER-46972 Create test-only command for establishing egress to another node"
This reverts commit 87aacb9b7b8fb5cbddfd14d0d309965bf3352d72.
Diffstat (limited to 'jstests/replsets/test-egress.js')
-rw-r--r--jstests/replsets/test-egress.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/jstests/replsets/test-egress.js b/jstests/replsets/test-egress.js
deleted file mode 100644
index ce0d38b3225..00000000000
--- a/jstests/replsets/test-egress.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Use TestOnly command replSetTestEgress to connect to members.
-
-(function() {
-'use strict';
-
-const rst = new ReplSetTest({nodes: 3});
-rst.startSet();
-rst.initiate();
-rst.awaitSecondaryNodes();
-
-const admin = rst.getPrimary().getDB('admin');
-
-jsTest.log('Connecting to any host');
-const anyHost = assert.commandWorked(admin.runCommand({replSetTestEgress: 1}));
-jsTest.log('Connected to ' + anyHost.target);
-
-rst.nodeList().forEach(function(host) {
- jsTest.log('Connecting to specific host: ' + host);
- const node = assert.commandWorked(admin.runCommand({replSetTestEgress: 1, target: host}));
- jsTest.log('Connected to specific host: ' + node.target);
- assert.eq(node.target, host);
-});
-
-rst.stopSet();
-}());