jstests/free_mon/libs/free_mon.js
/**
 * Validate Free Monitoring Replica Set consistency
 * WARNING: Not valid if secondary is started with enableFreeMonitoring since it registers before it
 * joins the replica set.
 *
 * @param {object} rst
 */
Validate Free Monitoring Replica Set consistency
WARNING: Not valid if secondary is started with enableFreeMonitoring since it registers before it
joins the replica set.

@param {object} rst
Validate Free Monitoring Replica Set consistency WARNING : Not valid if secondary is started with enableFreeMonitoring since it registers before it joins the replica set . @param { object } rst
function ValidateFreeMonReplicaSet(rst) {
    'use strict';
    const primary_status = FreeMonGetStatus(rst.getPrimary());
    const primary_url = primary_status.url;
    const secondary_status = FreeMonGetStatus(rst.getSecondary());
    const secondary_url = secondary_status.url;
    assert.eq(primary_url,
              secondary_url,
              `DUMP ${tojson(primary_status)} == ${tojson(secondary_status)}`);
}
function ValidateFreeMonReplicaSet ( rst ) { 'use strict' ; const primary_status = FreeMonGetStatus ( rst . getPrimary ( ) ) ; const primary_url = primary_status . url ; const secondary_status = FreeMonGetStatus ( rst . getSecondary ( ) ) ; const secondary_url = secondary_status . url ; assert . eq ( primary_url , secondary_url , ` ${ tojson ( primary_status ) } ${ tojson ( secondary_status ) } ` ) ; }
Validate Free Monitoring Replica Set consistency
 WARNING: Not valid if secondary is started with enableFreeMonitoring since it registers before it
 joins the replica set.
Validate Free Monitoring Replica Set consistency WARNING : Not valid if secondary is started with enableFreeMonitoring since it registers before it joins the replica set .