zuul/playbooks/zuul-stream/validate.yaml
James E. Blair 70077ee6d5 Do not wait for streamer when disabled
When a user sets zuul_console_disabled, we don't need to try to
connect to the streaming daemon.  In fact, they may have set it
because they know it won't be running.  Check for this and avoid
the connection step in that case and therefore avoid the extraneous
"Waiting on logger" messages and extra 30 second delay at the end
of each task.

Change-Id: I86af231f1ca1c5b54b21daae29387a8798190a58
2023-04-10 11:14:00 -07:00

35 lines
1.2 KiB
YAML

- name: Validate output - setupvar
shell: |
egrep "^.*\| {{ item.node }} \|\s+\"setupvar\": {" {{ item.filename }}
- name: Validate output - shell task
shell: |
egrep "^.*\| {{ item.node }} \| 1: lo:" {{ item.filename }}
- name: Validate output - loop with items
shell: |
egrep "^.+\| {{ item.node }} \| ok: Item: item1" {{ item.filename }}
egrep "^.+\| {{ item.node }} \| ok: Item: item2" {{ item.filename }}
egrep "^.+\| {{ item.node }} \| ok: Item: item3" {{ item.filename }}
- name: Validate output - loop with complex items
shell: |
egrep "^.+\| {{ item.node }} \| ok: Item: Runtime" {{ item.filename }}
- name: Validate output - failed shell task
shell: |
egrep "^.+\| {{ item.node }} \| Exception: Test module failure exception task" {{ item.filename }}
- name: Validate output - item loop with exception
shell: |
egrep "^.+\| {{ item.node }} \| Exception: Test module failure exception loop" {{ item.filename }}
- name: Validate output - binary data
shell: |
egrep "^.*\| {{ item.node }} \| \\\\x80abc" {{ item.filename }}
- name: Validate output - no waiting on logger
shell: |
egrep -v "Waiting on logger" {{ item.filename }}
egrep -v "Log Stream did not terminate" {{ item.filename }}