mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
a260063ffd
* Added camel case to snake case converters * removed uneeded shebang * renamed util to remove PowerShell from the name
41 lines
831 B
YAML
41 lines
831 B
YAML
- name: call old WANTS_JSON module
|
|
legacy_only_old_way:
|
|
register: old_way
|
|
|
|
- assert:
|
|
that:
|
|
- old_way.data == 'success'
|
|
|
|
- name: call module with only legacy requires
|
|
legacy_only_new_way:
|
|
register: new_way
|
|
|
|
- assert:
|
|
that:
|
|
- new_way.data == 'success'
|
|
|
|
- name: call module with local module_utils
|
|
uses_local_utils:
|
|
register: local_utils
|
|
|
|
- assert:
|
|
that:
|
|
- local_utils.data == "ValueFromCustomFunction"
|
|
|
|
- name: call module that imports bogus Ansible-named module_utils
|
|
uses_bogus_utils:
|
|
ignore_errors: true
|
|
register: bogus_utils
|
|
|
|
- assert:
|
|
that:
|
|
- bogus_utils | failed
|
|
- bogus_utils.msg | search("Could not find")
|
|
|
|
- name: call module with camel conversion tests
|
|
camel_conversion_test:
|
|
register: camel_conversion
|
|
|
|
- assert:
|
|
that:
|
|
- camel_conversion.data == 'success'
|