Skip to content

Commit 3d49cd5

Browse files
authored
ci: run behave test of bendsql for compact. (#18697)
1 parent f879767 commit 3d49cd5

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/actions/test_compat_client_cluster/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ runs:
2929
ref: main
3030
path: tests/nox/cache/databend-jdbc
3131

32+
- name: checkout bendsql
33+
uses: actions/checkout@v4
34+
with:
35+
repository: databendlabs/bendsql
36+
ref: main
37+
path: tests/nox/cache/bendsql
38+
3239
- name: build databend-jdbc
3340
shell: bash
3441
working-directory: tests/nox/cache/databend-jdbc

scripts/ci/deploy/databend-query-cluster-3-nodes-nginx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ docker run -d --network host --name nginx_db -v "$(pwd)/scripts/ci/deploy/config
8989

9090
docker logs nginx_db
9191

92-
curl -s -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d '{"sql": "select * from system.clusters"}'
92+
curl -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d '{"sql": "select * from system.clusters"}'
9393

9494
echo
9595

96-
curl -s -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d "{\"sql\": \"create user databend IDENTIFIED BY 'databend'\"}"
96+
curl -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d "{\"sql\": \"create user databend IDENTIFIED BY 'databend'\"}"
9797

9898
echo
9999

tests/nox/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ def python_client(session, driver_version):
1212
session.install(f"databend-driver=={driver_version}")
1313
session.run("pytest", "python_client")
1414

15+
session.install("behave")
16+
with session.chdir("cache/bendsql/bindings/python"):
17+
env = {
18+
"DRIVER_VERSION": driver_version,
19+
}
20+
session.run("behave","tests/asyncio", env=env)
21+
session.run("behave","tests/blocking", env=env)
22+
session.run("behave","tests/cursor", env=env)
23+
1524

1625
JDBC_DRIVER = ["0.4.0", "main"]
1726

0 commit comments

Comments
 (0)