File tree Expand file tree Collapse file tree
tests/templates/kuttl/upgrade Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,13 +4,6 @@ kind: TestAssert
44timeout: 300
55commands:
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'"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ metadata:
66timeout: 300
77commands:
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'"
You can’t perform that action at this time.
0 commit comments