1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-02 08:22:52 +00:00

Massive adjustment in integration tests for changed and failed (#2577) (#2586)

* 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:
patchback[bot] 2021-05-22 14:53:06 +02:00 committed by GitHub
parent 4006db89bf
commit e21ddcb5b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 220 additions and 220 deletions

View file

@ -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