diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-12 13:27:04 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-12 13:27:04 -0400 |
commit | c628c7b93fe5f4f5ddae758da9973400aab26721 (patch) | |
tree | d4afba0431bca99c96def0c7ad7b995baef3a52f /jstests/sharding/diffservers1.js | |
parent | 25ab0cc339724ab4dad7fa724a628e11f0af5ee4 (diff) | |
download | mongo-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.js | 1 |
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(); |