diff --git a/.kokoro/presubmit/node14/system-test.cfg b/.kokoro/presubmit/node14/system-test.cfg index f8dd221bf..cd4a38d91 100644 --- a/.kokoro/presubmit/node14/system-test.cfg +++ b/.kokoro/presubmit/node14/system-test.cfg @@ -9,4 +9,9 @@ env_vars: { env_vars: { key: "SECRET_MANAGER_KEYS" value: "long-door-651-kokoro-system-test-service-account" +} + +env_vars: { + key: "USE_AIRLOCK", + value: "true" } \ No newline at end of file diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index a90d5cfec..9bd461cb6 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -18,10 +18,6 @@ set -eo pipefail export NPM_CONFIG_PREFIX=${HOME}/.npm-global -# Setup service account credentials. -export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/secret_manager/long-door-651-kokoro-system-test-service-account -export GCLOUD_PROJECT=long-door-651 - cd $(dirname $0)/.. # Run a pre-test hook, if a pre-system-test.sh is in the project @@ -31,8 +27,26 @@ if [ -f .kokoro/pre-system-test.sh ]; then set -x fi +# Enable airlock +if [[ $USE_AIRLOCK = 'true' ]]; then + cat > .npmrc <