mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Revised following comments from Chris Church.
Now uses sha1 checksums following merge of 9688. Also I undid the changes I made to fetch.py win_template.py now uses conn.shell.has_trailing_slash and conn.shell.join_path updated integration tests.
This commit is contained in:
parent
bf916fb58a
commit
e37b63386c
4 changed files with 12 additions and 12 deletions
|
@ -62,12 +62,14 @@
|
|||
- name: verify that the file checksum is correct
|
||||
assert:
|
||||
that:
|
||||
- "copy_result.checksum[0] == 'c47397529fe81ab62ba3f85e9f4c71f2'"
|
||||
- "copy_result.checksum[0] == 'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
|
||||
|
||||
- name: check the stat results of the file
|
||||
win_stat: path={{output_file}}
|
||||
register: stat_results
|
||||
|
||||
- debug: var=stat_results
|
||||
|
||||
- name: assert the stat results are correct
|
||||
assert:
|
||||
that:
|
||||
|
@ -76,7 +78,7 @@
|
|||
# - "stat_results.stat.isfifo == false"
|
||||
# - "stat_results.stat.isreg == true"
|
||||
# - "stat_results.stat.issock == false"
|
||||
- "stat_results.stat.md5[0] == 'c47397529fe81ab62ba3f85e9f4c71f2'"
|
||||
- "stat_results.stat.checksum[0] == 'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
|
||||
|
||||
- name: overwrite the file via same means
|
||||
win_copy: src=foo.txt dest={{output_file}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue