Skip to content

Commit 1cbfb1c

Browse files
committed
chore(csql): update postgres user for pg connection
1 parent 9ba226e commit 1cbfb1c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/system/test_asyncpg_connection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def getconn(
152152
async def test_sqlalchemy_connection_with_asyncpg() -> None:
153153
"""Basic test to get time from database."""
154154
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
155-
user = os.environ["POSTGRES_USER"]
155+
user = os.environ["POSTGRES_IAM_USER"]
156156
password = os.environ["POSTGRES_PASS"]
157157
db = os.environ["POSTGRES_DB"]
158158

@@ -168,7 +168,7 @@ async def test_sqlalchemy_connection_with_asyncpg() -> None:
168168
async def test_lazy_sqlalchemy_connection_with_asyncpg() -> None:
169169
"""Basic test to get time from database."""
170170
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
171-
user = os.environ["POSTGRES_USER"]
171+
user = os.environ["POSTGRES_IAM_USER"]
172172
password = os.environ["POSTGRES_PASS"]
173173
db = os.environ["POSTGRES_DB"]
174174

@@ -186,7 +186,7 @@ async def test_lazy_sqlalchemy_connection_with_asyncpg() -> None:
186186
async def test_connection_with_asyncpg() -> None:
187187
"""Basic test to get time from database."""
188188
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
189-
user = os.environ["POSTGRES_USER"]
189+
user = os.environ["POSTGRES_IAM_USER"]
190190
password = os.environ["POSTGRES_PASS"]
191191
db = os.environ["POSTGRES_DB"]
192192

@@ -202,7 +202,7 @@ async def test_connection_with_asyncpg() -> None:
202202
async def test_lazy_connection_with_asyncpg() -> None:
203203
"""Basic test to get time from database."""
204204
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
205-
user = os.environ["POSTGRES_USER"]
205+
user = os.environ["POSTGRES_IAM_USER"]
206206
password = os.environ["POSTGRES_PASS"]
207207
db = os.environ["POSTGRES_DB"]
208208

tests/system/test_pg8000_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def getconn() -> pg8000.dbapi.Connection:
9292
def test_pg8000_connection() -> None:
9393
"""Basic test to get time from database."""
9494
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
95-
user = os.environ["POSTGRES_USER"]
95+
user = os.environ["POSTGRES_IAM_USER"]
9696
password = os.environ["POSTGRES_PASS"]
9797
db = os.environ["POSTGRES_DB"]
9898

@@ -108,7 +108,7 @@ def test_pg8000_connection() -> None:
108108
def test_lazy_pg8000_connection() -> None:
109109
"""Basic test to get time from database."""
110110
inst_conn_name = os.environ["POSTGRES_IAM_CONNECTION_NAME"]
111-
user = os.environ["POSTGRES_USER"]
111+
user = os.environ["POSTGRES_IAM_USER"]
112112
password = os.environ["POSTGRES_PASS"]
113113
db = os.environ["POSTGRES_DB"]
114114

0 commit comments

Comments
 (0)