@@ -55,26 +55,40 @@ describe('Barque', () => {
55
55
variant : 'debian-x64' ,
56
56
url : 'https://s3.amazonaws.com/mciuploads/mongosh/5ed7ee5d8683818eb28d9d3b5c65837cde4a08f5/mongodb-mongosh_0.1.0_amd64.deb' ,
57
57
publishedUrls : [
58
- `${ Barque . PPA_REPO_BASE_URL } /apt/ubuntu/dists/bionic/mongodb-org/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
59
- `${ Barque . PPA_REPO_BASE_URL } /apt/ubuntu/dists/bionic/mongodb-org/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
60
- `${ Barque . PPA_REPO_BASE_URL } /apt/ubuntu/dists/focal/mongodb-org/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
61
- `${ Barque . PPA_REPO_BASE_URL } /apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
62
- `${ Barque . PPA_REPO_BASE_URL } /apt/debian/dists/buster/mongodb-org/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
63
- `${ Barque . PPA_REPO_BASE_URL } /apt/debian/dists/buster/mongodb-org/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
64
- `${ Barque . PPA_REPO_BASE_URL } /apt/debian/dists/stretch/mongodb-org/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb` ,
65
- `${ Barque . PPA_REPO_BASE_URL } /apt/debian/dists/stretch/mongodb-org/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb`
58
+ 'https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
59
+ 'https://repo.mongodb.com/apt/ubuntu/dists/bionic/mongodb-enterprise/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
60
+ 'https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
61
+ 'https://repo.mongodb.com/apt/ubuntu/dists/bionic/mongodb-enterprise/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
62
+ 'https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
63
+ 'https://repo.mongodb.com/apt/ubuntu/dists/focal/mongodb-enterprise/4.4/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
64
+ 'https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
65
+ 'https://repo.mongodb.com/apt/ubuntu/dists/focal/mongodb-enterprise/5.0/multiverse/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
66
+ 'https://repo.mongodb.org/apt/debian/dists/buster/mongodb-org/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
67
+ 'https://repo.mongodb.com/apt/debian/dists/buster/mongodb-enterprise/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
68
+ 'https://repo.mongodb.org/apt/debian/dists/buster/mongodb-org/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
69
+ 'https://repo.mongodb.com/apt/debian/dists/buster/mongodb-enterprise/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
70
+ 'https://repo.mongodb.org/apt/debian/dists/stretch/mongodb-org/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
71
+ 'https://repo.mongodb.com/apt/debian/dists/stretch/mongodb-enterprise/4.4/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
72
+ 'https://repo.mongodb.org/apt/debian/dists/stretch/mongodb-org/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb' ,
73
+ 'https://repo.mongodb.com/apt/debian/dists/stretch/mongodb-enterprise/5.0/main/binary-amd64/mongodb-mongosh_0.1.0_amd64.deb'
66
74
]
67
75
} ,
68
76
{
69
77
variant : 'rhel-x64' ,
70
78
url : 'https://s3.amazonaws.com/mciuploads/mongosh/5ed7ee5d8683818eb28d9d3b5c65837cde4a08f5/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
71
79
publishedUrls : [
72
- `${ Barque . PPA_REPO_BASE_URL } /yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm` ,
73
- `${ Barque . PPA_REPO_BASE_URL } /yum/redhat/7/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm` ,
74
- `${ Barque . PPA_REPO_BASE_URL } /yum/redhat/8/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm` ,
75
- `${ Barque . PPA_REPO_BASE_URL } /yum/redhat/8/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm` ,
76
- `${ Barque . PPA_REPO_BASE_URL } /yum/amazon/2/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm` ,
77
- `${ Barque . PPA_REPO_BASE_URL } /yum/amazon/2/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm`
80
+ 'https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
81
+ 'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
82
+ 'https://repo.mongodb.org/yum/redhat/7/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
83
+ 'https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
84
+ 'https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
85
+ 'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
86
+ 'https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
87
+ 'https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
88
+ 'https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
89
+ 'https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/4.4/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
90
+ 'https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm' ,
91
+ 'https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/5.0/x86_64/RPMS/mongodb-mongosh-0.1.0.el7.x86_64.rpm'
78
92
]
79
93
}
80
94
] as const ) . forEach ( ( { variant, url, publishedUrls } ) => {
@@ -158,7 +172,7 @@ describe('Barque', () => {
158
172
let nockRepo : nock . Scope ;
159
173
160
174
beforeEach ( ( ) => {
161
- nockRepo = nock ( Barque . PPA_REPO_BASE_URL ) ;
175
+ nockRepo = nock ( 'https://repo.mongodb.org' ) ;
162
176
163
177
nockRepo . head ( '/apt/dist/package1.deb' ) . reply ( 200 ) ;
164
178
@@ -171,9 +185,9 @@ describe('Barque', () => {
171
185
172
186
it ( 'waits until all packages are available' , async ( ) => {
173
187
await barque . waitUntilPackagesAreAvailable ( [
174
- ` ${ Barque . PPA_REPO_BASE_URL } /apt/dist/package1.deb` ,
175
- ` ${ Barque . PPA_REPO_BASE_URL } /apt/dist/package2.deb` ,
176
- ` ${ Barque . PPA_REPO_BASE_URL } /apt/dist/package3.deb`
188
+ 'https://repo.mongodb.org /apt/dist/package1.deb' ,
189
+ 'https://repo.mongodb.org /apt/dist/package2.deb' ,
190
+ 'https://repo.mongodb.org /apt/dist/package3.deb'
177
191
] , 300 , 1 ) ;
178
192
179
193
expect ( nock . isDone ( ) ) . to . be . true ;
@@ -184,16 +198,16 @@ describe('Barque', () => {
184
198
let nockRepo : nock . Scope ;
185
199
186
200
beforeEach ( ( ) => {
187
- nockRepo = nock ( Barque . PPA_REPO_BASE_URL ) ;
201
+ nockRepo = nock ( 'https://repo.mongodb.org' ) ;
188
202
nockRepo . head ( '/apt/dist/package1.deb' ) . reply ( 200 ) ;
189
203
nockRepo . head ( '/apt/dist/package2.deb' ) . reply ( 404 ) . persist ( ) ;
190
204
} ) ;
191
205
192
206
it ( 'fails when the timeout is hit' , async ( ) => {
193
207
try {
194
208
await barque . waitUntilPackagesAreAvailable ( [
195
- ` ${ Barque . PPA_REPO_BASE_URL } /apt/dist/package1.deb` ,
196
- ` ${ Barque . PPA_REPO_BASE_URL } /apt/dist/package2.deb` ,
209
+ 'https://repo.mongodb.org /apt/dist/package1.deb' ,
210
+ 'https://repo.mongodb.org /apt/dist/package2.deb' ,
197
211
] , 5 , 1 ) ;
198
212
} catch ( e ) {
199
213
expect ( e . message ) . to . contain ( 'the following packages are still not available' ) ;
0 commit comments