jstests/core/user_management_helpers.js
// It is not a comprehensive test of the functionality of the user manipulation commands
It is not a comprehensive test of the functionality of the user manipulation commands
It is not a comprehensive test of the functionality of the user manipulation commands
function assertHasRole(rolesArray, roleName, roleDB) {
    for (let i in rolesArray) {
        const curRole = rolesArray[i];
        if (curRole.role == roleName && curRole.db == roleDB) {
            return;
        }
    }
    assert(false, "role " + roleName + "@" + roleDB + " not found in array: " + tojson(rolesArray));
}
function assertHasRole ( rolesArray , roleName , roleDB ) { for ( let i in rolesArray ) { const curRole = rolesArray [ i ] ; if ( curRole . role == roleName && curRole . db == roleDB ) { return ; } } assert ( false , "role " + roleName + "@" + roleDB + " not found in array: " + tojson ( rolesArray ) ) ; }
It is not a comprehensive test of the functionality of the user manipulation commands
It is not a comprehensive test of the functionality of the user manipulation commands