Add integration test for #36534 (#36581)

pull/36722/head
Martin Krizek 7 years ago committed by GitHub
parent 4c20d16549
commit 54e9096950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,6 @@
- hosts: localhost
gather_facts: no
tasks:
- name: test item being present in the output
debug: var=item
loop: [1, 2, 3]

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eux
trap 'rm -f out' EXIT
ansible-playbook main.yml -i ../../inventory | tee out
for i in 1 2 3; do
grep "ok: \[localhost\] => (item=$i)" out
grep "\"item\": $i" out
done
Loading…
Cancel
Save