diff --git a/tests/templates/kuttl/smoke/check-s3.py b/tests/templates/kuttl/smoke/check-s3.py index cd33e33e..310d0870 100755 --- a/tests/templates/kuttl/smoke/check-s3.py +++ b/tests/templates/kuttl/smoke/check-s3.py @@ -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/')")