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

Relax audit_import_collection test assertion check

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Security 2021-03-08
    • 24

      Currently, the audit_import_collection.js test checks that the audit event emitted right after the `importCollection` command is of atype `importCollection`. Due to work by the Security team to increase the coverage of audit events (namely `createIndex`), this is no longer guaranteed to be true and is responsible for BF-20177. The assertion check should be relaxed to use `audit.assertEntry()`, which will check that the appropriate `importCollection` audit entry has been emitted within a default timeout after the `importCollection` command has run.

            Assignee:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: