Skip to content

Commit a97656d

Browse files
committed
test(MongoBinaryDownloadUrl): update debian test names
1 parent 9b96e9e commit a97656d

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ describe('MongoBinaryDownloadUrl', () => {
552552
});
553553

554554
describe('for debian', () => {
555-
it('for debian 81 for 3.6.3', async () => {
555+
it('debian 8.1 (x86_64) & 3.6.3', async () => {
556556
const du = new MongoBinaryDownloadUrl({
557557
platform: 'linux',
558558
arch: 'x64',
@@ -568,7 +568,7 @@ describe('MongoBinaryDownloadUrl', () => {
568568
);
569569
});
570570

571-
it('for debian 10 for 4.2.1', async () => {
571+
it('debian 10 (x86_64) & 4.2.1', async () => {
572572
const du = new MongoBinaryDownloadUrl({
573573
platform: 'linux',
574574
arch: 'x64',
@@ -584,7 +584,23 @@ describe('MongoBinaryDownloadUrl', () => {
584584
);
585585
});
586586

587-
it('for debian 11 for 4.2.1 (using debian 10 binaries)', async () => {
587+
it('debian 10 (x86_64) & v5.0-latest', async () => {
588+
const du = new MongoBinaryDownloadUrl({
589+
platform: 'linux',
590+
arch: 'x64',
591+
version: 'v5.0-latest',
592+
os: {
593+
os: 'linux',
594+
dist: 'debian',
595+
release: '10',
596+
},
597+
});
598+
expect(await du.getDownloadUrl()).toBe(
599+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian10-v5.0-latest.tgz'
600+
);
601+
});
602+
603+
it('debian 11 (x86_64) & 4.2.1 (using debian 10 binaries)', async () => {
588604
const du = new MongoBinaryDownloadUrl({
589605
platform: 'linux',
590606
arch: 'x64',
@@ -600,7 +616,7 @@ describe('MongoBinaryDownloadUrl', () => {
600616
);
601617
});
602618

603-
it('for debian 11 for 5.0.7 (using debian 10 binaries)', async () => {
619+
it('debian 11 (x86_64) & 5.0.7 (using debian 10 binaries)', async () => {
604620
const du = new MongoBinaryDownloadUrl({
605621
platform: 'linux',
606622
arch: 'x64',
@@ -616,7 +632,7 @@ describe('MongoBinaryDownloadUrl', () => {
616632
);
617633
});
618634

619-
it('for debian 11 for 5.0.8', async () => {
635+
it('debian 11 (x86_64) & 5.0.8', async () => {
620636
const du = new MongoBinaryDownloadUrl({
621637
platform: 'linux',
622638
arch: 'x64',
@@ -632,7 +648,7 @@ describe('MongoBinaryDownloadUrl', () => {
632648
);
633649
});
634650

635-
it('for debian 11 for v5.0-latest', async () => {
651+
it('debian 11 (x86_64) & v5.0-latest', async () => {
636652
const du = new MongoBinaryDownloadUrl({
637653
platform: 'linux',
638654
arch: 'x64',
@@ -648,7 +664,7 @@ describe('MongoBinaryDownloadUrl', () => {
648664
);
649665
});
650666

651-
it('for debian 11 for 6.0.0', async () => {
667+
it('debian 11 (x86_64) & 6.0.0', async () => {
652668
const du = new MongoBinaryDownloadUrl({
653669
platform: 'linux',
654670
arch: 'x64',
@@ -664,7 +680,7 @@ describe('MongoBinaryDownloadUrl', () => {
664680
);
665681
});
666682

667-
it('for debian 12 for 7.0.3', async () => {
683+
it('debian 12 (x86_64) & 7.0.3', async () => {
668684
const du = new MongoBinaryDownloadUrl({
669685
platform: 'linux',
670686
arch: 'x64',
@@ -680,23 +696,23 @@ describe('MongoBinaryDownloadUrl', () => {
680696
);
681697
});
682698

683-
it('should allow v5.0-latest', async () => {
699+
it('debian 12 (x86_64) & v7.0-latest', async () => {
684700
const du = new MongoBinaryDownloadUrl({
685701
platform: 'linux',
686702
arch: 'x64',
687-
version: 'v5.0-latest',
703+
version: 'v7.0-latest',
688704
os: {
689705
os: 'linux',
690706
dist: 'debian',
691-
release: '10',
707+
release: '12',
692708
},
693709
});
694710
expect(await du.getDownloadUrl()).toBe(
695-
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian10-v5.0-latest.tgz'
711+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian12-v7.0-latest.tgz'
696712
);
697713
});
698714

699-
it('for debian testing/unstable', async () => {
715+
it('debian testing/unstable (x86_64) & 7.0.3', async () => {
700716
const du = new MongoBinaryDownloadUrl({
701717
platform: 'linux',
702718
arch: 'x64',
@@ -816,22 +832,6 @@ describe('MongoBinaryDownloadUrl', () => {
816832
}
817833
});
818834

819-
it('should not throw an error for v7.0-latest for debian 12', async () => {
820-
const du = new MongoBinaryDownloadUrl({
821-
platform: 'linux',
822-
arch: 'x64',
823-
version: 'v7.0-latest',
824-
os: {
825-
os: 'linux',
826-
dist: 'debian',
827-
release: '12',
828-
},
829-
});
830-
expect(await du.getDownloadUrl()).toBe(
831-
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian12-v7.0-latest.tgz'
832-
);
833-
});
834-
835835
it('should throw a Error when requesting a version below 7.0.3 for debian testing [KnownVersionIncompatibilityError]', async () => {
836836
const du = new MongoBinaryDownloadUrl({
837837
platform: 'linux',

0 commit comments

Comments
 (0)