[SERVER-33565] Write unit tests for setup_multiversion_mongodb.py Created: 01/Mar/18  Updated: 27/Oct/23  Resolved: 05/Nov/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.7.2
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Gone away Votes: 0
Labels: stm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-33564 Unit test for test_setup_multiversion... Closed
Assigned Teams:
Server Tooling & Methods
Participants:

 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.



 Comments   
Comment by Brooke Miller [ 05/Nov/21 ]

We now have unit tests, so closing this as gone away.

Generated at Thu Feb 08 04:33:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.