Skip to content

Commit

Permalink
test: Run kerberos test on all HDFS versions (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer authored Nov 6, 2024
1 parent 014782b commit 02953f7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tests/templates/kuttl/kerberos/20-install-hdfs.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ metadata:
name: hdfs
spec:
image:
{% if test_scenario['values']['hadoop-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hadoop-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hadoop-latest'].split(',')[0] }}"
{% if test_scenario['values']['hadoop'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hadoop'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hadoop'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hadoop-latest'] }}"
productVersion: "{{ test_scenario['values']['hadoop'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
Expand Down
6 changes: 3 additions & 3 deletions tests/templates/kuttl/kerberos/30-access-hdfs.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ spec:
serviceAccountName: test-sa
containers:
- name: access-hdfs
{% if test_scenario['values']['hadoop-latest'].find(",") > 0 %}
image: "{{ test_scenario['values']['hadoop-latest'].split(',')[1] }}"
{% if test_scenario['values']['hadoop'].find(",") > 0 %}
image: "{{ test_scenario['values']['hadoop'].split(',')[1] }}"
{% else %}
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop-latest'] }}-stackable0.0.0-dev
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop'] }}-stackable0.0.0-dev
{% endif %}
env:
- name: HADOOP_CONF_DIR
Expand Down
6 changes: 3 additions & 3 deletions tests/templates/kuttl/kerberos/32-check-file.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ spec:
serviceAccountName: test-sa
containers:
- name: check-hdfs
{% if test_scenario['values']['hadoop-latest'].find(",") > 0 %}
image: "{{ test_scenario['values']['hadoop-latest'].split(',')[1] }}"
{% if test_scenario['values']['hadoop'].find(",") > 0 %}
image: "{{ test_scenario['values']['hadoop'].split(',')[1] }}"
{% else %}
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop-latest'] }}-stackable0.0.0-dev
image: docker.stackable.tech/stackable/hadoop:{{ test_scenario['values']['hadoop'] }}-stackable0.0.0-dev
{% endif %}
env:
- name: HADOOP_CONF_DIR
Expand Down
2 changes: 1 addition & 1 deletion tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tests:
- openshift
- name: kerberos
dimensions:
- hadoop-latest # We only support Kerberos for HDFS >= 3.3.x. See rust/operator/src/kerberos.rs for details
- hadoop
- zookeeper-latest
- krb5
- kerberos-realm
Expand Down

0 comments on commit 02953f7

Please sign in to comment.