From b439e41a915ccec0ccbabecc966919ea406db74e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 27 Apr 2022 09:46:52 -0400 Subject: 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 Co-authored-by: Felix Fontein Co-authored-by: Sandra McCann --- test/integration/targets/ansible-doc/runme.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/integration/targets/ansible-doc/runme.sh') 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 -- cgit v1.2.1