From 1cd516f5b9497f50f14a047dceaaa7be8028dc99 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Thu, 31 Oct 2024 12:09:54 +0100 Subject: [PATCH] test(MongoBinaryDownloadUrl): add test for fedora 40 & 8.0.1 re #896 --- .../__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 623b37d9..f2a9a323 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 @@ -1213,6 +1213,23 @@ describe('MongoBinaryDownloadUrl', () => { 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-7.0.14.tgz' ); }); + + it('fedora 40 (x86_64) & 8.0.1 (using rhel8)', async () => { + const du = new MongoBinaryDownloadUrl({ + platform: 'linux', + arch: 'x64', + version: '8.0.1', + os: { + os: 'linux', + dist: 'fedora', + release: '40', + }, + }); + + expect(await du.getDownloadUrl()).toBe( + 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-8.0.1.tgz' + ); + }); }); describe('for amazon', () => {