Skip to content

Commit 3956d7f

Browse files
committed
test(MongoBinaryDownloadUrl): add test for ubuntu arm64 24 on 7.0.14 & 8.0.0
1 parent 57f8c48 commit 3956d7f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,39 @@ describe('MongoBinaryDownloadUrl', () => {
548548
'https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-ubuntu2004-5.0.0.tgz'
549549
);
550550
});
551+
552+
it('ubuntu 24.04 (arm64) & 7.0.14', async () => {
553+
const du = new MongoBinaryDownloadUrl({
554+
platform: 'linux',
555+
arch: 'arm64',
556+
version: '7.0.14',
557+
os: {
558+
os: 'linux',
559+
dist: 'Ubuntu Linux',
560+
release: '24.04',
561+
},
562+
});
563+
expect(await du.getDownloadUrl()).toBe(
564+
'https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-ubuntu2204-7.0.14.tgz'
565+
);
566+
});
567+
568+
it('ubuntu 24.04 (arm64) & 8.0.0', async () => {
569+
// there are only 24.04 arm64 binaries since 8.0.0
570+
const du = new MongoBinaryDownloadUrl({
571+
platform: 'linux',
572+
arch: 'arm64',
573+
version: '8.0.0',
574+
os: {
575+
os: 'linux',
576+
dist: 'Ubuntu Linux',
577+
release: '24.04',
578+
},
579+
});
580+
expect(await du.getDownloadUrl()).toBe(
581+
'https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-ubuntu2404-8.0.0.tgz'
582+
);
583+
});
551584
});
552585
});
553586

0 commit comments

Comments
 (0)