[PR #5996/24efe9ee backport][stable-6] Normalize bools in tests (#5997)

Normalize bools in tests (#5996)

* Normalize bools in tests.

* Fix typo.

(cherry picked from commit 24efe9ee9a)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2023-02-16 06:42:27 +01:00
committed by GitHub
parent 4f71c9384e
commit ec7f885e2f
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