diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2020-11-10 17:46:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 17:46:15 +0100 |
commit | 4f0e2fff957c67415958e71a03fe4fc7dabce87e (patch) | |
tree | e41c67d1071d4b3744a8d25f449319adc63ac92f /test/integration/targets/ansible-doc | |
parent | allow any type of unsafe data (#72547) (diff) | |
download | ansible-4f0e2fff957c67415958e71a03fe4fc7dabce87e.tar.xz ansible-4f0e2fff957c67415958e71a03fe4fc7dabce87e.zip |
avoid fatal exception on invalid collection name (#72296)
* avoid fatal exception on invalid collection name used in ansible-doc filter
Diffstat (limited to 'test/integration/targets/ansible-doc')
-rwxr-xr-x | test/integration/targets/ansible-doc/runme.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-doc/runme.sh b/test/integration/targets/ansible-doc/runme.sh index 7d203825ea..c4bea83d4c 100755 --- a/test/integration/targets/ansible-doc/runme.sh +++ b/test/integration/targets/ansible-doc/runme.sh @@ -18,6 +18,13 @@ current_out="$(ansible-doc --playbook-dir ./ testns.testcol.fakemodule)" expected_out="$(cat fakemodule.output)" test "$current_out" == "$expected_out" +# ensure we do work with valid collection name for list +ansible-doc --list testns.testcol --playbook-dir ./ 2>&1 | grep -v "Invalid collection pattern" + +# ensure we dont break on invalid collection name for list +ansible-doc --list testns.testcol.fakemodule --playbook-dir ./ 2>&1 | grep "Invalid collection pattern" + + # test listing diff plugin types from collection for ptype in cache inventory lookup vars do |