Skip to content

Commit a3bcd39

Browse files
committed
test(MongoBinaryDownloadUrl): add test for debian 11 for mongodb 4.2.1
fixes #553
1 parent 81c85f1 commit a3bcd39

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/guides/supported-systems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ For Arm64 MongoDB only provides binaries for `ubuntu1604`
6060

6161
(uses mongodb's `debian` release)<br/>
6262
Lowest supported Distribution version is `71`<br/>
63-
Highest version is `10`<br/>
63+
Highest version is `11`<br/>
6464
Default version is `10` (when in `unstable` or `testing`, otherwise none)
6565

6666
### Fedora

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@ describe('MongoBinaryDownloadUrl', () => {
189189
);
190190
});
191191

192+
it('for debian 11 for 4.2.1 (using debian 10 binaries)', async () => {
193+
const du = new MongoBinaryDownloadUrl({
194+
platform: 'linux',
195+
arch: 'x64',
196+
version: '4.2.1',
197+
os: {
198+
os: 'linux',
199+
dist: 'debian',
200+
release: '11',
201+
},
202+
});
203+
expect(await du.getDownloadUrl()).toBe(
204+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian10-4.2.1.tgz'
205+
);
206+
});
207+
192208
it('should throw a Error when requesting a version below 4.2.1 for debian 10+ [#554] [KnownVersionIncompatibilityError]', async () => {
193209
const du = new MongoBinaryDownloadUrl({
194210
platform: 'linux',

0 commit comments

Comments
 (0)