Skip to content

Commit

Permalink
fix(MongoBinaryDownloadUrl): change default mint version to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 8, 2024
1 parent 887f1a1 commit df97ea8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guides/supported-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Default version is `6`
(uses mongodb's `ubuntu` release)<br/>
Lowest supported Distribution version is `17`<br/>
Highest version is `21`<br/>
Default version is `20`
Default version is `21`

### Suse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
os: 'linux',
dist: 'ubuntu',
release:
// TODO: next-minor: change default mint release to 21
mintToUbuntuRelease[parseInt(os.release.split('.')[0])] || mintToUbuntuRelease[20],
mintToUbuntuRelease[parseInt(os.release.split('.')[0])] || mintToUbuntuRelease[21],
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -985,11 +985,11 @@ describe('MongoBinaryDownloadUrl', () => {
});
});

it('should default to Mint Version 20, if version cannot be found in lookup table', async () => {
it('should default to Mint Version 21, if version cannot be found in lookup table', async () => {
(downloadUrl.os as LinuxOS).release = '16'; // out-of-range version
downloadUrl.version = '6.0.4';
expect(await downloadUrl.getDownloadUrl()).toBe(
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.4.tgz'
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.4.tgz'
);
});

Expand Down

0 comments on commit df97ea8

Please sign in to comment.