mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
SERVER-86820 Clean up Azure and Okta integration test artifacts
GitOrigin-RevId: dbd2bee4c37e5ab05c9aff19b6dc8a96617c4ca5
This commit is contained in:
parent
1c9a7719d8
commit
5da8f18c36
@ -2439,6 +2439,16 @@ functions:
|
||||
binary: bash
|
||||
args:
|
||||
- "./src/evergreen/external_auth_gcp_teardown.sh"
|
||||
- command: subprocess.exec
|
||||
params:
|
||||
binary: bash
|
||||
args:
|
||||
- "./src/evergreen/external_auth_azure_teardown.sh"
|
||||
- command: subprocess.exec
|
||||
params:
|
||||
binary: bash
|
||||
args:
|
||||
- "./src/evergreen/external_auth_oidc_teardown.sh"
|
||||
|
||||
"do scons setup":
|
||||
- command: manifest.load
|
||||
|
@ -797,11 +797,6 @@ tasks:
|
||||
args:
|
||||
- "src/evergreen/external_auth_azure_setup.sh"
|
||||
- func: "run tests"
|
||||
- command: subprocess.exec
|
||||
params:
|
||||
binary: bash
|
||||
args:
|
||||
- "src/evergreen/external_auth_azure_teardown.sh"
|
||||
|
||||
- <<: *task_template
|
||||
name: external_auth_oidc_gcp
|
||||
|
@ -1,6 +1,25 @@
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
||||
. "$DIR/prelude.sh"
|
||||
|
||||
# Only run this script for the external_auth_oidc_azure task.
|
||||
if [ "${task_name}" != "external_auth_oidc_azure" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Cleaning up Azure OIDC test artifacts"
|
||||
|
||||
cd src
|
||||
|
||||
# Clean up the SSH keyfile, if it exists
|
||||
if [ -f "${HOME}/oidc_azure_container_key" ]; then
|
||||
rm -f $HOME/oidc_azure_container_key
|
||||
echo "Cleaned up container key"
|
||||
fi
|
||||
|
||||
python src/mongo/db/modules/enterprise/jstests/external_auth_oidc_azure/lib/toggle_ingress.py disable --config_file=$HOME/azure_e2e_config.json
|
||||
|
||||
# Clean up the config file, if it exists
|
||||
if [ -f "${HOME}/azure_e2e_config.json" ]; then
|
||||
rm -f $HOME/azure_e2e_config.json
|
||||
echo "Cleaned up azure_e2e_config.json"
|
||||
fi
|
||||
|
@ -10,6 +10,8 @@ if [ "${task_name}" != "external_auth_oidc_gcp" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Cleaning up OIDC GCP test artifacts"
|
||||
|
||||
# Delete the GCP VM specified in gce_vm_info.json if GOOGLE_APPLICATION_CREDENTIALS is set, points
|
||||
# to a file, and the GCE config and VM info files exist.
|
||||
if [ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" ] \
|
||||
|
15
evergreen/external_auth_oidc_teardown.sh
Normal file
15
evergreen/external_auth_oidc_teardown.sh
Normal file
@ -0,0 +1,15 @@
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
||||
. "$DIR/prelude.sh"
|
||||
|
||||
# Only run this script for the external_auth_oidc_azure task.
|
||||
if [ "${task_name}" != "external_auth_oidc" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Cleaning up OIDC Okta test artifacts"
|
||||
|
||||
#Clean up the config file, if it exists
|
||||
if [ -f "${HOME}/oidc_e2e_setup.json" ]; then
|
||||
rm -f $HOME/oidc_e2e_setup.json
|
||||
echo "Cleaned up oidc_e2e_setup.json"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user