summaryrefslogtreecommitdiff
path: root/jstests/sharding/session_auth_metrics_mongos.js
blob: c6276ffbd67d0779d54a486c4eee53860c4be4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * Tests for the connection establishment metrics.
 *
 * @tags: [requires_fcv_62, featureFlagConnHealthMetrics]
 */
(function() {
"use strict";

load('jstests/libs/session_auth_metrics_helpers.js');

let st = new ShardingTest({shards: 0, other: {auth: ''}});
let conn = st.s;

jsTestLog("Setting up users and test data.");
let runTest = sessionAuthMetricsTest(conn, {preAuthDelayMillis: 50, postAuthDelayMillis: 100});

jsTestLog("Connecting to mongos and running the test.");
runTest();

st.stop();
})();