jstests/ocsp/ocsp_rotate.js
// Returns whether a rotation works with the given mockOCSP server.
Returns whether a rotation works with the given mockOCSP server.
Returns whether a rotation works with the given mockOCSP server .
function tryRotate(fault) {
    const ocspServer = new MockOCSPServer(fault);
    ocspServer.start();
    const success = mongod.adminCommand({rotateCertificates: 1}).ok;
    ocspServer.stop();
    return success;
}
function tryRotate ( fault ) { const ocspServer = new MockOCSPServer ( fault ) ; ocspServer . start ( ) ; const success = mongod . adminCommand ( { rotateCertificates : 1 } ) . ok ; ocspServer . stop ( ) ; return success ; }
Returns whether a rotation works with the given mockOCSP server.
Returns whether a rotation works with the given mockOCSP server .