Skip to content

Commit 071c144

Browse files
committed
fix test
1 parent 2a76cdc commit 071c144

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

tests/nox/java_client/prepare.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,24 @@ def create_user():
6666
headers={"Content-Type": "application/json"},
6767
json={"sql": "GRANT ROLE test_jdbc TO USER databend"},
6868
).raise_for_status()
69+
requests.post(
70+
"http://localhost:8001/v1/query/",
71+
auth=HTTPBasicAuth("root", ""),
72+
headers={"Content-Type": "application/json"},
73+
json={"sql": "SHOW GRANTS FOR USER databend"},
74+
).raise_for_status()
75+
requests.post(
76+
"http://localhost:8002/v1/query/",
77+
auth=HTTPBasicAuth("root", ""),
78+
headers={"Content-Type": "application/json"},
79+
json={"sql": "SHOW GRANTS FOR USER databend"},
80+
).raise_for_status()
81+
requests.post(
82+
"http://localhost:8003/v1/query/",
83+
auth=HTTPBasicAuth("root", ""),
84+
headers={"Content-Type": "application/json"},
85+
json={"sql": "SHOW GRANTS FOR USER databend"},
86+
).raise_for_status()
6987

7088
def download_testng():
7189
urls = [

tests/nox/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def python_client(session, driver_version):
2222
session.run("behave", "tests/cursor", env=env)
2323

2424

25-
JDBC_DRIVER = ["0.4.1", "main"]
25+
JDBC_DRIVER = ["0.4.0", "main"]
2626

2727

2828
@nox.session

0 commit comments

Comments
 (0)