Fix missing alias in argument_spec and add tests for it

This commit is contained in:
Anton Nesterov
2020-10-20 21:15:28 +02:00
parent 2e237661f8
commit 130f6300c5
2 changed files with 16 additions and 1 deletions

View File

@@ -97,6 +97,21 @@
that:
- "result is changed"
- name: Test Inventory Source Update for All Sources (using inventory_source as alias for name)
tower_inventory_source_update:
inventory_source: "{{ item.name }}"
inventory: "{{ inv_name }}"
organization: Default
wait: true
loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': created_inventory.id }, expect_objects=True, return_objects=True) }}"
loop_control:
label: "{{ item.name }}"
register: result
- assert:
that:
- "result is changed"
always:
- name: Delete Inventory
tower_inventory: