jstests/libs/cluster_server_parameter_utils.js
// Assert that explicitly getting a disabled cluster server parameter fails on a node.
Assert that explicitly getting a disabled cluster server parameter fails on a node.
Assert that explicitly getting a disabled cluster server parameter fails on a node .
function testExplicitDisabledGetClusterParameter(conn) {
    const adminDB = conn.getDB('admin');
    assert.commandFailedWithCode(
        adminDB.runCommand({getClusterParameter: "testIntClusterParameter"}), ErrorCodes.BadValue);
    assert.commandFailedWithCode(
        adminDB.runCommand(
            {getClusterParameter: ["changeStreamOptions", "testIntClusterParameter"]}),
        ErrorCodes.BadValue);
}
function testExplicitDisabledGetClusterParameter ( conn ) { const adminDB = conn . getDB ( 'admin' ) ; assert . commandFailedWithCode ( adminDB . runCommand ( { getClusterParameter : "testIntClusterParameter" } ) , ErrorCodes . BadValue ) ; assert . commandFailedWithCode ( adminDB . runCommand ( { getClusterParameter : [ "changeStreamOptions" , "testIntClusterParameter" ] } ) , ErrorCodes . BadValue ) ; }
Assert that explicitly getting a disabled cluster server parameter fails on a node.
Assert that explicitly getting a disabled cluster server parameter fails on a node .