You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/alloydb_test.go
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,15 @@ import (
26
26
)
27
27
28
28
var (
29
-
alloydbConnName=flag.String("alloydb_conn_name", os.Getenv("ALLOYDB_CONNECTION_NAME"), "AlloyDB instance connection name, in the form of 'project:region:instance'.")
30
-
alloydbUser=flag.String("alloydb_user", os.Getenv("ALLOYDB_USER"), "Name of database user.")
31
-
alloydbPass=flag.String("alloydb_pass", os.Getenv("ALLOYDB_PASS"), "Password for the database user; be careful when entering a password on the command line (it may go into your terminal's history).")
32
-
alloydbDB=flag.String("alloydb_db", os.Getenv("ALLOYDB_DB"), "Name of the database to connect to.")
29
+
alloydbConnName=flag.String("alloydb_conn_name", os.Getenv("ALLOYDB_CONNECTION_NAME"), "AlloyDB instance connection name, in the form of 'project:region:instance'.")
30
+
alloydbUser=flag.String("alloydb_user", os.Getenv("ALLOYDB_USER"), "Name of database user.")
31
+
alloydbPass=flag.String("alloydb_pass", os.Getenv("ALLOYDB_PASS"), "Password for the database user; be careful when entering a password on the command line (it may go into your terminal's history).")
32
+
alloydbDB=flag.String("alloydb_db", os.Getenv("ALLOYDB_DB"), "Name of the database to connect to.")
33
+
impersonatedUser=flag.String(
34
+
"impersonated_user",
35
+
os.Getenv("IMPERSONATED_USER"),
36
+
"Name of the service account that supports impersonation (impersonator must have roles/iam.serviceAccountTokenCreator)",
0 commit comments