Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-86509

Provide access to audit::MockAppender from jstests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security

      SERVER-83076 introduced a MockAppender class which audits to an in-memory buffer.  This mock appender could potentially speed up the audit jstest suite by avoiding repeated disk reads from the AuditSpooler JS class.

      This will likely necessitate expanding the MockAppender from only last-line to a FIFO buffer of N lines (N being configurable) and a counter.  A test-only command would be required to provide a means for querying these count/buffer values.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: