Skip to content

Commit dece2f9

Browse files
committed
test(MongoBinaryDownloadUrl): add tests for fedora 35 and 36
re #673
1 parent 58d3ad4 commit dece2f9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,40 @@ describe('MongoBinaryDownloadUrl', () => {
546546
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-4.0.24.tgz'
547547
);
548548
});
549+
550+
it('should return a archive name for Fedora 35', async () => {
551+
const du = new MongoBinaryDownloadUrl({
552+
platform: 'linux',
553+
arch: 'x64',
554+
version: '5.0.8',
555+
os: {
556+
os: 'linux',
557+
dist: 'fedora',
558+
release: '35',
559+
},
560+
});
561+
562+
expect(await du.getDownloadUrl()).toBe(
563+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-5.0.8.tgz'
564+
);
565+
});
566+
567+
it('should return a archive name for Fedora 36', async () => {
568+
const du = new MongoBinaryDownloadUrl({
569+
platform: 'linux',
570+
arch: 'x64',
571+
version: '5.0.8',
572+
os: {
573+
os: 'linux',
574+
dist: 'fedora',
575+
release: '36',
576+
},
577+
});
578+
579+
expect(await du.getDownloadUrl()).toBe(
580+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-5.0.8.tgz'
581+
);
582+
});
549583
});
550584

551585
// see https://github.com/nodkz/mongodb-memory-server/issues/527

0 commit comments

Comments
 (0)