Add integration test for #36534 (#36581)

This commit is contained in:
Martin Krizek 2018-02-26 09:49:25 +01:00 committed by GitHub
parent 4c20d16549
commit 54e9096950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1 @@
posix/ci/group1

View file

@ -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]

View file

@ -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