mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Split integration tests out from Makefile. (#17976)
This commit is contained in:
9
test/integration/targets/async_extra_data/runme.sh
Executable file
9
test/integration/targets/async_extra_data/runme.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
# Verify that extra data before module JSON output during async call is ignored.
|
||||
ANSIBLE_DEBUG=0 LC_ALL=bogus ansible-playbook test_async.yml -i localhost, -e ansible_connection=ssh -v "$@"
|
||||
# Verify that the warning exists by examining debug output.
|
||||
ANSIBLE_DEBUG=1 LC_ALL=bogus ansible-playbook test_async.yml -i localhost, -e ansible_connection=ssh -v "$@" \
|
||||
| grep 'bash: warning: setlocale: LC_ALL: cannot change locale (bogus)' > /dev/null
|
||||
10
test/integration/targets/async_extra_data/test_async.yml
Normal file
10
test/integration/targets/async_extra_data/test_async.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# make sure non-JSON data before module output is ignored
|
||||
- name: async ping with invalid locale via ssh
|
||||
ping:
|
||||
async: 10
|
||||
poll: 1
|
||||
register: result
|
||||
- debug: var=result
|
||||
Reference in New Issue
Block a user