summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/create_collection_type_lsm.js
blob: f74673f5288446bf3fb2eb8b532c2e082a63ea40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * Verify that collections cannot be created with the WiredTiger 'type=lsm' option.
 *
 * @tags: [
 *  requires_wiredtiger
 * ]
 */

(function() {
'use strict';

const conn = MongoRunner.runMongod();
const db = conn.getDB("test");
const collectionConfig = {
    storageEngine: {wiredTiger: {configString: "type=lsm"}}
};
const createResult = db.createCollection("coll", collectionConfig);
assert.commandFailedWithCode(createResult, 6627201);

MongoRunner.stopMongod(conn);
})();