add test for ad hoc no module arg

This commit is contained in:
sean-m-sullivan 2021-02-15 12:23:18 -06:00
parent 5548f7e91d
commit 62d91365a7

View File

@ -48,6 +48,19 @@
- "result is changed"
- "result.status == 'successful'"
- name: Launch an Ad Hoc Command without module argument
tower_ad_hoc_command:
inventory: "Demo Inventory"
credential: "{{ ssh_cred_name }}"
module_name: "ping"
wait: true
register: result
- assert:
that:
- "result is changed"
- "result.status == 'successful'"
- name: Check module fails with correct msg
tower_ad_hoc_command:
inventory: "{{ inv_name }}"