mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Split integration tests out from Makefile. (#17976)
This commit is contained in:
22
test/integration/targets/includes/test_includes2.yml
Normal file
22
test/integration/targets/includes/test_includes2.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
- name: verify playbook includes can take parameters
|
||||
hosts: testhost
|
||||
tasks:
|
||||
- assert:
|
||||
that:
|
||||
- "parameter1 == 'asdf'"
|
||||
- "parameter2 == 'jkl'"
|
||||
|
||||
- name: verify task include logic
|
||||
hosts: testhost
|
||||
gather_facts: True
|
||||
roles:
|
||||
- { role: test_includes, tags: test_includes }
|
||||
tasks:
|
||||
- include: roles/test_includes/tasks/not_a_role_task.yml
|
||||
- include: roles/test_includes/tasks/empty.yml
|
||||
- assert:
|
||||
that:
|
||||
- "ca == 33000"
|
||||
- "cb == 33001"
|
||||
- "cc == 33002"
|
||||
Reference in New Issue
Block a user