jstests/libs/clustered_collections/clustered_collection_util.js
// The clusteredIndex should appear in listIndexes with additional "clustered" field.
The clusteredIndex should appear in listIndexes with additional "clustered" field.
The clusteredIndex should appear in listIndexes with additional " clustered " field .
static validateListIndexes(db, collName, createOptions) {
        const fullCreateOptions = ClusteredCollectionUtil.constructFullCreateOptions(createOptions);
        const listIndexes = assert.commandWorked(db[collName].runCommand("listIndexes"));
        const expectedListIndexesOutput =
            Object.extend({clustered: true}, fullCreateOptions.clusteredIndex);
        assert.docEq(listIndexes.cursor.firstBatch[0], expectedListIndexesOutput);
    }
static validateListIndexes ( db , collName , createOptions ) { const fullCreateOptions = ClusteredCollectionUtil . constructFullCreateOptions ( createOptions ) ; const listIndexes = assert . commandWorked ( db [ collName ] . runCommand ( "listIndexes" ) ) ; const expectedListIndexesOutput = Object . extend ( { clustered : true } , fullCreateOptions . clusteredIndex ) ; assert . docEq ( listIndexes . cursor . firstBatch [ 0 ] , expectedListIndexesOutput ) ; }
The clusteredIndex should appear in listIndexes with additional "clustered" field.
The clusteredIndex should appear in listIndexes with additional " clustered " field .