mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
moved to exceptions for basic skip/fails
better handling of checkmode and async fix test to follow new flow control
This commit is contained in:
parent
a3a970180a
commit
e29dc49a49
12 changed files with 30 additions and 43 deletions
|
@ -36,7 +36,7 @@
|
|||
- name: Make sure the we used the local facts.py, not the one shipped with ansible
|
||||
assert:
|
||||
that:
|
||||
- 'result["data"] == "overridden facts.py"'
|
||||
- result["data"] == "overridden facts.py"
|
||||
|
||||
- name: Test that importing a module that only exists inside of a submodule does not work
|
||||
test_failure:
|
||||
|
@ -47,5 +47,5 @@
|
|||
- name: Make sure we failed in AnsiBallZ
|
||||
assert:
|
||||
that:
|
||||
- 'result["failed"] == True'
|
||||
- '"Could not find imported module support code for test_failure. Looked for either foo.py or zebra.py" == result["msg"]'
|
||||
- result|failed
|
||||
- result['msg'] == "Could not find imported module support code for test_failure. Looked for either foo.py or zebra.py"
|
||||
|
|
|
@ -81,5 +81,5 @@
|
|||
- name: assert task with async param failed
|
||||
assert:
|
||||
that:
|
||||
- 'script_result3.failed'
|
||||
- 'script_result3.msg == "async is not supported for this task."'
|
||||
- script_result3|failed
|
||||
- script_result3.msg == "async is not supported for this task."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue