mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Tooling for running collection tests locally ad hoc (#14160)
This commit is contained in:
24
awx_collection/tools/integration_testing.yml
Normal file
24
awx_collection/tools/integration_testing.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user