From dbab86de31540e4156a6317e3dcf4522300f68ef Mon Sep 17 00:00:00 2001 From: hasezoey Date: Fri, 11 Oct 2024 10:54:24 +0200 Subject: [PATCH] test(MongoBinaryDownloadUrl): add test for fedora 40 --- .../__tests__/MongoBinaryDownloadUrl.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts index dacce919..f38050ff 100644 --- a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts +++ b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts @@ -1256,6 +1256,23 @@ describe('MongoBinaryDownloadUrl', () => { ); }); + it('should return a archive name for Fedora 40', async () => { + const du = new MongoBinaryDownloadUrl({ + platform: 'linux', + arch: 'x64', + version: '7.0.14', + os: { + os: 'linux', + dist: 'fedora', + release: '40', + }, + }); + + expect(await du.getDownloadUrl()).toBe( + 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-7.0.14.tgz' + ); + }); + it('fedora 36 & 7.0.13 x86_64', async () => { const du = new MongoBinaryDownloadUrl({ platform: 'linux',