Skip to content

Commit

Permalink
[test_verify_email] Retry the test until the expected line is in the …
Browse files Browse the repository at this point in the history
…logs
  • Loading branch information
elfiesmelfie committed Dec 5, 2024
1 parent b4fbfc9 commit a381325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/test_verify_email/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
cmd: |
oc logs alertmanager-default-0 -c alertmanager
register: cmd_output
failed_when:
- "cmd_output.stdout_lines | length == 0"
- "'receiver=email' not in cmd_outout.stdout"
retries: 18
delay: 10
until: "'receiver=email' in cmd_output.stdout"
changed_when: false

always:
Expand Down

0 comments on commit a381325

Please sign in to comment.