Skip to content

Commit

Permalink
Removed unsupported option
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Cai <[email protected]>
  • Loading branch information
ciiay committed Jun 21, 2023
1 parent 612a20d commit efb977f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/k8s/1-022_validate_notifications/05-verify-email.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
set -euo pipefail
- script: |
set -e
smtp4dev_pod=$(kubectl get pod -l=app=smtp4dev -o jsonpath='{.items[0].metadata.name}' -n $NAMESPACE)
kubectl -n $NAMESPACE exec -i "${smtp4dev_pod}" -- /bin/bash -c 'grep -rnw /tmp -e "Subject: Application my-app-3 has been created."'
output=$(kubectl -n $NAMESPACE exec -i "${smtp4dev_pod}" -- /bin/bash -c 'grep -rnw /tmp -e "Subject: Application my-app-3 has been created."')
if [ -n "$output" ]; then
echo "Email notification received: Application my-app-3 has been created."
exit 0
else
echo "Email notification not received."
exit 1
fi

0 comments on commit efb977f

Please sign in to comment.