jstests/noPassthrough/sharded_index_consistency_metrics.js
/*
 * Asserts that the serverStatus output does not contain the index consistency metrics
 * both by default and when 'shardedIndexConsistency' is explicitly included.
 */
Asserts that the serverStatus output does not contain the index consistency metrics
both by default and when 'shardedIndexConsistency' is explicitly included.
Asserts that the serverStatus output does not contain the index consistency metrics both by default and when ' shardedIndexConsistency ' is explicitly included .
function assertServerStatusNotContainIndexMetrics(conn) {
    let res = assert.commandWorked(conn.adminCommand({serverStatus: 1}));
    assert.eq(undefined, res.shardedIndexConsistency, tojson(res.shardedIndexConsistency));
    res = assert.commandWorked(conn.adminCommand({serverStatus: 1, shardedIndexConsistency: 1}));
    assert.eq(undefined, res.shardedIndexConsistency, tojson(res.shardedIndexConsistency));
}
function assertServerStatusNotContainIndexMetrics ( conn ) { let res = assert . commandWorked ( conn . adminCommand ( { serverStatus : 1 } ) ) ; assert . eq ( undefined , res . shardedIndexConsistency , tojson ( res . shardedIndexConsistency ) ) ; res = assert . commandWorked ( conn . adminCommand ( { serverStatus : 1 , shardedIndexConsistency : 1 } ) ) ; assert . eq ( undefined , res . shardedIndexConsistency , tojson ( res . shardedIndexConsistency ) ) ; }
Asserts that the serverStatus output does not contain the index consistency metrics
 both by default and when 'shardedIndexConsistency' is explicitly included.
Asserts that the serverStatus output does not contain the index consistency metrics both by default and when ' shardedIndexConsistency ' is explicitly included .