diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2022-09-06 16:13:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 16:13:18 -0400 |
commit | dc2a79f1c3e45ac9b3c44f8d03b966903ca66de0 (patch) | |
tree | 0bdc1e56ce83ce98d52b003c8463341961c4c14e /test/integration | |
parent | 38a82a5cc43ed4b48cf5fbc3addc5d2993c37eef (diff) | |
download | ansible-dc2a79f1c3e45ac9b3c44f8d03b966903ca66de0.tar.gz |
ansilbe-doc fixes for filters/test listing (#78696)
* split filters
* listing fixes
* return to no docs being exception
Diffstat (limited to 'test/integration')
3 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-doc/filter_plugins/other.py b/test/integration/targets/ansible-doc/filter_plugins/other.py index fcc1e10d30..5619fb299d 100644 --- a/test/integration/targets/ansible-doc/filter_plugins/other.py +++ b/test/integration/targets/ansible-doc/filter_plugins/other.py @@ -20,4 +20,5 @@ class FilterModule(object): return { 'donothing': donothing, 'nodocs': donothing, + 'split': donothing, } diff --git a/test/integration/targets/ansible-doc/filter_plugins/split.yml b/test/integration/targets/ansible-doc/filter_plugins/split.yml new file mode 120000 index 0000000000..7fad18925d --- /dev/null +++ b/test/integration/targets/ansible-doc/filter_plugins/split.yml @@ -0,0 +1 @@ +donothing.yml
\ No newline at end of file diff --git a/test/integration/targets/ansible-doc/runme.sh b/test/integration/targets/ansible-doc/runme.sh index fcb858b829..ef392cf396 100755 --- a/test/integration/targets/ansible-doc/runme.sh +++ b/test/integration/targets/ansible-doc/runme.sh @@ -175,3 +175,8 @@ ansible-doc --list --module-path ./modules > /dev/null # ensure we dedupe by fqcn and not base name #[ "$(ansible-doc -l -t filter --playbook-dir ./ |grep 'b64decode' | wc -l)" -eq "2"] + +# with playbook dir, legacy should override +ansible-doc -t filter split --playbook-dir ./ |grep histerical +# without playbook dir, builtin should return +ansible-doc -t filter split |grep -v histerical |