Skip to content

Commit 02953f7

Browse files
authored
test: Run kerberos test on all HDFS versions (#599)
1 parent 014782b commit 02953f7

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

tests/templates/kuttl/kerberos/20-install-hdfs.txt.j2

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

tests/templates/kuttl/kerberos/30-access-hdfs.txt.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ spec:
99
serviceAccountName: test-sa
1010
containers:
1111
- name: access-hdfs
12-
{% if test_scenario['values']['hadoop-latest'].find(",") > 0 %}
13-
image: "{{ test_scenario['values']['hadoop-latest'].split(',')[1] }}"
12+
{% if test_scenario['values']['hadoop'].find(",") > 0 %}
13+
image: "{{ test_scenario['values']['hadoop'].split(',')[1] }}"
1414
{% else %}
15-
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop-latest'] }}-stackable0.0.0-dev
15+
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop'] }}-stackable0.0.0-dev
1616
{% endif %}
1717
env:
1818
- name: HADOOP_CONF_DIR

tests/templates/kuttl/kerberos/32-check-file.txt.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ spec:
99
serviceAccountName: test-sa
1010
containers:
1111
- name: check-hdfs
12-
{% if test_scenario['values']['hadoop-latest'].find(",") > 0 %}
13-
image: "{{ test_scenario['values']['hadoop-latest'].split(',')[1] }}"
12+
{% if test_scenario['values']['hadoop'].find(",") > 0 %}
13+
image: "{{ test_scenario['values']['hadoop'].split(',')[1] }}"
1414
{% else %}
15-
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop-latest'] }}-stackable0.0.0-dev
15+
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop'] }}-stackable0.0.0-dev
1616
{% endif %}
1717
env:
1818
- name: HADOOP_CONF_DIR

tests/test-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tests:
6262
- openshift
6363
- name: kerberos
6464
dimensions:
65-
- hadoop-latest # We only support Kerberos for HDFS >= 3.3.x. See rust/operator/src/kerberos.rs for details
65+
- hadoop
6666
- zookeeper-latest
6767
- krb5
6868
- kerberos-realm

0 commit comments

Comments
 (0)