Files
mongo/jstests/core/diagnostics/diagdata.js
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00

21 lines
685 B
JavaScript

/*
* Test that verifies getDiagnosticData returns FTDC data
*
* @tags: [
* # The test runs commands that are not allowed with security token: getDiagnosticData,
* # getDiagnosticData.
* not_allowed_with_signed_security_token,
* # getDiagnosticData is not supported on mongos
* assumes_against_mongod_not_mongos,
* # The config fuzzer may try to disable FTDC, and that would cause this test to fail.
* does_not_support_config_fuzzer,
* ]
*/
import {verifyGetDiagnosticData} from "jstests/libs/ftdc.js";
// Verify we require admin database
assert.commandFailed(db.diagdata.runCommand("getDiagnosticData"));
verifyGetDiagnosticData(db.getSiblingDB("admin"));