summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/adhoc
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2022-08-03 03:24:12 +0200
committerGitHub <noreply@github.com>2022-08-03 03:24:12 +0200
commitad79c1e0d032eb5dda216055ffc393043de4b380 (patch)
treef8618cb8d80f431f7bc18d4da655f3385addd5cf /test/integration/targets/adhoc
parentansible-test - Update locale logic to match core. (#78389) (diff)
downloadansible-ad79c1e0d032eb5dda216055ffc393043de4b380.tar.xz
ansible-ad79c1e0d032eb5dda216055ffc393043de4b380.zip
Add support for json in adhoc -a (#78114)
Co-authored-by: Sandra McCann <samccann@redhat.com>
Diffstat (limited to 'test/integration/targets/adhoc')
-rwxr-xr-xtest/integration/targets/adhoc/runme.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/adhoc/runme.sh b/test/integration/targets/adhoc/runme.sh
index 4ef076eb96..eda6d66192 100755
--- a/test/integration/targets/adhoc/runme.sh
+++ b/test/integration/targets/adhoc/runme.sh
@@ -4,3 +4,6 @@ set -eux
# run type tests
ansible -a 'sleep 20' --task-timeout 5 localhost |grep 'The command action failed to execute in the expected time frame (5) and was terminated'
+
+# -a parsing with json
+ansible --task-timeout 5 localhost -m command -a '{"cmd": "whoami"}' | grep 'rc=0'