jstests/noPassthrough/collmod_index_noop.js
// Validate that the generated oplog entries filtered by given filter are what we expect.
Validate that the generated oplog entries filtered by given filter are what we expect.
Validate that the generated oplog entries filtered by given filter are what we expect .
function validateCollModOplogEntryCount(hiddenFilter, expectedCount) {
    let filter = {
        "ns": `${dbName}.$cmd`,
        "o.collMod": collName,
    };
    filter = Object.assign(filter, hiddenFilter);
    const oplogDocs = oplogColl.find(filter).toArray();
    assert.eq(oplogDocs.length, expectedCount, tojson(oplogDocs));
}
function validateCollModOplogEntryCount ( hiddenFilter , expectedCount ) { let filter = { "ns" : ` ${ dbName } ` , "o.collMod" : collName , } ; filter = Object . assign ( filter , hiddenFilter ) ; const oplogDocs = oplogColl . find ( filter ) . toArray ( ) ; assert . eq ( oplogDocs . length , expectedCount , tojson ( oplogDocs ) ) ; }
Validate that the generated oplog entries filtered by given filter are what we expect.
Validate that the generated oplog entries filtered by given filter are what we expect .