summaryrefslogtreecommitdiff
path: root/jstests/auth/listcommands_preauth_sharded_cluster.js
blob: 325f27cf4796426debb868b991f1891598812804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Make sure that listCommands on sharded clusters doesn't require authentication.
 * @tags: [requires_sharding]
 */
(function() {
'use strict';

load("jstests/auth/listcommands_preauth_base.js");

const st =
    new ShardingTest({shards: 1, mongos: 1, config: 1, other: {keyFile: 'jstests/libs/key1'}});
runTest(st.s0);
st.stop();
})();