github.com/argoproj-labs/argocd-operator@v0.10.0/tests/k8s/1-022_validate_notifications/05-verify-email.yaml (about) 1 apiVersion: kuttl.dev/v1beta1 2 kind: TestStep 3 commands: 4 - script: | 5 set -e 6 smtp4dev_pod=$(kubectl get pod -l=app=smtp4dev -o NAME -n $NAMESPACE) 7 exit_code=$(kubectl -n $NAMESPACE exec -i --stdin "${smtp4dev_pod}" -- /bin/bash \ 8 -c 'if [[ $(grep -rnw /tmp -e "Subject: Application my-app-3 has been created.") ]]; then 9 exit 0; else 10 exit 1; 11 fi') 12 13 if [ $exit_code=0 ]; then 14 exit 0 15 else 16 exit 1 17 fi