summaryrefslogtreecommitdiffstats
path: root/awx_collection/tools/integration_testing.yml
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2023-06-22 19:32:09 +0200
committerGitHub <noreply@github.com>2023-06-22 19:32:09 +0200
commitaa8437fd776af4932bf05b37904fe8acf30a270f (patch)
treea7bdf30f554364262147443dff231585061f8d90 /awx_collection/tools/integration_testing.yml
parentUsing execution_environment option in ad_hoc_command module (#14105) (diff)
downloadawx-aa8437fd776af4932bf05b37904fe8acf30a270f.tar.xz
awx-aa8437fd776af4932bf05b37904fe8acf30a270f.zip
Tooling for running collection tests locally ad hoc (#14160)
Diffstat (limited to '')
-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