diff options
author | Alan Rominger <arominge@redhat.com> | 2023-06-22 19:32:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 19:32:09 +0200 |
commit | aa8437fd776af4932bf05b37904fe8acf30a270f (patch) | |
tree | a7bdf30f554364262147443dff231585061f8d90 /awx_collection/tools/integration_testing.yml | |
parent | Using execution_environment option in ad_hoc_command module (#14105) (diff) | |
download | awx-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.yml | 24 |
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 |