mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
add test for ad hoc no module arg
This commit is contained in:
parent
5548f7e91d
commit
62d91365a7
@ -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 }}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user