Skip to content

Commit 0ca0653

Browse files
committed
chore: test psa on psc instance
1 parent e69980d commit 0ca0653

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

tests/system/test_pymysql_connection.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ def test_pymysql_connection() -> None:
9696
db = os.environ["MYSQL_DB"]
9797
ip_type = os.environ.get("IP_TYPE", "public")
9898

99-
if ip_type == "private":
100-
ip_type = "psc"
101-
10299
engine, connector = create_sqlalchemy_engine(
103100
inst_conn_name, user, password, db, ip_type
104101
)
@@ -118,9 +115,6 @@ def test_lazy_pymysql_connection() -> None:
118115
db = os.environ["MYSQL_DB"]
119116
ip_type = os.environ.get("IP_TYPE", "public")
120117

121-
if ip_type == "private":
122-
ip_type = "psc"
123-
124118
engine, connector = create_sqlalchemy_engine(
125119
inst_conn_name, user, password, db, ip_type, "lazy"
126120
)

tests/system/test_pymysql_iam_auth.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def test_pymysql_iam_authn_connection() -> None:
8888
db = os.environ["MYSQL_DB"]
8989
ip_type = os.environ.get("IP_TYPE", "public")
9090

91-
if ip_type == "private":
92-
ip_type = "psc"
93-
9491
engine, connector = create_sqlalchemy_engine(inst_conn_name, user, db, ip_type)
9592
with engine.connect() as conn:
9693
time = conn.execute(sqlalchemy.text("SELECT NOW()")).fetchone()
@@ -107,9 +104,6 @@ def test_lazy_pymysql_iam_authn_connection() -> None:
107104
db = os.environ["MYSQL_DB"]
108105
ip_type = os.environ.get("IP_TYPE", "public")
109106

110-
if ip_type == "private":
111-
ip_type = "psc"
112-
113107
engine, connector = create_sqlalchemy_engine(
114108
inst_conn_name, user, db, ip_type, "lazy"
115109
)

0 commit comments

Comments
 (0)