summaryrefslogtreecommitdiff
path: root/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-05-01 08:52:25 -0700
committerGitHub <noreply@github.com>2017-05-01 08:52:25 -0700
commit3428f42120bb35f9b46f19326d44497a55f8ccd4 (patch)
tree4f689ab9a1d58dcb803f40deb945e46c8765e726 /test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
parent8ba069315e74900b2435be607d3c70fca24e7adc (diff)
downloadansible-3428f42120bb35f9b46f19326d44497a55f8ccd4.tar.gz
Add integration test that modules are loaded from the expected locations (#24170)
* Add integration test that modules are loaded from the expected locations * Fix ping module to pass PEP8
Diffstat (limited to 'test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml')
-rw-r--r--test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml b/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
new file mode 100644
index 0000000000..5c57801566
--- /dev/null
+++ b/test/integration/targets/module_precedence/modules_test_multiple_roles_reverse_order.yml
@@ -0,0 +1,16 @@
+- hosts: localhost
+ gather_facts: no
+ vars:
+ expected_location: "role: bar"
+ roles:
+ - bar
+ - foo
+ tasks:
+ - name: Use ping from role
+ ping:
+ register: result
+
+ - assert:
+ that:
+ - '"location" in result'
+ - 'result["location"] == "{{ expected_location}}"'