blob: 35f7305ff4a126beff3e4b1d36a8bcd81f6d4f3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
jsTest.log("Testing spaces in mongodump command-line options...");
var mongod = MongoRunner.runMongod();
var coll = mongod.getDB("spaces").coll;
coll.drop();
coll.insert({a: 1});
coll.insert({a: 2});
var query = "{\"a\": {\"$gt\": 1} }";
assert(!MongoRunner.runMongoTool(
"mongodump",
{"host": "127.0.0.1:" + mongod.port, "db": "spaces", "collection": "coll", "query": query}));
MongoRunner.stopMongod(mongod);
jsTest.log("Test completed successfully");
|