@@ -72,16 +72,18 @@ function generateVersionTopologyMatrix() {
72
72
function * _generate ( ) {
73
73
for ( const mongoVersion of MONGODB_VERSIONS ) {
74
74
for ( const topology of TOPOLOGIES ) {
75
- yield { mongoVersion, topology}
75
+ yield { mongoVersion, topology } ;
76
76
}
77
77
}
78
78
}
79
79
80
80
return Array . from ( _generate ( ) ) ;
81
81
}
82
82
83
- const BASE_TASKS = generateVersionTopologyMatrix ( ) . map ( makeTask )
84
- const AUTH_DISABLED_TASKS = generateVersionTopologyMatrix ( ) . map ( ( test ) => makeTask ( { ...test , auth : 'noauth' , tags : [ 'noauth' ] } ) )
83
+ const BASE_TASKS = generateVersionTopologyMatrix ( ) . map ( makeTask ) ;
84
+ const AUTH_DISABLED_TASKS = generateVersionTopologyMatrix ( ) . map ( test =>
85
+ makeTask ( { ...test , auth : 'noauth' , tags : [ 'noauth' ] } )
86
+ ) ;
85
87
86
88
BASE_TASKS . push ( {
87
89
name : `test-latest-server-v1-api` ,
@@ -323,7 +325,7 @@ TLS_VERSIONS.forEach(VERSION => {
323
325
vars : {
324
326
VERSION ,
325
327
SSL : 'ssl' ,
326
- TOPOLOGY : 'server' ,
328
+ TOPOLOGY : 'server'
327
329
// TODO: NODE-3891 - fix tests broken when AUTH enabled
328
330
// AUTH: 'auth'
329
331
}
@@ -702,10 +704,8 @@ const coverageTask = {
702
704
func : 'download and merge coverage'
703
705
}
704
706
] ,
705
- depends_on : [
706
- { name : '*' , variant : '*' , status : '*' , patch_optional : true }
707
- ]
708
- }
707
+ depends_on : [ { name : '*' , variant : '*' , status : '*' , patch_optional : true } ]
708
+ } ;
709
709
710
710
SINGLETON_TASKS . push ( ...oneOffFuncAsTasks ) ;
711
711
@@ -728,14 +728,21 @@ BUILD_VARIANTS.push({
728
728
} ) ;
729
729
730
730
BUILD_VARIANTS . push ( {
731
- name : 'no-auth-tests' ,
731
+ name : 'ubuntu1804- no-auth-tests' ,
732
732
display_name : 'No Auth Tests' ,
733
- run_on : 'ubuntu1804-test' ,
733
+ run_on : DEFAULT_OS ,
734
+ expansions : {
735
+ CLIENT_ENCRYPTION : true
736
+ } ,
734
737
tasks : AUTH_DISABLED_TASKS . map ( ( { name } ) => name )
735
- } )
738
+ } ) ;
736
739
737
740
const fileData = yaml . load ( fs . readFileSync ( `${ __dirname } /config.yml.in` , 'utf8' ) ) ;
738
- fileData . tasks = ( fileData . tasks || [ ] ) . concat ( BASE_TASKS ) . concat ( TASKS ) . concat ( SINGLETON_TASKS ) . concat ( AUTH_DISABLED_TASKS ) ;
741
+ fileData . tasks = ( fileData . tasks || [ ] )
742
+ . concat ( BASE_TASKS )
743
+ . concat ( TASKS )
744
+ . concat ( SINGLETON_TASKS )
745
+ . concat ( AUTH_DISABLED_TASKS ) ;
739
746
fileData . buildvariants = ( fileData . buildvariants || [ ] ) . concat ( BUILD_VARIANTS ) ;
740
747
741
748
fs . writeFileSync ( `${ __dirname } /config.yml` , yaml . dump ( fileData , { lineWidth : 120 } ) , 'utf8' ) ;
0 commit comments