summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2015-10-13 16:55:41 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2015-10-13 18:12:11 -0400
commitb3b1be01f9c8f2f6a9e303602fb070aa854f5cf3 (patch)
tree0fdb684dea28d2186eacc7d2df5cc42dbe21521c /jstests/noPassthroughWithMongod
parentfa0ea5f7e932f11dfefa24691b47c3d4a7230c71 (diff)
downloadmongo-b3b1be01f9c8f2f6a9e303602fb070aa854f5cf3.tar.gz
SERVER-20414 Move httpinterface tests into their own suite
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/httpinterface.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/jstests/noPassthroughWithMongod/httpinterface.js b/jstests/noPassthroughWithMongod/httpinterface.js
deleted file mode 100644
index d3804cc40f1..00000000000
--- a/jstests/noPassthroughWithMongod/httpinterface.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// SERVER-9137 test that the httpinterface parameter enables the web interface
-var conn = MongoRunner.runMongod({smallfiles: ""});
-var httpPort = conn.port + 1000;
-
-tryHttp = function() {
- try {
- var mongo = new Mongo('localhost:' + httpPort) ;
- }
- catch (e) {
- return false;
- }
- // if we managed to start and connect a new mongo then the web interface is working
- return true;
-}
-
-assert.throws(function() {assert.soon(tryHttp, "tryHttp failed, like we expected it to")});
-
-MongoRunner.stopMongod(conn);
-
-conn = MongoRunner.runMongod({port: conn.port, smallfiles: "", httpinterface: ""});
-assert.soon(tryHttp,
- "the web interface should be running on " + httpPort);
-
-MongoRunner.stopMongod(conn);