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

* Replaced ".changed ==" with "is [not] changed". Same for failed

* Mr Quote refused to go
This commit is contained in:
Alexei Znamensky 2021-05-22 23:51:36 +12:00 committed by GitHub
commit d7e55db99b
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