File tree Expand file tree Collapse file tree 4 files changed +72
-3
lines changed Expand file tree Collapse file tree 4 files changed +72
-3
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,14 @@ functions:
137
137
script : |
138
138
${PREPARE_SHELL}
139
139
bash ${PROJECT_DIRECTORY}/.evergreen/run-checks.sh
140
+ run mongosh integration tests :
141
+ - command : shell.exec
142
+ type : test
143
+ params :
144
+ working_dir : src
145
+ script : |
146
+ ${PREPARE_SHELL}
147
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
140
148
cleanup :
141
149
- command : shell.exec
142
150
params :
@@ -1132,6 +1140,15 @@ tasks:
1132
1140
vars :
1133
1141
NODE_LTS_NAME : erbium
1134
1142
- func : run checks
1143
+ - name : run-mongosh-integration-tests
1144
+ tags :
1145
+ - run-mongosh-integration-tests
1146
+ exec_timeout_secs : 3600
1147
+ commands :
1148
+ - func : install dependencies
1149
+ vars :
1150
+ NODE_LTS_NAME : fermium
1151
+ - func : run mongosh integration tests
1135
1152
buildvariants :
1136
1153
- name : macos-1014-dubnium
1137
1154
display_name : macOS 10.14 Node Dubnium
@@ -1359,6 +1376,11 @@ buildvariants:
1359
1376
run_on : rhel70
1360
1377
tasks :
1361
1378
- run-checks
1379
+ - name : mongosh_integration_tests
1380
+ display_name : mongosh integration tests
1381
+ run_on : ubuntu1804-test
1382
+ tasks :
1383
+ - run-mongosh-integration-tests
1362
1384
- name : ubuntu1804-test-mongodb-aws
1363
1385
display_name : MONGODB-AWS Auth test
1364
1386
run_on : ubuntu1804-test
Original file line number Diff line number Diff line change @@ -159,6 +159,15 @@ functions:
159
159
${PREPARE_SHELL}
160
160
bash ${PROJECT_DIRECTORY}/.evergreen/run-checks.sh
161
161
162
+ "run mongosh integration tests":
163
+ - command: shell.exec
164
+ type: test
165
+ params:
166
+ working_dir: "src"
167
+ script: |
168
+ ${PREPARE_SHELL}
169
+ bash ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-integration-tests.sh
170
+
162
171
"cleanup":
163
172
- command: shell.exec
164
173
params:
@@ -253,7 +262,7 @@ functions:
253
262
script: |
254
263
MONGODB_URI='${plain_auth_mongodb_uri}' NODE_LTS_NAME='${NODE_LTS_NAME}' \
255
264
bash ${PROJECT_DIRECTORY}/.evergreen/run-ldap-tests.sh
256
-
265
+
257
266
"run data lake tests":
258
267
- command: shell.exec
259
268
type: test
@@ -262,7 +271,7 @@ functions:
262
271
script: |
263
272
MONGODB_URI='mongodb://mhuser:pencil@localhost' NODE_LTS_NAME='${NODE_LTS_NAME}' \
264
273
bash ${PROJECT_DIRECTORY}/.evergreen/run-data-lake-tests.sh
265
-
274
+
266
275
"run tls tests":
267
276
- command: shell.exec
268
277
type: test
Original file line number Diff line number Diff line change @@ -484,8 +484,30 @@ BUILD_VARIANTS.push({
484
484
tasks : [ 'run-checks' ]
485
485
} ) ;
486
486
487
- // special case for MONGODB-AWS authentication
487
+ // singleton build variant for mongosh integration tests
488
+ SINGLETON_TASKS . push ( {
489
+ name : 'run-mongosh-integration-tests' ,
490
+ tags : [ 'run-mongosh-integration-tests' ] ,
491
+ exec_timeout_secs : 3600 ,
492
+ commands : [
493
+ {
494
+ func : 'install dependencies' ,
495
+ vars : {
496
+ NODE_LTS_NAME : 'fermium'
497
+ }
498
+ } ,
499
+ { func : 'run mongosh integration tests' }
500
+ ]
501
+ } ) ;
488
502
503
+ BUILD_VARIANTS . push ( {
504
+ name : 'mongosh_integration_tests' ,
505
+ display_name : 'mongosh integration tests' ,
506
+ run_on : 'ubuntu1804-test' ,
507
+ tasks : [ 'run-mongosh-integration-tests' ]
508
+ } ) ;
509
+
510
+ // special case for MONGODB-AWS authentication
489
511
BUILD_VARIANTS . push ( {
490
512
name : 'ubuntu1804-test-mongodb-aws' ,
491
513
display_name : 'MONGODB-AWS Auth test' ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -o errexit # Exit the script with error if any of the commands fail
3
+ set -o xtrace # Write all commands first to stderr
4
+
5
+ export PROJECT_DIRECTORY=" $( pwd) "
6
+ NODE_ARTIFACTS_PATH=" ${PROJECT_DIRECTORY} /node-artifacts"
7
+ export NVM_DIR=" ${NODE_ARTIFACTS_PATH} /nvm"
8
+ [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
9
+
10
+ npm pack | tee npm-pack.log
11
+ export TARBALL_FILENAME=" $( tail -n1 npm-pack.log) "
12
+ cd /tmp
13
+ git clone --depth=10 https://github.com/mongodb-js/mongosh.git
14
+ cd mongosh
15
+ export REPLACE_PACKAGE=" mongodb:${PROJECT_DIRECTORY} /${TARBALL_FILENAME} "
16
+ npm run test-nodedriver
You can’t perform that action at this time.
0 commit comments