Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/system/test_asyncpg_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ async def create_sqlalchemy_engine(
user=user,
password=password,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
),
execution_options={"isolation_level": "AUTOCOMMIT"},
)
Expand Down Expand Up @@ -145,7 +147,9 @@ async def getconn(
user=user,
password=password,
db=db,
ip_type="public", # can also be "private" or "psc",
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc",
**kwargs,
)
return conn
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_asyncpg_iam_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ async def create_sqlalchemy_engine(
"asyncpg",
user=user,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
enable_iam_auth=True,
),
execution_options={"isolation_level": "AUTOCOMMIT"},
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_pg8000_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def create_sqlalchemy_engine(
user=user,
password=password,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
),
)
return engine, connector
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_pg8000_iam_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def create_sqlalchemy_engine(
"pg8000",
user=user,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
enable_iam_auth=True,
),
)
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_pymysql_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def create_sqlalchemy_engine(
user=user,
password=password,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
),
)
return engine, connector
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_pymysql_iam_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def create_sqlalchemy_engine(
"pymysql",
user=user,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
enable_iam_auth=True,
),
)
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_pytds_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def create_sqlalchemy_engine(
user=user,
password=password,
db=db,
ip_type="public", # can also be "private" or "psc"
ip_type=os.environ.get(
"IP_TYPE", "public"
), # can also be "private" or "psc"
),
)
return engine, connector
Expand Down
Loading