Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add test to check Trino version reporting #650

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading