@@ -6,24 +6,24 @@ commands:
66
77{% if test_scenario ['values' ]['executor' ] == 'kubernetes' %}
88 # check that the executor template configmap contains mounts and envs
9- # will expect 4 (2 from from the volume declaration + mounts to two containers, base and gitsync)
10- - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "test-cm-gitsync" | wc -l | grep 4
11- # will expect 2 (two containers, base and gitsync)
12- - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "AIRFLOW_TEST_VAR" | wc -l | grep 2
13- # will expect 1 (one container, gitsync)
9+ # will expect 6 (2 from from the volume declaration + mounts to four containers, base and gitsync-0, gitsync-1 and multi- gitsync)
10+ - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "test-cm-gitsync" | wc -l | grep 6
11+ # will expect 4 (two containers, base and gitsync-0, gitsync-1 and multi- gitsync)
12+ - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "AIRFLOW_TEST_VAR" | wc -l | grep 4
13+ # will expect 2 (three container, gitsync-0, gitsync-1 )
1414{% if test_scenario ['values' ]['access' ] == 'https' %}
15- - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "GITSYNC_USERNAME" | wc -l | grep 1
16- - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "GITSYNC_PASSWORD" | wc -l | grep 1
15+ - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "GITSYNC_USERNAME" | wc -l | grep 2
16+ - script: kubectl -n $NAMESPACE get cm airflow-executor-pod-template -o json | jq -r '.data."airflow_executor_pod_template.yaml"' | grep "GITSYNC_PASSWORD" | wc -l | grep 2
1717{% endif %}
1818{% else %}
1919 # check that the statefulset contains mounts and envs
20- # will expect 6 (2 from from the volume declaration + mounts to 3 containers, base and 2 gitsyncs, plus configmap restarter)
21- - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "test-cm-gitsync" | wc -l | grep 6
22- # will expect 3 (two containers, base and gitsync-1, and one initContainer gitsync-0)
23- - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "AIRFLOW_TEST_VAR" | wc -l | grep 3
24- # will expect 2 (one container, gitsync-1, and one initContainer gitsync-0)
20+ # will expect 6 (2 from from the volume declaration + mounts to 5 containers, base and 2 gitsyncs plus configmap restarter)
21+ - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "test-cm-gitsync" | wc -l | grep 7
22+ # will expect 5 (three containers, base, gitsyinc-0 and gitsync-1, and two initContainer gitsync-0 and gitsync-1 )
23+ - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "AIRFLOW_TEST_VAR" | wc -l | grep 5
24+ # will expect 4 (two container, gitsync-0, gitsync- 1, and two initContainer gitsync-0 and gitsync-1 )
2525{% if test_scenario ['values' ]['access' ] == 'https' %}
26- - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "GITSYNC_USERNAME" | wc -l | grep 2
27- - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "GITSYNC_PASSWORD" | wc -l | grep 2
26+ - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "GITSYNC_USERNAME" | wc -l | grep 4
27+ - script: kubectl -n $NAMESPACE get sts airflow-worker-default -o json | grep "GITSYNC_PASSWORD" | wc -l | grep 4
2828{% endif %}
2929{% endif %}
0 commit comments