Skip to content

Commit 1cd516f

Browse files
committed
test(MongoBinaryDownloadUrl): add test for fedora 40 & 8.0.1
re #896
1 parent 2e7b205 commit 1cd516f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,23 @@ describe('MongoBinaryDownloadUrl', () => {
12131213
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-7.0.14.tgz'
12141214
);
12151215
});
1216+
1217+
it('fedora 40 (x86_64) & 8.0.1 (using rhel8)', async () => {
1218+
const du = new MongoBinaryDownloadUrl({
1219+
platform: 'linux',
1220+
arch: 'x64',
1221+
version: '8.0.1',
1222+
os: {
1223+
os: 'linux',
1224+
dist: 'fedora',
1225+
release: '40',
1226+
},
1227+
});
1228+
1229+
expect(await du.getDownloadUrl()).toBe(
1230+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-8.0.1.tgz'
1231+
);
1232+
});
12161233
});
12171234

12181235
describe('for amazon', () => {

0 commit comments

Comments
 (0)