summaryrefslogtreecommitdiff
path: root/test/integration/targets
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2022-05-11 11:54:50 -0400
committerGitHub <noreply@github.com>2022-05-11 10:54:50 -0500
commit67f06ed83c73da996a2824803979b49863cd1497 (patch)
treebb95fdee41f446f317f92f25ce5ec642392893eb /test/integration/targets
parentd5e5bd34d6249b3b0c66c3423fa09a9f3b032467 (diff)
downloadansible-67f06ed83c73da996a2824803979b49863cd1497.tar.gz
dont rely on path to set config defs for plugins (#77659) (#77696)
(cherry picked from commit a3cc6a581ef191faf1c9ec102d1c116c4c2a8778)
Diffstat (limited to 'test/integration/targets')
-rwxr-xr-xtest/integration/targets/plugin_loader/runme.sh3
-rw-r--r--test/integration/targets/plugin_loader/use_coll_name.yml7
2 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/plugin_loader/runme.sh b/test/integration/targets/plugin_loader/runme.sh
index 2a1bdedaca..1b8e1a84ab 100755
--- a/test/integration/targets/plugin_loader/runme.sh
+++ b/test/integration/targets/plugin_loader/runme.sh
@@ -22,3 +22,6 @@ do
exit 1
fi
done
+
+# test config loading
+ansible-playbook use_coll_name.yml -i ../../inventory -e 'ansible_connection=ansible.builtin.ssh' "$@"
diff --git a/test/integration/targets/plugin_loader/use_coll_name.yml b/test/integration/targets/plugin_loader/use_coll_name.yml
new file mode 100644
index 0000000000..66507ced2c
--- /dev/null
+++ b/test/integration/targets/plugin_loader/use_coll_name.yml
@@ -0,0 +1,7 @@
+- name: ensure configuration is loaded when we use FQCN and have already loaded using 'short namne' (which is case will all builtin connection plugins)
+ hosts: all
+ gather_facts: false
+ tasks:
+ - name: relies on extra var being passed in with connection and fqcn
+ ping:
+ ignore_unreachable: True