summaryrefslogtreecommitdiff
path: root/playbooks/zuul-stream/validate.yaml
blob: 81c6134068b6bc048c16e23106b1dccef7578bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- 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 }}