mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Add a fips fact and use it for integration tests
This commit is contained in:
parent
5bc81f9ae7
commit
b828b25784
3 changed files with 12 additions and 4 deletions
|
@ -61,7 +61,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "copy_result.md5sum == 'c47397529fe81ab62ba3f85e9f4c71f2'"
|
||||
ignore_errors: True
|
||||
when: ansible_fips != True
|
||||
|
||||
- name: check the stat results of the file
|
||||
stat: path={{output_file}}
|
||||
|
@ -83,7 +83,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "stat_results.stat.md5 == 'c47397529fe81ab62ba3f85e9f4c71f2'"
|
||||
ignore_errors: True
|
||||
when: ansible_fips != True
|
||||
|
||||
- name: overwrite the file via same means
|
||||
copy: src=foo.txt dest={{output_file}}
|
||||
|
@ -242,7 +242,7 @@
|
|||
that:
|
||||
- stat_link_result.stat.islnk
|
||||
|
||||
- name: get the md5 of the link target
|
||||
- name: get the checksum of the link target
|
||||
shell: sha1sum {{output_dir}}/follow_test | cut -f1 -sd ' '
|
||||
register: target_file_result
|
||||
|
||||
|
|
|
@ -66,4 +66,4 @@
|
|||
- assert:
|
||||
that:
|
||||
- "stat_result.stat.md5 == '5eb63bbbe01eeed093cb22bb8f5acdc3'"
|
||||
ignore_errors: True
|
||||
when: ansible_fips != True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue