mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-09 17:59:09 -07:00
Forgot to add an assertion for the new rsync_path test
This commit is contained in:
parent
cf54098dab
commit
dc4f198bad
1 changed files with 11 additions and 0 deletions
|
@ -62,3 +62,14 @@
|
||||||
register: sync_result
|
register: sync_result
|
||||||
|
|
||||||
- debug: var=sync_result
|
- debug: var=sync_result
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "'changed' in sync_result"
|
||||||
|
- "sync_result.changed == true"
|
||||||
|
- "'cmd' in sync_result"
|
||||||
|
- "'rsync' in sync_result.cmd"
|
||||||
|
- "'rsync_path' in sync_result.cmd"
|
||||||
|
- "'msg' in sync_result"
|
||||||
|
- "sync_result.msg.startswith('>f+')"
|
||||||
|
- "sync_result.msg.endswith('+ foo.txt\n')"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue