Skip to content

Commit

Permalink
trying env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhangi-google committed Oct 1, 2024
1 parent 8a73629 commit 94a0e39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .kokoro/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ for ruby_version in "${ruby_versions[@]}"; do
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

export TEST_UNIVERSE_DOMAIN=$(cat ${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-domain)
export TEST_UNIVERSE_PROJECT_ID=$(cat ${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-project-id)
export TEST_UNIVERSE_LOCATION=$(cat ${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-storage-location)
export TEST_UNIVERSE_DOMAIN_CREDENTIAL=$(realpath ${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-domain-credential)

gem install --no-document toys

toys ci -v --load-kokoro-context $EXTRA_CI_ARGS < /dev/null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
require "storage_helper"

describe Google::Cloud::Storage do
# Universe Domain Test project Credentials
ENV["TEST_UNIVERSE_DOMAIN_CREDENTIAL"] = File.realpath(File.join(ENV["KOKORO_GFILE_DIR"], 'secret_manager', 'client-library-test-universe-domain-credential'))
ENV["TEST_UNIVERSE_DOMAIN"] = File.read(File.realpath(File.join(ENV["KOKORO_GFILE_DIR"], 'secret_manager', 'client-library-test-universe-domain'))).strip
ENV["TEST_UNIVERSE_PROJECT_ID"] = File.read(File.realpath(File.join(ENV["KOKORO_GFILE_DIR"], 'secret_manager', 'client-library-test-universe-project-id'))).strip
ENV["TEST_UNIVERSE_LOCATION"] = File.read(File.realpath(File.join(ENV["KOKORO_GFILE_DIR"], 'secret_manager', 'client-library-test-universe-storage-location'))).strip

let :storage do
# Universe Domain Test project Credentials
Expand Down

0 comments on commit 94a0e39

Please sign in to comment.