diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-09-30 13:20:20 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-09-30 13:54:00 -0400 |
commit | 760a7c4776b89e223bd0b7f2766463e943a51ff9 (patch) | |
tree | 49fb09c09c6284b507c2c283c0accd9859f02657 /jstests/gle | |
parent | 07ede612d9daafb94388ffac0109741d41e96ef9 (diff) | |
download | mongo-760a7c4776b89e223bd0b7f2766463e943a51ff9.tar.gz |
SERVER-18400 remove unused passthrough tests
They are no longer executed and are unmaintained.
Diffstat (limited to 'jstests/gle')
-rw-r--r-- | jstests/gle/0_gle_basics_passthrough.js | 32 | ||||
-rw-r--r-- | jstests/gle/1_sharding_gle_basics_passthrough.js | 49 |
2 files changed, 0 insertions, 81 deletions
diff --git a/jstests/gle/0_gle_basics_passthrough.js b/jstests/gle/0_gle_basics_passthrough.js deleted file mode 100644 index ceb9b467612..00000000000 --- a/jstests/gle/0_gle_basics_passthrough.js +++ /dev/null @@ -1,32 +0,0 @@ -// -// Tests the core GLE behavior -// - -(function() { - "use strict" - - var conn = MongoRunner.runMongod({}); - - // Remember the global 'db' var - var lastDB = db; - - var coreTests = listFiles("jstests/gle/core"); - - coreTests.forEach( function(file) { - - // Reset global 'db' var - db = conn.getDB("testBasicGLE"); - - print(" *******************************************"); - print(" Test : " + file.name + " ..."); - - var testTime = Date.timeFunc( function() { load(file.name); }, 1); - print(" " + testTime + "ms"); - }); - - print("Tests completed."); - - // Restore 'db' var - db = lastDB; - MongoRunner.stopMongod(conn); - }());
\ No newline at end of file diff --git a/jstests/gle/1_sharding_gle_basics_passthrough.js b/jstests/gle/1_sharding_gle_basics_passthrough.js deleted file mode 100644 index 6b9f51c59cc..00000000000 --- a/jstests/gle/1_sharding_gle_basics_passthrough.js +++ /dev/null @@ -1,49 +0,0 @@ -// -// Tests basic mongos GLE behavior -// - -(function() { - "use strict" - - var passST = new ShardingTest({ name : "passST", shards : 2, mongos : 1 }); - var passMongos = passST.s0; - assert.commandWorked(passMongos.getDB("admin").runCommand({ enableSharding : "testSharded" })); - passST.ensurePrimaryShard('testSharded', 'shard0001'); - // Remember the global 'db' var - var lastDB = db; - - var coreTests = listFiles("jstests/gle/core"); - - var testsToSkip = new RegExp('[\\/\\\\](' + - 'error1|' + // getPrevError not supported in sharding - 'remove5|' + - 'unique2|' + - 'update4' + - ')\.js$'); - - coreTests.forEach( - function(file) { - - // Reset global 'db' var - db = passMongos.getDB("testBasicMongosGLE"); - - if (testsToSkip.test(file.name)) { - print(" !!!!!!!!!!!!!!! skipping test " + file.name); - return; - } - - print(" *******************************************"); - print(" Test : " + file.name + " ..."); - - - var testTime = Date.timeFunc( function() { load(file.name); }, 1); - print(" " + testTime + "ms"); - }); - - print("Tests completed."); - - // Restore 'db' var - db = lastDB; - passST.stop(); - -}()); |