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

FSM tests - add cleanupOptions for runWorkloads

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.7
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible
    • CAP - 3.1.7

      The FSM test suite is now being used for other purposes:

      • Powercycle testing
      • Backup/restore

      It provides very good coverage of many DB operations. One issue that that conflicts wiht these others tests is that as the workloads complete the cleanup drops all databases, including ones not used in the FSM suite. A cleanupOptions object will be used to change the behavior of this cleanup:

      • {dropOnlyCreatedDatabases: true}
      • {dropDatabaseBlacklist: [] }

      If the dropOnlyCreatedDatabases option is false, the behavior remains as is. If true, then the dropAllDatabases will only drop databases that have been created during the FSM testing. This requires another mechanism to register which databases are created.

      The second option, dropDatabaseBlacklist, is more straight forward and permits the blacklist to be defined of which databases are not dropped. Note that this extends the existing blacklist from ['admin', 'config', 'local', '$external'].

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: