blob: f8fa23d852af5f4bad0959c03919de455df02eb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Test that verifies getDiagnosticData returns FTDC data
*
* The test runs commands that are not allowed with security token: getDiagnosticData,
* getDiagnosticData.
* @tags: [
* not_allowed_with_security_token,
* # getDiagnosticData is not supported on mongos
* assumes_against_mongod_not_mongos,
* ]
*/
load('jstests/libs/ftdc.js');
(function() {
"use strict";
// Verify we require admin database
assert.commandFailed(db.diagdata.runCommand("getDiagnosticData"));
verifyGetDiagnosticData(db.getSiblingDB('admin'));
})();
|