mirror of https://github.com/mongodb/mongo
17 lines
570 B
JavaScript
17 lines
570 B
JavaScript
// Storage Node Watchdog - validate watchdog monitors --auditpath
|
|
//
|
|
import {CharybdefsControl} from "jstests/watchdog/lib/charybdefs_lib.js";
|
|
import {testFuseAndMongoD} from "jstests/watchdog/lib/wd_test_common.js";
|
|
|
|
if (assert.commandWorked(db.runCommand({buildInfo: 1})).modules.includes("enterprise")) {
|
|
let control = new CharybdefsControl("auditpath_hang");
|
|
|
|
const auditPath = control.getMountPath();
|
|
|
|
testFuseAndMongoD(control, {
|
|
auditDestination: "file",
|
|
auditFormat: "JSON",
|
|
auditPath: auditPath + "/auditLog.json",
|
|
});
|
|
}
|