summaryrefslogtreecommitdiff
path: root/jstests/core/diagdata.js
blob: 2f2c224304ea61ab85ae1a35f619d16e10664a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test that verifies getDiagnosticData returns FTDC data
// @tags: [
//     # getDiagnosticData command is not available on embedded
//     incompatible_with_embedded,
// ]

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

(function() {
"use strict";

// Verify we require admin database
assert.commandFailed(db.diagdata.runCommand("getDiagnosticData"));

verifyGetDiagnosticData(db.getSiblingDB('admin'));
})();