mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-25 05:23:58 -07:00
Fix cosmetic problems in YAML source
This change corrects problems reported by the `yamllint` linter.
Since key duplication problems were removed in 4d48711, this commit
mainly fixes trailing spaces and extra empty lines at beginning/end of
files.
This commit is contained in:
parent
8874c1dc39
commit
0e834fc9e4
251 changed files with 214 additions and 510 deletions
|
|
@ -1,3 +1,2 @@
|
|||
dependencies:
|
||||
dependencies:
|
||||
- prepare_win_tests
|
||||
|
||||
|
|
|
|||
|
|
@ -21,22 +21,22 @@
|
|||
win_template: src=foo.j2 dest={{win_output_dir}}/foo.templated
|
||||
register: template_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'changed' in template_result"
|
||||
# - "'dest' in template_result"
|
||||
# - "'group' in template_result"
|
||||
# - "'gid' in template_result"
|
||||
# - "'checksum' in template_result"
|
||||
# - "'owner' in template_result"
|
||||
# - "'size' in template_result"
|
||||
# - "'src' in template_result"
|
||||
# - "'state' in template_result"
|
||||
# - "'uid' in template_result"
|
||||
- assert:
|
||||
that:
|
||||
- "'changed' in template_result"
|
||||
# - "'dest' in template_result"
|
||||
# - "'group' in template_result"
|
||||
# - "'gid' in template_result"
|
||||
# - "'checksum' in template_result"
|
||||
# - "'owner' in template_result"
|
||||
# - "'size' in template_result"
|
||||
# - "'src' in template_result"
|
||||
# - "'state' in template_result"
|
||||
# - "'uid' in template_result"
|
||||
|
||||
- name: verify that the file was marked as changed
|
||||
assert:
|
||||
that:
|
||||
assert:
|
||||
that:
|
||||
- "template_result.changed == true"
|
||||
|
||||
- name: fill in a basic template again
|
||||
|
|
@ -46,9 +46,9 @@
|
|||
register: template_result2
|
||||
|
||||
- name: verify that the template was not changed
|
||||
assert:
|
||||
that:
|
||||
- "not template_result2|changed"
|
||||
assert:
|
||||
that:
|
||||
- "not template_result2|changed"
|
||||
|
||||
# VERIFY CONTENTS
|
||||
|
||||
|
|
@ -56,17 +56,17 @@
|
|||
win_copy: src=foo.txt dest={{win_output_dir}}\\foo.txt
|
||||
|
||||
- name: compare templated file to known good
|
||||
raw: fc.exe {{win_output_dir}}\\foo.templated {{win_output_dir}}\\foo.txt
|
||||
raw: fc.exe {{win_output_dir}}\\foo.templated {{win_output_dir}}\\foo.txt
|
||||
register: diff_result
|
||||
|
||||
- debug: var=diff_result
|
||||
|
||||
- name: verify templated file matches known good
|
||||
assert:
|
||||
that:
|
||||
# - 'diff_result.stdout == ""'
|
||||
assert:
|
||||
that:
|
||||
# - 'diff_result.stdout == ""'
|
||||
- 'diff_result.stdout_lines[1] == "FC: no differences encountered"'
|
||||
- "diff_result.rc == 0"
|
||||
- "diff_result.rc == 0"
|
||||
|
||||
# VERIFY MODE
|
||||
# can't set file mode on windows so commenting this test out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue