@@ -6,6 +6,7 @@ const yaml = require('js-yaml');
6
6
7
7
const LATEST_EFFECTIVE_VERSION = '5.0' ;
8
8
const MONGODB_VERSIONS = [ 'latest' , '4.4' , '4.2' , '4.0' , '3.6' , '3.4' , '3.2' , '3.0' , '2.6' ] ;
9
+ const AWS_AUTH_VERSIONS = [ 'latest' , '4.4' ] ;
9
10
const OCSP_VERSIONS = [ 'latest' , '4.4' ] ;
10
11
const NODE_VERSIONS = [ 'erbium' , 'dubnium' , 'carbon' , 'boron' , 'argon' ] ;
11
12
const TOPOLOGIES = [ 'server' , 'replica_set' , 'sharded_cluster' ] . concat ( [
@@ -233,27 +234,35 @@ OCSP_VERSIONS.forEach(VERSION => {
233
234
] ) ;
234
235
} )
235
236
236
- TASKS . push ( {
237
- name : 'aws-auth-test' ,
238
- commands : [
239
- { func : 'install dependencies' } ,
240
- {
241
- func : 'bootstrap mongo-orchestration' ,
242
- vars : {
243
- AUTH : 'auth' ,
244
- ORCHESTRATION_FILE : 'auth-aws.json' ,
245
- TOPOLOGY : 'server'
246
- }
247
- } ,
248
- { func : 'add aws auth variables to file' } ,
249
- { func : 'run aws auth test with regular aws credentials' } ,
250
- { func : 'run aws auth test with assume role credentials' } ,
251
- { func : 'run aws auth test with aws EC2 credentials' } ,
252
- { func : 'run aws auth test with aws credentials as environment variables' } ,
253
- { func : 'run aws auth test with aws credentials and session token as environment variables' } ,
254
- { func : 'run aws ECS auth test' }
255
- ]
256
- } ) ;
237
+ const AWS_AUTH_TASKS = [ ] ;
238
+
239
+ AWS_AUTH_VERSIONS . forEach ( VERSION => {
240
+ const name = `aws-${ VERSION } -auth-test` ;
241
+ AWS_AUTH_TASKS . push ( name ) ;
242
+ TASKS . push ( {
243
+ name : name ,
244
+ commands : [
245
+ { func : 'install dependencies' } ,
246
+ {
247
+ func : 'bootstrap mongo-orchestration' ,
248
+ vars : {
249
+ VERSION : VERSION ,
250
+ AUTH : 'auth' ,
251
+ ORCHESTRATION_FILE : 'auth-aws.json' ,
252
+ TOPOLOGY : 'server'
253
+ }
254
+ } ,
255
+ { func : 'add aws auth variables to file' } ,
256
+ { func : 'run aws auth test with regular aws credentials' } ,
257
+ { func : 'run aws auth test with assume role credentials' } ,
258
+ { func : 'run aws auth test with aws EC2 credentials' } ,
259
+ { func : 'run aws auth test with aws credentials as environment variables' } ,
260
+ { func : 'run aws auth test with aws credentials and session token as environment variables' } ,
261
+ { func : 'run aws ECS auth test' }
262
+ ]
263
+ } ) ;
264
+ } )
265
+
257
266
258
267
const BUILD_VARIANTS = [ ] ;
259
268
@@ -268,6 +277,8 @@ const getTaskList = (() => {
268
277
269
278
const ret = TASKS . filter ( task => {
270
279
const tasksWithVars = task . commands . filter ( task => ! ! task . vars ) ;
280
+ if ( task . name . match ( / ^ a w s / ) ) return false ;
281
+
271
282
if ( ! tasksWithVars . length ) {
272
283
return true ;
273
284
}
@@ -343,9 +354,7 @@ BUILD_VARIANTS.push({
343
354
expansions : {
344
355
NODE_LTS_NAME : 'carbon'
345
356
} ,
346
- tasks : [
347
- 'aws-auth-test'
348
- ]
357
+ tasks : AWS_AUTH_TASKS
349
358
} ) ;
350
359
351
360
const fileData = yaml . safeLoad ( fs . readFileSync ( `${ __dirname } /config.yml.in` , 'utf8' ) ) ;
0 commit comments