Skip to content

Commit c43a823

Browse files
committed
test: Remove template gates from upgrade test
1 parent 9bb8f42 commit c43a823

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

tests/templates/kuttl/upgrade/04-assert.yaml.j2

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ kind: TestAssert
44
timeout: 300
55
commands:
66
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- python /tmp/test_nifi.py -u admin -p supersecretpassword -n $NAMESPACE -c 3
7-
{% if test_scenario['values']['nifi_old'].split(',')[0].startswith('1.') %}
8-
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- python /tmp/test_nifi_metrics.py -n $NAMESPACE
9-
{% endif %}
10-
{% if test_scenario['values']['nifi_old'].split(',')[0] == '2.0.0' %}
11-
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- sh -c "python /tmp/flow.py -e https://test-nifi-node-default-0.test-nifi-node-default-headless.$NAMESPACE.svc.cluster.local:8443 run json /tmp/generate-and-log-flowfiles.json > /tmp/old_input"
12-
{% else %}
137
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- sh -c "python /tmp/flow.py -e https://test-nifi-node-default-0.test-nifi-node-default-headless.$NAMESPACE.svc.cluster.local:8443 run template /tmp/generate-and-log-flowfiles.xml > /tmp/old_input"
14-
{% endif %}
158
# This tests if the output contains an Error or zero flow files are queued, which also indicates that something went wrong
169
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- sh -c "cat /tmp/old_input | grep -Eov 'Error|\b0\b'"

tests/templates/kuttl/upgrade/04-prepare-test-nifi.yaml.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ commands:
55
- script: kubectl cp -n $NAMESPACE ./test_nifi_metrics.py test-nifi-0:/tmp
66
- script: kubectl cp -n $NAMESPACE ./test_nifi.py test-nifi-0:/tmp
77
- script: kubectl cp -n $NAMESPACE ./flow.py test-nifi-0:/tmp
8-
{% if test_scenario['values']['nifi_old'].split(',')[0] == '2.0.0' %}
9-
- script: kubectl cp -n $NAMESPACE ./generate-and-log-flowfiles.json test-nifi-0:/tmp
10-
{% else %}
118
- script: kubectl cp -n $NAMESPACE ./generate-and-log-flowfiles.xml test-nifi-0:/tmp
12-
{% endif %}
139
- script: kubectl cp -n $NAMESPACE ./cacert.pem test-nifi-0:/tmp

tests/templates/kuttl/upgrade/07-assert.yaml.j2

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ metadata:
66
timeout: 300
77
commands:
88
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- python /tmp/test_nifi.py -u admin -p supersecretpassword -n $NAMESPACE -c 3
9-
{% if test_scenario['values']['nifi_new'].split(',')[0].startswith('1.') %}
10-
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- python /tmp/test_nifi_metrics.py -n $NAMESPACE
11-
{% endif %}
129
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- sh -c "python /tmp/flow.py -e https://test-nifi-node-default-0.test-nifi-node-default-headless.$NAMESPACE.svc.cluster.local:8443 query > /tmp/new_input"
1310
# This tests if the output contains an Error or zero flow files are queued, which also indicates that something went wrong
1411
- script: kubectl exec -n $NAMESPACE test-nifi-0 -- sh -c "cat /tmp/new_input | grep -Eov 'Error|\b0\b'"

0 commit comments

Comments
 (0)