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

Write unit tests for setup_multiversion_mongodb.py

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:

      Description

      Write tests to prevent unexpected changes in full.json or unexpected invocations in evergreen.yml from breaking multiversion tests. The self test should check that
      a correct download is generated.

      One way to do this is to test MultiVersionDownloader.download_links()
      and ensure that it generates the correct download URLs for a different
      combinations of cmdline arguments.

      I've found Python's "mock" library helpful for overriding specific functions and
      could be used here.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-stm Backlog - Server Tooling and Methods (STM)
              Reporter:
              robert.guo Robert Guo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: