summaryrefslogtreecommitdiff
path: root/jstests/sharding/find_collname_uuid_test.js
blob: 846a24b0e21d226e2ed871c81e627da4c1c5bf43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * Test ClusterFindCmd with UUID for collection name fails (but does not crash)
 */
(function() {
"use strict";

var cmdRes;
var cursorId;

var st = new ShardingTest({shards: 2});
st.stopBalancer();

var db = st.s.getDB("test");

assert.commandWorked(db.adminCommand({enableSharding: db.getName()}));

cmdRes = db.adminCommand({find: UUID()});
assert.commandFailed(cmdRes);

st.stop();
})();