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

Relax audit_import_collection test assertion check

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Security
    • None
    • Fully Compatible
    • ALL
    • Security 2021-03-08
    • 24

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: