mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
[stable-9] Fix/improve tests (#9861)
Fix/improve tests (#9859)
* Fix tests.
* Improve callback tests.
(cherry picked from commit eff25c8a6e
)
This commit is contained in:
parent
0ccb961ff7
commit
de754eacbc
26 changed files with 184 additions and 154 deletions
|
@ -51,7 +51,7 @@
|
|||
- orig_stat.stat.size == stat_test_1.stat.size
|
||||
- orig_stat.stat.checksum == stat_test_1.stat.checksum
|
||||
- orig_stat.stat.mtime == stat_test_1.stat.mtime
|
||||
- stat_test_1.stat.checksum == expected_content | checksum
|
||||
- stat_test_1.stat.checksum == (expected_content | trim + '\n') | checksum
|
||||
vars:
|
||||
expected_content: |
|
||||
# Copyright (c) Ansible Project
|
||||
|
@ -83,7 +83,7 @@
|
|||
assert:
|
||||
that:
|
||||
- bl_test_2 is changed
|
||||
- slurp_test_2.content|b64decode == content
|
||||
- slurp_test_2.content|b64decode == (content | trim + '\n')
|
||||
vars:
|
||||
content: |
|
||||
# Copyright (c) Ansible Project
|
||||
|
@ -111,7 +111,7 @@
|
|||
assert:
|
||||
that:
|
||||
- bl_test_3 is changed
|
||||
- slurp_test_3.content|b64decode == content
|
||||
- slurp_test_3.content|b64decode == (content | trim + '\n')
|
||||
vars:
|
||||
content: |
|
||||
# Copyright (c) Ansible Project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue