Skip to content

Commit 56a8ef0

Browse files
authored
test: Update Trino versions to match nightly SDP version (#106)
1 parent 644e6a3 commit 56a8ef0

3 files changed

Lines changed: 10 additions & 17 deletions

File tree

tests/templates/kuttl/client-spooling/10-install-trino.yaml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ metadata:
55
name: trino-client-spooling
66
spec:
77
image:
8-
{% if test_scenario['values']['trino-client-spooling'].find(",") > 0 %}
9-
custom: "{{ test_scenario['values']['trino-client-spooling'].split(',')[1] }}"
10-
productVersion: "{{ test_scenario['values']['trino-client-spooling'].split(',')[0] }}"
8+
{% if test_scenario['values']['trino'].find(",") > 0 %}
9+
custom: "{{ test_scenario['values']['trino'].split(',')[1] }}"
10+
productVersion: "{{ test_scenario['values']['trino'].split(',')[0] }}"
1111
{% else %}
12-
productVersion: "{{ test_scenario['values']['trino-client-spooling'] }}"
12+
productVersion: "{{ test_scenario['values']['trino'] }}"
1313
{% endif %}
1414
pullPolicy: IfNotPresent
1515
clusterConfig:

tests/templates/kuttl/client-spooling/30-test-queries.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
containers:
1010
- name: test-queries
1111
# image: oci.stackable.tech/sdp/trino-cli:476-stackable0.0.0-dev
12-
image: oci.stackable.tech/sdp/trino-cli:{{ test_scenario['values']['trino-client-spooling'] }}-stackable0.0.0-dev
12+
image: oci.stackable.tech/sdp/trino-cli:{{ test_scenario['values']['trino'] }}-stackable0.0.0-dev
1313
command:
1414
- /bin/bash
1515
- -x

tests/test-definition.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,17 @@ dimensions:
33
- name: trino-lb
44
values:
55
- oci.stackable.tech/stackable/trino-lb:dev
6-
# - oci.stackable.tech/stackable/trino-lb:0.5.0
6+
# - foo:bar
77
- name: trino
88
values:
9-
- "451"
10-
# - "470" # Reduce test count
11-
- "476"
9+
- "477"
10+
- "479"
1211
# To use a custom image, add a comma and the full name after the product version
1312
# - 470,oci.stackable.tech/sdp/trino:470-stackable0.0.0-dev
1413
# However, watch out, you need to tweak the trino-cli image
1514
- name: trino-latest
1615
values:
17-
- "470"
18-
# As not all Trino versions support client spooling, we have an extra dimension
19-
- name: trino-client-spooling
20-
values:
21-
# According to https://docs.stackable.tech/home/nightly/trino/usage-guide/client-spooling-protocol/
22-
# > The client spooling protocol was introduced in Trino 466 but it only works reliably starting with Trino 476.
23-
- "476"
16+
- "479"
2417
- name: trino-lb-https
2518
values:
2619
- "true"
@@ -43,7 +36,7 @@ tests:
4336
- name: client-spooling
4437
dimensions:
4538
- trino-lb
46-
- trino-client-spooling
39+
- trino
4740
- client-spooling-retrieval-mode
4841

4942
# TODOS

0 commit comments

Comments
 (0)