Skip to content

Commit

Permalink
test: Add test to check Trino version reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Sep 30, 2024
1 parent 2ac696e commit b15bdd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/templates/kuttl/smoke/check-s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def run_query(connection, query):
connection = get_connection("admin", "admin", namespace)

trino_version = run_query(connection, "select node_version from system.runtime.nodes where coordinator = true and state = 'active'")[0][0]
print(f"[INFO] Testing against Trino version {trino_version}")
print(f"[INFO] Testing against Trino version \"{trino_version}\"")

assert len(trino_version) >= 3
assert trino_version.isnumeric()
assert trino_version == run_query(connection, "select version()")[0][0]

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

Expand Down

0 comments on commit b15bdd2

Please sign in to comment.