diff --git a/.kokoro/continuous/node14/system-test.cfg b/.kokoro/continuous/node14/system-test.cfg index 9ba9ad1c7..c7c9507a8 100644 --- a/.kokoro/continuous/node14/system-test.cfg +++ b/.kokoro/continuous/node14/system-test.cfg @@ -8,5 +8,5 @@ env_vars: { env_vars: { key: "SECRET_MANAGER_KEYS" - value: "long-door-651-kokoro-system-test-service-account" + value: "long-door-651-kokoro-system-test-service-account,client-library-test-universe-domain-credential" } \ No newline at end of file diff --git a/.kokoro/presubmit/node14/system-test.cfg b/.kokoro/presubmit/node14/system-test.cfg index 9ba9ad1c7..c7c9507a8 100644 --- a/.kokoro/presubmit/node14/system-test.cfg +++ b/.kokoro/presubmit/node14/system-test.cfg @@ -8,5 +8,5 @@ env_vars: { env_vars: { key: "SECRET_MANAGER_KEYS" - value: "long-door-651-kokoro-system-test-service-account" + value: "long-door-651-kokoro-system-test-service-account,client-library-test-universe-domain-credential" } \ No newline at end of file diff --git a/.kokoro/release/publish.cfg b/.kokoro/release/publish.cfg index baea5db3c..019cc24a5 100644 --- a/.kokoro/release/publish.cfg +++ b/.kokoro/release/publish.cfg @@ -18,7 +18,7 @@ before_action { env_vars: { key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,client-library-test-universe-domain-credential" } # Download trampoline resources. diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index 0b3043d26..e219954ae 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -22,6 +22,12 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/secret_manager/long-door-651-kokoro-system-test-service-account export GCLOUD_PROJECT=long-door-651 +# For universe domain testing +export TEST_UNIVERSE_DOMAIN_CREDENTIAL=${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-domain-credential +export TEST_UNIVERSE_DOMAIN=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-domain) +export TEST_UNIVERSE_PROJECT_ID=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-project-id) +export TEST_UNIVERSE_LOCATION=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-storage-location) + cd $(dirname $0)/.. # Run a pre-test hook, if a pre-system-test.sh is in the project