Skip to content

Commit d6867d9

Browse files
committed
chore: Fix environment variable secret names in build.sh to match the e2e test source code.
1 parent 243bee0 commit d6867d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,21 @@ function deps() {
8484

8585
# write_e2e_env - Loads secrets from the gcloud project and writes
8686
# them to target/e2e.env to run e2e tests.
87-
#
8887
function write_e2e_env(){
8988
# Set the default to .envrc file if no argument is passed
9089
outfile="${1:-.envrc}"
9190
secret_vars=(
9291
MYSQL_CONNECTION_NAME=MYSQL_CONNECTION_NAME
9392
MYSQL_USER=MYSQL_USER
94-
MYSQL_USER_IAM=MYSQL_USER_IAM_GO
93+
MYSQL_USER_IAM=MYSQL_USER_IAM_JAVA
9594
MYSQL_PASS=MYSQL_PASS
9695
MYSQL_DB=MYSQL_DB
9796
MYSQL_MCP_CONNECTION_NAME=MYSQL_MCP_CONNECTION_NAME
9897
MYSQL_MCP_PASS=MYSQL_MCP_PASS
9998
POSTGRES_CONNECTION_NAME=POSTGRES_CONNECTION_NAME
99+
POSTGRES_IAM_CONNECTION_NAME=POSTGRES_IAM_CONNECTION_NAME
100100
POSTGRES_USER=POSTGRES_USER
101-
POSTGRES_USER_IAM=POSTGRES_USER_IAM_GO
101+
POSTGRES_USER_IAM=POSTGRES_USER_IAM_JAVA
102102
POSTGRES_PASS=POSTGRES_PASS
103103
POSTGRES_DB=POSTGRES_DB
104104
POSTGRES_CAS_CONNECTION_NAME=POSTGRES_CAS_CONNECTION_NAME
@@ -113,10 +113,11 @@ function write_e2e_env(){
113113
SQLSERVER_USER=SQLSERVER_USER
114114
SQLSERVER_PASS=SQLSERVER_PASS
115115
SQLSERVER_DB=SQLSERVER_DB
116+
IMPERSONATED_USER=IMPERSONATED_USER
116117
QUOTA_PROJECT=QUOTA_PROJECT
117118
)
118119

119-
if [[ -z "${TEST_PROJECT:-}" ]] ; then
120+
if [[ -z "$TEST_PROJECT" ]] ; then
120121
echo "Set TEST_PROJECT environment variable to the project containing"
121122
echo "the e2e test suite secrets."
122123
exit 1

0 commit comments

Comments
 (0)