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

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

let rootCreds = {user: 'root', pwd: 'root'};
let conn = MongoRunner.runMongod({auth: ''});

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

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

MongoRunner.stopMongod(conn, null, rootCreds);
})();