Skip to content

Commit 4a2bee3

Browse files
adwk67maltesander
andauthored
Update tests/templates/kuttl/logging/51-assert.yaml.j2
Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent 536270f commit 4a2bee3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/templates/kuttl/logging/51-assert.yaml.j2

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ metadata:
66
timeout: 480
77
commands:
88
{% if test_scenario['values']['airflow'].find(",") > 0 %}
9-
- script: |
10-
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group automatic-log-config --airflow-version "{{ test_scenario['values']['airflow'].split(',')[0] }}"
11-
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group custom-log-config --airflow-version "{{ test_scenario['values']['airflow'].split(',')[0] }}"
9+
{% set airflow_version = test_scenario['values']['airflow'].split(',')[0] %}
1210
{% else %}
13-
- script: |
14-
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group automatic-log-config --airflow-version "{{ test_scenario['values']['airflow'] }}"
15-
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group custom-log-config --airflow-version "{{ test_scenario['values']['airflow'] }}"
11+
{% set airflow_version = test_scenario['values']['airflow'] %}
1612
{% endif %}
13+
- script: |
14+
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group automatic-log-config --airflow-version "{{ airflow_version }}"
15+
kubectl exec -n $NAMESPACE test-airflow-python-0 -- python /tmp/health.py --role-group custom-log-config --airflow-version "{{ airflow_version }}"
1716

0 commit comments

Comments
 (0)