summaryrefslogtreecommitdiff
path: root/jstests/sharding/diffservers1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-12 13:27:04 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-12 13:27:04 -0400
commitc628c7b93fe5f4f5ddae758da9973400aab26721 (patch)
treed4afba0431bca99c96def0c7ad7b995baef3a52f /jstests/sharding/diffservers1.js
parent25ab0cc339724ab4dad7fa724a628e11f0af5ee4 (diff)
downloadmongo-c628c7b93fe5f4f5ddae758da9973400aab26721.tar.gz
don't allow shards on localhost unless allowLocal : true SHARDING-47
Diffstat (limited to 'jstests/sharding/diffservers1.js')
-rw-r--r--jstests/sharding/diffservers1.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/diffservers1.js b/jstests/sharding/diffservers1.js
index 1a2f221fdaf..6497bc0f56d 100644
--- a/jstests/sharding/diffservers1.js
+++ b/jstests/sharding/diffservers1.js
@@ -14,6 +14,7 @@ assert( 3 , test1.count() );
assert( ! s.admin.runCommand( { addshard: "sdd$%" } ).ok , "bad hostname" );
assert( ! s.admin.runCommand( { addshard: "127.0.0.1:43415" } ).ok , "host not up" );
+assert( ! s.admin.runCommand( { addshard: "127.0.0.1:43415" , allowLocal : true } ).ok , "host not up" );
s.stop();