mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 08:22:52 +00:00
* Replaced ".changed ==" with "is [not] changed". Same for failed
* Mr Quote refused to go
(cherry picked from commit d7e55db99b)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
4006db89bf
commit
e21ddcb5b6
69 changed files with 220 additions and 220 deletions
|
|
@ -25,8 +25,8 @@
|
|||
- name: Test expected result
|
||||
assert:
|
||||
that:
|
||||
- xmlresponse.changed == false
|
||||
- comparison.changed == false # identical
|
||||
- xmlresponse is not changed
|
||||
- comparison is not changed # identical
|
||||
#command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml
|
||||
|
||||
|
||||
|
|
@ -49,8 +49,8 @@
|
|||
- name: Test expected result
|
||||
assert:
|
||||
that:
|
||||
- xmlresponse.changed == true
|
||||
- comparison.changed == false # identical
|
||||
- xmlresponse is changed
|
||||
- comparison is not changed # identical
|
||||
#command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml
|
||||
|
||||
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
add_children:
|
||||
- beer: Old Rasputin
|
||||
register: xmlresponse_modification
|
||||
|
||||
|
||||
- name: Compare to expected result
|
||||
copy:
|
||||
content: '{{ xmlresponse_modification.xmlstring }}'
|
||||
|
|
@ -76,6 +76,6 @@
|
|||
- name: Test expected result
|
||||
assert:
|
||||
that:
|
||||
- xmlresponse_modification.changed == true
|
||||
- comparison.changed == false # identical
|
||||
- xmlresponse_modification is changed
|
||||
- comparison is not changed # identical
|
||||
#command: diff -u {{ role_path }}/results/test-pretty-print.xml /tmp/ansible-xml-beers.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue