@@ -442,7 +442,8 @@ functions:
442442 params :
443443 working_dir : " src"
444444 script : |
445- set -o xtrace
445+ # Disable xtrace
446+ set +x
446447 if [ -n "${set_xtrace_on}" ]; then
447448 export SET_XTRACE_ON="${set_xtrace_on}"
448449 fi
@@ -488,6 +489,12 @@ functions:
488489 export SINGLE_MONGOS_LB_URI="${MONGODB_URI}"
489490 export MULTI_MONGOS_LB_URI="${MONGODB_URI}"
490491 fi
492+ if [ -n "${TEST_INDEX_MANAGEMENT}" ]; then
493+ export TEST_INDEX_MANAGEMENT=1
494+ export MONGODB_URI="${TEST_INDEX_URI}"
495+ export DB_USER="${DRIVERS_ATLAS_LAMBDA_USER}"
496+ export DB_PASSWORD="${DRIVERS_ATLAS_LAMBDA_PASSWORD}"
497+ fi
491498
492499 export PYTHON_BINARY=${PYTHON_BINARY}
493500 if [ -z "$PYTHON_BINARY" ]; then
@@ -1293,6 +1300,46 @@ task_groups:
12931300 tasks :
12941301 - testazurekms-task
12951302
1303+ - name : test_atlas_task_group_search_indexes
1304+ setup_group :
1305+ - func : fetch source
1306+ - func : prepare resources
1307+ - func : fix absolute paths
1308+ - func : make files executable
1309+ - command : subprocess.exec
1310+ params :
1311+ working_dir : src
1312+ binary : bash
1313+ add_expansions_to_env : true
1314+ env :
1315+ MONGODB_VERSION : " 7.0"
1316+ args :
1317+ - ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
1318+ - command : expansions.update
1319+ params :
1320+ file : src/atlas-expansion.yml
1321+ - command : shell.exec
1322+ params :
1323+ working_dir : src
1324+ shell : bash
1325+ script : |-
1326+ echo "TEST_INDEX_URI: ${MONGODB_URI}" > atlas-expansion.yml
1327+ - command : expansions.update
1328+ params :
1329+ file : src/atlas-expansion.yml
1330+ teardown_group :
1331+ - command : subprocess.exec
1332+ params :
1333+ working_dir : src
1334+ binary : bash
1335+ add_expansions_to_env : true
1336+ args :
1337+ - ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
1338+ setup_group_can_fail_task : true
1339+ setup_group_timeout_secs : 1800
1340+ tasks :
1341+ - test-search-index-helpers
1342+
12961343tasks :
12971344 # Wildcard task. Do you need to find out what tools are available and where?
12981345 # Throw it here, and execute this task on all buildvariants
@@ -1666,6 +1713,16 @@ tasks:
16661713 TOPOLOGY : " server"
16671714 - func : " run enterprise auth tests"
16681715
1716+ - name : " test-search-index-helpers"
1717+ commands :
1718+ - func : " bootstrap mongo-orchestration"
1719+ vars :
1720+ VERSION : " latest"
1721+ TOPOLOGY : " replica_set"
1722+ - func : " run tests"
1723+ vars :
1724+ TEST_INDEX_MANAGEMENT : " 1"
1725+
16691726 - name : " mod-wsgi-standalone"
16701727 tags : ["mod_wsgi"]
16711728 commands :
@@ -3103,6 +3160,14 @@ buildvariants:
31033160 tasks :
31043161 - name : " test-enterprise-auth"
31053162
3163+ - matrix_name : " test-search-index-helpers"
3164+ matrix_spec :
3165+ platform : rhel8
3166+ python-version : " 3.8"
3167+ display_name : " Search Index Helpers ${platform}"
3168+ tasks :
3169+ - name : " test_atlas_task_group_search_indexes"
3170+
31063171- matrix_name : " tests-mod-wsgi"
31073172 matrix_spec :
31083173 platform : ubuntu-20.04
0 commit comments