Skip to content

Commit 7d8272b

Browse files
authored
test: Add test to check Trino version reporting (#650)
1 parent b24be0e commit 7d8272b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/templates/kuttl/smoke/check-s3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ def run_query(connection, query):
4646
connection = get_connection("admin", "admin", namespace)
4747

4848
trino_version = run_query(connection, "select node_version from system.runtime.nodes where coordinator = true and state = 'active'")[0][0]
49-
print(f"[INFO] Testing against Trino version {trino_version}")
49+
print(f"[INFO] Testing against Trino version \"{trino_version}\"")
50+
51+
assert len(trino_version) >= 3
52+
assert trino_version.isnumeric()
53+
assert trino_version == run_query(connection, "select version()")[0][0]
5054

5155
run_query(connection, "CREATE SCHEMA IF NOT EXISTS hive.minio WITH (location = 's3a://trino/')")
5256

0 commit comments

Comments
 (0)