Normalize bools in tests (#5996)

* Normalize bools in tests.

* Fix typo.
This commit is contained in:
Felix Fontein 2023-02-15 22:55:23 +01:00 committed by GitHub
commit 24efe9ee9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
182 changed files with 770 additions and 770 deletions

View file

@ -22,8 +22,8 @@
copy:
content: "{{ xmlresponse.xmlstring }}\n"
dest: '/tmp/test-pretty-print-only.xml'
check_mode: yes
diff: yes
check_mode: true
diff: true
register: comparison
- name: Test expected result
@ -38,15 +38,15 @@
- name: Read from xmlstring (using pretty_print)
xml:
xmlstring: "{{ lookup('file', '{{ role_path }}/fixtures/ansible-xml-beers.xml') }}"
pretty_print: yes
pretty_print: true
register: xmlresponse
- name: Compare to expected result
copy:
content: '{{ xmlresponse.xmlstring }}'
dest: '/tmp/test-pretty-print-only.xml'
check_mode: yes
diff: yes
check_mode: true
diff: true
register: comparison
# FIXME: This change is related to the newline added by pretty_print
@ -63,7 +63,7 @@
xml:
xmlstring: "{{ lookup('file', '{{ role_path }}/fixtures/ansible-xml-beers.xml') }}"
xpath: /business/beers
pretty_print: yes
pretty_print: true
add_children:
- beer: Old Rasputin
register: xmlresponse_modification
@ -72,8 +72,8 @@
copy:
content: '{{ xmlresponse_modification.xmlstring }}'
dest: '/tmp/test-pretty-print.xml'
check_mode: yes
diff: yes
check_mode: true
diff: true
register: comparison
# FIXME: This change is related to the newline added by pretty_print