summaryrefslogtreecommitdiff
path: root/jstests/auth/role_management_commands_sharded_wc_majority.js
blob: 6bda9c5288a047056da11a0e3a6f98770220bf9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * @tags: [requires_sharding]
 */

(function() {
    'use strict';

    load('jstests/auth/role_management_commands_lib.js');

    // TODO: Remove 'shardAsReplicaSet: false' when SERVER-32672 is fixed.
    var st = new ShardingTest({
        shards: 2,
        config: 3,
        keyFile: 'jstests/libs/key1',
        useHostname: false,
        other: {shardAsReplicaSet: false}
    });
    runAllRoleManagementCommandsTests(st.s, {w: 'majority', wtimeout: 60 * 1000});
    st.stop();
})();