@@ -672,6 +672,42 @@ functions:
672672 eval $(.evergreen/print-compass-env.sh)
673673 npm run --unsafe-perm --workspace compass-e2e-tests test-ci web
674674
675+
676+ test-web-sandbox-atlas-cloud :
677+ - command : shell.exec
678+ # It can take a very long time for Atlas cluster to get deployed
679+ timeout_secs : 2400
680+ params :
681+ working_dir : src
682+ shell : bash
683+ env :
684+ << : *compass-env
685+ DEBUG : ${debug|}
686+ COMPASS_E2E_ATLAS_CLOUD_SANDBOX_CLOUD_CONFIG : ' qa'
687+ COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME : ${e2e_tests_compass_web_atlas_username}
688+ COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD : ${e2e_tests_compass_web_atlas_password}
689+ COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_USERNAME : ${e2e_tests_compass_web_atlas_db_username}
690+ COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_PASSWORD : ${e2e_tests_compass_web_atlas_password}
691+ MCLI_PUBLIC_API_KEY : ${e2e_tests_mcli_public_api_key}
692+ MCLI_PRIVATE_API_KEY : ${e2e_tests_mcli_private_api_key}
693+ MCLI_ORG_ID : ${e2e_tests_mcli_org_id}
694+ MCLI_PROJECT_ID : ${e2e_tests_mcli_project_id}
695+ MCLI_OPS_MANAGER_URL : ${e2e_tests_mcli_ops_manager_url}
696+ script : |
697+ set -e
698+ # Load environment variables
699+ eval $(.evergreen/print-compass-env.sh)
700+ # Create Atlas cluster for test project
701+ source .evergreen/start-atlas-cloud-cluster.sh
702+ # Run the tests
703+ echo "Starting e2e tests..."
704+ # We're only running a special subset of tests as provisioning atlas
705+ # clusters in CI is both pricey and flakey, so we want to limit the
706+ # coverage to reduce those factors (at least for now)
707+ npm run --unsafe-perm --workspace compass-e2e-tests test-ci -- -- web \
708+ --test-atlas-cloud-sandbox \
709+ --test-filter="atlas-cloud/**/*"
710+
675711 test-connectivity :
676712 - command : shell.exec
677713 # Fail the task if it's idle for 10 mins
0 commit comments