mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
add test for ad hoc no module arg
This commit is contained in:
@@ -48,6 +48,19 @@
|
|||||||
- "result is changed"
|
- "result is changed"
|
||||||
- "result.status == 'successful'"
|
- "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
|
- name: Check module fails with correct msg
|
||||||
tower_ad_hoc_command:
|
tower_ad_hoc_command:
|
||||||
inventory: "{{ inv_name }}"
|
inventory: "{{ inv_name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user