diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2022-04-27 09:46:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 09:46:52 -0400 |
commit | b439e41a915ccec0ccbabecc966919ea406db74e (patch) | |
tree | bf8f135022a43bd8e61b8a2206531a76404e62c3 /test/integration/targets/ansible-doc/runme.sh | |
parent | a65fbfad5b20b23b41c4f8cdd82161bb8c365953 (diff) | |
download | ansible-b439e41a915ccec0ccbabecc966919ea406db74e.tar.gz |
expand ansible-doc coverage (#74963)
* Expand ansible-doc to tests/filters and fix existing issues
enable filter/test docs if in single file or companion yaml
add docs for several filters/tests plugins
allow .yml companion for docs for other plugins, must be colocated
verify plugins are valid (not modules, cannot)
fix 'per collection' filtering
limit old style deprecation (_ prefix) to builtin/legacy
start move to pathlib for saner path handling
moved some funcitons, kept backwards compat shims with deprecation notice
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Sandra McCann <samccann@redhat.com>
Diffstat (limited to 'test/integration/targets/ansible-doc/runme.sh')
-rwxr-xr-x | test/integration/targets/ansible-doc/runme.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/integration/targets/ansible-doc/runme.sh b/test/integration/targets/ansible-doc/runme.sh index 81eba61946..4d536e5410 100755 --- a/test/integration/targets/ansible-doc/runme.sh +++ b/test/integration/targets/ansible-doc/runme.sh @@ -43,9 +43,8 @@ do justcol=$(ansible-doc -l -t ${ptype} --playbook-dir ./ testns.testcol|wc -l) test "$justcol" -eq 1 - # ensure we get 0 plugins when restricting to collection, but not supplying it - justcol=$(ansible-doc -l -t ${ptype} testns.testcol|wc -l) - test "$justcol" -eq 0 + # ensure we get error if passinginvalid collection, much less any plugins + ansible-doc -l -t ${ptype} testns.testcol 2>&1 | grep "unable to locate collection" # TODO: do we want per namespace? # ensure we get 1 plugins when restricting namespace |