summaryrefslogtreecommitdiffstats
path: root/awx_collection/tools/integration_testing.yml
diff options
context:
space:
mode:
Diffstat (limited to 'awx_collection/tools/integration_testing.yml')
-rw-r--r--awx_collection/tools/integration_testing.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/awx_collection/tools/integration_testing.yml b/awx_collection/tools/integration_testing.yml
new file mode 100644
index 0000000000..363429123d
--- /dev/null
+++ b/awx_collection/tools/integration_testing.yml
@@ -0,0 +1,24 @@
+---
+- hosts: localhost
+ gather_facts: false
+ connection: local
+ collections:
+ - awx.awx
+ vars:
+ collection_location: "{{ playbook_dir }}/.."
+ loc_tests: "{{ collection_location }}/tests/integration/targets/"
+ test: ad_hoc_command,host,role
+ tasks:
+ - name: DEBUG - make sure variables are what we expect
+ debug:
+ msg: |
+ Running tests at location:
+ {{ loc_tests }}
+ Running tests folders:
+ {{ test | trim | split(',') }}
+
+ - name: "Include test targets"
+ include_tasks: "{{ loc_tests }}{{ test_name }}/tasks/main.yml"
+ loop: "{{ test | trim | split(',') }}"
+ loop_control:
+ loop_var: test_name