@@ -176,7 +176,7 @@ functions:
176
176
params :
177
177
script : |
178
178
${PREPARE_SHELL}
179
- MONGODB_VERSION=${VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
179
+ MONGODB_VERSION=${VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
180
180
# run-orchestration generates expansion file with the MONGODB_URI for the cluster
181
181
- command : expansions.update
182
182
params :
@@ -215,7 +215,7 @@ functions:
215
215
export GCP_EMAIL="${client_side_encryption_gcp_email}"
216
216
export GCP_PRIVATEKEY="${client_side_encryption_gcp_privatekey}"
217
217
export PATH="${PHP_PATH}/bin:$PATH"
218
- PHP_VERSION=${PHP_VERSION} AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
218
+ API_VERSION=${API_VERSION} PHP_VERSION=${PHP_VERSION} AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
219
219
220
220
" run atlas data lake test " :
221
221
- command : shell.exec
@@ -357,6 +357,17 @@ tasks:
357
357
- func : " bootstrap mongohoused"
358
358
- func : " run atlas data lake test"
359
359
360
+ - name : " test-requireApiVersion"
361
+ tags : ["versioned_api"]
362
+ commands :
363
+ - func : " bootstrap mongo-orchestration"
364
+ vars :
365
+ TOPOLOGY : " server"
366
+ AUTH : " auth"
367
+ REQUIRE_API_VERSION : " yes"
368
+ - func : " run tests"
369
+ vars :
370
+ API_VERSION : " 1"
360
371
361
372
# }}}
362
373
@@ -609,3 +620,10 @@ buildvariants:
609
620
run_on : rhel70
610
621
tasks :
611
622
- name : " test-atlas-data-lake"
623
+
624
+ - matrix_name : " test-requireApiVersion"
625
+ matrix_spec : { "php-edge-versions": "latest-stable", "versions": "latest", "driver-versions": "latest" }
626
+ display_name : " Versioned API - ${versions}"
627
+ run_on : rhel70
628
+ tasks :
629
+ - name : " test-requireApiVersion"
0 commit comments