summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2020-11-09 09:55:17 -0500
committerGitHub <noreply@github.com>2020-11-09 09:55:17 -0500
commit8eab113cb1c6a3fd67b88332b4091f24090598c5 (patch)
treec4adfc0c852b0e30f5a4cec9d4525ea1fcdfeb7b /test/integration
parent96ad5b799ecc135dc13da558f86902aff7658283 (diff)
downloadansible-8eab113cb1c6a3fd67b88332b4091f24090598c5.tar.gz
show keyword documentation in ansible-doc (#72476)
* show keyword documentation in ansible-doc Co-authored-by: Felix Fontein <felix@fontein.de>
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/targets/ansible-doc/runme.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-doc/runme.sh b/test/integration/targets/ansible-doc/runme.sh
index 7cc6bfe449..7d203825ea 100755
--- a/test/integration/targets/ansible-doc/runme.sh
+++ b/test/integration/targets/ansible-doc/runme.sh
@@ -3,6 +3,12 @@
set -eux
ansible-playbook test.yml -i inventory "$@"
+# test keyword docs
+ansible-doc -t keyword -l | grep 'vars_prompt: list of variables to prompt for.'
+ansible-doc -t keyword vars_prompt | grep 'description: list of variables to prompt for.'
+ansible-doc -t keyword asldkfjaslidfhals 2>&1 | grep 'Skipping Invalid keyword'
+
+# collections testing
(
unset ANSIBLE_PLAYBOOK_DIR
cd "$(dirname "$0")"