1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

* 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:10 +02:00 committed by GitHub
parent 87c37ea441
commit 35c8bbec8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 220 additions and 220 deletions

View file

@ -174,7 +174,7 @@
- name: Test that the file modes were changed - name: Test that the file modes were changed
assert: assert:
that: that:
- "archive_02_gz_stat.changed == False " - archive_02_gz_stat is not changed
- "archive_02_gz_stat.stat.mode == '0600'" - "archive_02_gz_stat.stat.mode == '0600'"
- "'archived' in archive_bz2_result_02" - "'archived' in archive_bz2_result_02"
- "{{ archive_bz2_result_02['archived']| length}} == 3" - "{{ archive_bz2_result_02['archived']| length}} == 3"
@ -199,7 +199,7 @@
- name: Test that the file modes were changed - name: Test that the file modes were changed
assert: assert:
that: that:
- "archive_02_zip_stat.changed == False" - archive_02_zip_stat is not changed
- "archive_02_zip_stat.stat.mode == '0600'" - "archive_02_zip_stat.stat.mode == '0600'"
- "'archived' in archive_zip_result_02" - "'archived' in archive_zip_result_02"
- "{{ archive_zip_result_02['archived']| length}} == 3" - "{{ archive_zip_result_02['archived']| length}} == 3"
@ -224,7 +224,7 @@
- name: Test that the file modes were changed - name: Test that the file modes were changed
assert: assert:
that: that:
- "archive_02_bz2_stat.changed == False" - archive_02_bz2_stat is not changed
- "archive_02_bz2_stat.stat.mode == '0600'" - "archive_02_bz2_stat.stat.mode == '0600'"
- "'archived' in archive_bz2_result_02" - "'archived' in archive_bz2_result_02"
- "{{ archive_bz2_result_02['archived']| length}} == 3" - "{{ archive_bz2_result_02['archived']| length}} == 3"
@ -248,7 +248,7 @@
- name: Test that the file modes were changed - name: Test that the file modes were changed
assert: assert:
that: that:
- "archive_02_xz_stat.changed == False" - archive_02_xz_stat is not changed
- "archive_02_xz_stat.stat.mode == '0600'" - "archive_02_xz_stat.stat.mode == '0600'"
- "'archived' in archive_xz_result_02" - "'archived' in archive_xz_result_02"
- "{{ archive_xz_result_02['archived']| length}} == 3" - "{{ archive_xz_result_02['archived']| length}} == 3"
@ -294,7 +294,7 @@
- name: Assert that nonascii tests succeeded - name: Assert that nonascii tests succeeded
assert: assert:
that: that:
- "nonascii_result_0.changed == true" - nonascii_result_0 is changed
- "nonascii_stat0.stat.exists == true" - "nonascii_stat0.stat.exists == true"
- name: remove nonascii test - name: remove nonascii test
@ -315,7 +315,7 @@
- name: Assert that nonascii tests succeeded - name: Assert that nonascii tests succeeded
assert: assert:
that: that:
- "nonascii_result_1.changed == true" - nonascii_result_1 is changed
- "nonascii_stat_1.stat.exists == true" - "nonascii_stat_1.stat.exists == true"
- name: remove nonascii test - name: remove nonascii test
@ -336,7 +336,7 @@
- name: Assert that nonascii tests succeeded - name: Assert that nonascii tests succeeded
assert: assert:
that: that:
- "nonascii_result_1.changed == true" - nonascii_result_1 is changed
- "nonascii_stat_1.stat.exists == true" - "nonascii_stat_1.stat.exists == true"
- name: remove nonascii test - name: remove nonascii test
@ -357,7 +357,7 @@
- name: Assert that nonascii tests succeeded - name: Assert that nonascii tests succeeded
assert: assert:
that: that:
- "nonascii_result_2.changed == true" - nonascii_result_2 is changed
- "nonascii_stat_2.stat.exists == true" - "nonascii_stat_2.stat.exists == true"
- name: remove nonascii test - name: remove nonascii test

View file

@ -13,7 +13,7 @@
- name: Verify addition of absent flatpak test result (check mode) - name: Verify addition of absent flatpak test result (check mode)
assert: assert:
that: that:
- "addition_result.changed == true" - addition_result is changed
msg: "Adding an absent flatpak shall mark module execution as changed" msg: "Adding an absent flatpak shall mark module execution as changed"
- name: Test non-existent idempotency of addition of absent flatpak (check mode) - name: Test non-existent idempotency of addition of absent flatpak (check mode)
@ -27,7 +27,7 @@
- name: Verify non-existent idempotency of addition of absent flatpak test result (check mode) - name: Verify non-existent idempotency of addition of absent flatpak test result (check mode)
assert: assert:
that: that:
- "double_addition_result.changed == true" - double_addition_result is changed
msg: | msg: |
Adding an absent flatpak a second time shall still mark module execution Adding an absent flatpak a second time shall still mark module execution
as changed in check mode as changed in check mode
@ -44,7 +44,7 @@
- name: Verify removal of absent flatpak test result (check mode) - name: Verify removal of absent flatpak test result (check mode)
assert: assert:
that: that:
- "removal_result.changed == false" - removal_result is not changed
msg: "Removing an absent flatpak shall mark module execution as not changed" msg: "Removing an absent flatpak shall mark module execution as not changed"
# state=present with url on absent flatpak # state=present with url on absent flatpak
@ -60,7 +60,7 @@
- name: Verify addition of absent flatpak with url test result (check mode) - name: Verify addition of absent flatpak with url test result (check mode)
assert: assert:
that: that:
- "url_addition_result.changed == true" - url_addition_result is changed
msg: "Adding an absent flatpak from URL shall mark module execution as changed" msg: "Adding an absent flatpak from URL shall mark module execution as changed"
- name: Test non-existent idempotency of addition of absent flatpak with url (check mode) - name: Test non-existent idempotency of addition of absent flatpak with url (check mode)
@ -76,7 +76,7 @@
result (check mode) result (check mode)
assert: assert:
that: that:
- "double_url_addition_result.changed == true" - double_url_addition_result is changed
msg: | msg: |
Adding an absent flatpak from URL a second time shall still mark module execution Adding an absent flatpak from URL a second time shall still mark module execution
as changed in check mode as changed in check mode
@ -93,7 +93,7 @@
- name: Verify removal of absent flatpak with url test result (check mode) - name: Verify removal of absent flatpak with url test result (check mode)
assert: assert:
that: that:
- "url_removal_result.changed == false" - url_removal_result is not changed
msg: "Removing an absent flatpak shall mark module execution as not changed" msg: "Removing an absent flatpak shall mark module execution as not changed"
@ -112,7 +112,7 @@
- name: Verify addition test result of present flatpak (check mode) - name: Verify addition test result of present flatpak (check mode)
assert: assert:
that: that:
- "addition_present_result.changed == false" - addition_present_result is not changed
msg: "Adding an present flatpak shall mark module execution as not changed" msg: "Adding an present flatpak shall mark module execution as not changed"
# state=absent on present flatpak # state=absent on present flatpak
@ -127,7 +127,7 @@
- name: Verify removal of present flatpak test result (check mode) - name: Verify removal of present flatpak test result (check mode)
assert: assert:
that: that:
- "removal_present_result.changed == true" - removal_present_result is changed
msg: "Removing a present flatpak shall mark module execution as changed" msg: "Removing a present flatpak shall mark module execution as changed"
- name: Test non-existent idempotency of removal (check mode) - name: Test non-existent idempotency of removal (check mode)
@ -140,7 +140,7 @@
- name: Verify non-existent idempotency of removal (check mode) - name: Verify non-existent idempotency of removal (check mode)
assert: assert:
that: that:
- "double_removal_present_result.changed == true" - double_removal_present_result is changed
msg: | msg: |
Removing a present flatpak a second time shall still mark module execution Removing a present flatpak a second time shall still mark module execution
as changed in check mode as changed in check mode
@ -158,7 +158,7 @@
- name: Verify addition with url of present flatpak test result (check mode) - name: Verify addition with url of present flatpak test result (check mode)
assert: assert:
that: that:
- "url_addition_present_result.changed == false" - url_addition_present_result is not changed
msg: "Adding a present flatpak from URL shall mark module execution as not changed" msg: "Adding a present flatpak from URL shall mark module execution as not changed"
# state=absent with url on present flatpak # state=absent with url on present flatpak
@ -173,7 +173,7 @@
- name: Verify removal with url of present flatpak test result (check mode) - name: Verify removal with url of present flatpak test result (check mode)
assert: assert:
that: that:
- "url_removal_present_result.changed == true" - url_removal_present_result is changed
msg: "Removing an absent flatpak shall mark module execution as not changed" msg: "Removing an absent flatpak shall mark module execution as not changed"
- name: Test non-existent idempotency of removal with url of present flatpak (check mode) - name: Test non-existent idempotency of removal with url of present flatpak (check mode)
@ -189,5 +189,5 @@
flatpak test result (check mode) flatpak test result (check mode)
assert: assert:
that: that:
- "double_url_removal_present_result.changed == true" - double_url_removal_present_result is changed
msg: Removing an absent flatpak a second time shall still mark module execution as changed msg: Removing an absent flatpak a second time shall still mark module execution as changed

View file

@ -40,8 +40,8 @@
- name: Verify executable override test result - name: Verify executable override test result
assert: assert:
that: that:
- "executable_override_result.failed == true" - executable_override_result is failed
- "executable_override_result.changed == false" - executable_override_result is not changed
msg: "Specifying non-existing executable shall fail module execution" msg: "Specifying non-existing executable shall fail module execution"
- import_tasks: check_mode.yml - import_tasks: check_mode.yml

View file

@ -11,7 +11,7 @@
- name: Verify addition test result - {{ method }} - name: Verify addition test result - {{ method }}
assert: assert:
that: that:
- "addition_result.changed == true" - addition_result is changed
msg: "state=present shall add flatpak when absent" msg: "state=present shall add flatpak when absent"
- name: Test idempotency of addition - {{ method }} - name: Test idempotency of addition - {{ method }}
@ -25,7 +25,7 @@
- name: Verify idempotency of addition test result - {{ method }} - name: Verify idempotency of addition test result - {{ method }}
assert: assert:
that: that:
- "double_addition_result.changed == false" - double_addition_result is not changed
msg: "state=present shall not do anything when flatpak is already present" msg: "state=present shall not do anything when flatpak is already present"
# state=absent # state=absent
@ -40,7 +40,7 @@
- name: Verify removal test result - {{ method }} - name: Verify removal test result - {{ method }}
assert: assert:
that: that:
- "removal_result.changed == true" - removal_result is changed
msg: "state=absent shall remove flatpak when present" msg: "state=absent shall remove flatpak when present"
- name: Test idempotency of removal - {{ method }} - name: Test idempotency of removal - {{ method }}
@ -53,7 +53,7 @@
- name: Verify idempotency of removal test result - {{ method }} - name: Verify idempotency of removal test result - {{ method }}
assert: assert:
that: that:
- "double_removal_result.changed == false" - double_removal_result is not changed
msg: "state=absent shall not do anything when flatpak is not present" msg: "state=absent shall not do anything when flatpak is not present"
# state=present with url as name # state=present with url as name
@ -69,7 +69,7 @@
- name: Verify addition test result - {{ method }} - name: Verify addition test result - {{ method }}
assert: assert:
that: that:
- "url_addition_result.changed == true" - url_addition_result is changed
msg: "state=present with url as name shall add flatpak when absent" msg: "state=present with url as name shall add flatpak when absent"
- name: Test idempotency of addition with url - {{ method }} - name: Test idempotency of addition with url - {{ method }}
@ -83,7 +83,7 @@
- name: Verify idempotency of addition with url test result - {{ method }} - name: Verify idempotency of addition with url test result - {{ method }}
assert: assert:
that: that:
- "double_url_addition_result.changed == false" - double_url_addition_result is not changed
msg: "state=present with url as name shall not do anything when flatpak is already present" msg: "state=present with url as name shall not do anything when flatpak is already present"
# state=absent with url as name # state=absent with url as name
@ -98,7 +98,7 @@
- name: Verify removal test result - {{ method }} - name: Verify removal test result - {{ method }}
assert: assert:
that: that:
- "url_removal_result.changed == true" - url_removal_result is changed
msg: "state=absent with url as name shall remove flatpak when present" msg: "state=absent with url as name shall remove flatpak when present"
- name: Test idempotency of removal with url - {{ method }} - name: Test idempotency of removal with url - {{ method }}
@ -111,5 +111,5 @@
- name: Verify idempotency of removal with url test result - {{ method }} - name: Verify idempotency of removal with url test result - {{ method }}
assert: assert:
that: that:
- "double_url_removal_result.changed == false" - double_url_removal_result is not changed
msg: "state=absent with url as name shall not do anything when flatpak is not present" msg: "state=absent with url as name shall not do anything when flatpak is not present"

View file

@ -13,7 +13,7 @@
- name: Verify addition of absent flatpak remote test result (check mode) - name: Verify addition of absent flatpak remote test result (check mode)
assert: assert:
that: that:
- "addition_result.changed == true" - addition_result is changed
msg: "Adding an absent flatpak remote shall mark module execution as changed" msg: "Adding an absent flatpak remote shall mark module execution as changed"
- name: Test non-existent idempotency of addition of absent flatpak remote (check mode) - name: Test non-existent idempotency of addition of absent flatpak remote (check mode)
@ -29,7 +29,7 @@
test result (check mode) test result (check mode)
assert: assert:
that: that:
- "double_addition_result.changed == true" - double_addition_result is changed
msg: | msg: |
Adding an absent flatpak remote a second time shall still mark module execution Adding an absent flatpak remote a second time shall still mark module execution
as changed in check mode as changed in check mode
@ -46,7 +46,7 @@
- name: Verify removal of absent flatpak remote test result (check mode) - name: Verify removal of absent flatpak remote test result (check mode)
assert: assert:
that: that:
- "removal_result.changed == false" - removal_result is not changed
msg: "Removing an absent flatpak remote shall mark module execution as not changed" msg: "Removing an absent flatpak remote shall mark module execution as not changed"
@ -65,7 +65,7 @@
- name: Verify addition of present flatpak remote test result (check mode) - name: Verify addition of present flatpak remote test result (check mode)
assert: assert:
that: that:
- "addition_result.changed == false" - addition_result is not changed
msg: "Adding a present flatpak remote shall mark module execution as not changed" msg: "Adding a present flatpak remote shall mark module execution as not changed"
# state=absent # state=absent
@ -80,7 +80,7 @@
- name: Verify removal of present flatpak remote test result (check mode) - name: Verify removal of present flatpak remote test result (check mode)
assert: assert:
that: that:
- "removal_result.changed == true" - removal_result is changed
msg: "Removing a present flatpak remote shall mark module execution as changed" msg: "Removing a present flatpak remote shall mark module execution as changed"
- name: Test non-existent idempotency of removal of present flatpak remote (check mode) - name: Test non-existent idempotency of removal of present flatpak remote (check mode)
@ -95,7 +95,7 @@
test result (check mode) test result (check mode)
assert: assert:
that: that:
- "double_removal_result.changed == true" - double_removal_result is changed
msg: | msg: |
Removing a present flatpak remote a second time shall still mark module execution Removing a present flatpak remote a second time shall still mark module execution
as changed in check mode as changed in check mode

View file

@ -40,8 +40,8 @@
- name: Verify executable override test result - name: Verify executable override test result
assert: assert:
that: that:
- "executable_override_result.failed == true" - executable_override_result is failed
- "executable_override_result.changed == false" - executable_override_result is not changed
msg: "Specifying non-existing executable shall fail module execution" msg: "Specifying non-existing executable shall fail module execution"
- import_tasks: check_mode.yml - import_tasks: check_mode.yml

View file

@ -11,7 +11,7 @@
- name: Verify addition test result - {{ method }} - name: Verify addition test result - {{ method }}
assert: assert:
that: that:
- "addition_result.changed == true" - addition_result is changed
msg: "state=present shall add flatpak when absent" msg: "state=present shall add flatpak when absent"
- name: Test idempotency of addition - {{ method }} - name: Test idempotency of addition - {{ method }}
@ -25,7 +25,7 @@
- name: Verify idempotency of addition test result - {{ method }} - name: Verify idempotency of addition test result - {{ method }}
assert: assert:
that: that:
- "double_addition_result.changed == false" - double_addition_result is not changed
msg: "state=present shall not do anything when flatpak is already present" msg: "state=present shall not do anything when flatpak is already present"
- name: Test updating remote url does not do anything - {{ method }} - name: Test updating remote url does not do anything - {{ method }}
@ -39,7 +39,7 @@
- name: Verify updating remote url does not do anything - {{ method }} - name: Verify updating remote url does not do anything - {{ method }}
assert: assert:
that: that:
- "url_update_result.changed == false" - url_update_result is not changed
msg: "Trying to update the URL of an existing flatpak remote shall not do anything" msg: "Trying to update the URL of an existing flatpak remote shall not do anything"
@ -55,7 +55,7 @@
- name: Verify removal test result - {{ method }} - name: Verify removal test result - {{ method }}
assert: assert:
that: that:
- "removal_result.changed == true" - removal_result is changed
msg: "state=absent shall remove flatpak when present" msg: "state=absent shall remove flatpak when present"
- name: Test idempotency of removal - {{ method }} - name: Test idempotency of removal - {{ method }}
@ -68,5 +68,5 @@
- name: Verify idempotency of removal test result - {{ method }} - name: Verify idempotency of removal test result - {{ method }}
assert: assert:
that: that:
- "double_removal_result.changed == false" - double_removal_result is not changed
msg: "state=absent shall not do anything when flatpak is not present" msg: "state=absent shall not do anything when flatpak is not present"

View file

@ -17,9 +17,9 @@
- name: assert set changed and value is correct - name: assert set changed and value is correct
assert: assert:
that: that:
- set_result.changed == true - set_result is changed
- set_result.diff.before == "\n" - set_result.diff.before == "\n"
- set_result.diff.after == option_value + "\n" - set_result.diff.after == option_value + "\n"
- get_result.changed == false - get_result is not changed
- get_result.config_value == option_value - get_result.config_value == option_value
... ...

View file

@ -19,9 +19,9 @@
- name: assert set changed and value is correct with state=present - name: assert set changed and value is correct with state=present
assert: assert:
that: that:
- set_result.changed == true - set_result is changed
- set_result.diff.before == "\n" - set_result.diff.before == "\n"
- set_result.diff.after == option_value + "\n" - set_result.diff.after == option_value + "\n"
- get_result.changed == false - get_result is not changed
- get_result.config_value == option_value - get_result.config_value == option_value
... ...

View file

@ -18,7 +18,7 @@
- name: assert unset changed and deleted value - name: assert unset changed and deleted value
assert: assert:
that: that:
- unset_result.changed == true - unset_result is changed
- unset_result.diff.before == option_value + "\n" - unset_result.diff.before == option_value + "\n"
- unset_result.diff.after == "\n" - unset_result.diff.after == "\n"
- get_result.config_value == '' - get_result.config_value == ''

View file

@ -18,7 +18,7 @@
- name: assert unset changed but dit not delete value - name: assert unset changed but dit not delete value
assert: assert:
that: that:
- unset_result.changed == true - unset_result is changed
- unset_result.diff.before == option_value + "\n" - unset_result.diff.before == option_value + "\n"
- unset_result.diff.after == "\n" - unset_result.diff.after == "\n"
- get_result.config_value == option_value - get_result.config_value == option_value

View file

@ -17,7 +17,7 @@
- name: assert unsetting didn't change - name: assert unsetting didn't change
assert: assert:
that: that:
- unset_result.changed == false - unset_result is not changed
- unset_result.msg == 'no setting to unset' - unset_result.msg == 'no setting to unset'
- get_result.config_value == '' - get_result.config_value == ''
... ...

View file

@ -17,7 +17,7 @@
- name: assert unset changed and deleted value - name: assert unset changed and deleted value
assert: assert:
that: that:
- unset_result.changed == true - unset_result is changed
- unset_result.diff.before == option_value + "\n" - unset_result.diff.before == option_value + "\n"
- unset_result.diff.after == "\n" - unset_result.diff.after == "\n"
- get_result.config_value == '' - get_result.config_value == ''

View file

@ -18,8 +18,8 @@
- assert: - assert:
that: that:
- "{{ get_status_0002.changed == True }}" - get_status_0002 is changed
- "{{ get_status_0002.issue_status == 'closed' }}" - get_status_0002.issue_status == 'closed'
- name: Check if GitHub issue is closed or not - name: Check if GitHub issue is closed or not
github_issue: github_issue:
@ -32,6 +32,6 @@
- assert: - assert:
that: that:
- "{{ get_status_0003.changed == False }}" - get_status_0003 is not changed
- "{{ get_status_0003.failed == True }}" - get_status_0003 is failed
- "{{ 'Failed' in get_status_0003.msg }}" - "'Failed' in get_status_0003.msg"

View file

@ -167,8 +167,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a instance (check mode) - name: delete a instance (check mode)
hwc_ecs_instance: hwc_ecs_instance:
@ -277,8 +277,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a disk - name: delete a disk

View file

@ -50,8 +50,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a disk (check mode) - name: delete a disk (check mode)
hwc_evs_disk: hwc_evs_disk:
@ -92,7 +92,7 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.changed == false - result is not changed
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
- name: delete a disk that does not exist - name: delete a disk that does not exist
hwc_evs_disk: hwc_evs_disk:
@ -105,5 +105,5 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed

View file

@ -62,8 +62,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a vpc - name: delete a vpc
hwc_network_vpc: hwc_network_vpc:
@ -97,5 +97,5 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed

View file

@ -44,8 +44,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a smn topic - name: delete a smn topic
hwc_smn_topic: hwc_smn_topic:
@ -77,5 +77,5 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed

View file

@ -96,8 +96,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a eip (check mode) - name: delete a eip (check mode)
hwc_vpc_eip: hwc_vpc_eip:
@ -159,8 +159,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a port - name: delete a port

View file

@ -78,8 +78,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a peering connect (check mode) - name: delete a peering connect (check mode)
hwc_vpc_peering_connect: hwc_vpc_peering_connect:
@ -133,8 +133,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a vpc - name: delete a vpc

View file

@ -69,8 +69,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a port (check mode) - name: delete a port (check mode)
hwc_vpc_port: hwc_vpc_port:
@ -116,8 +116,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a subnet - name: delete a subnet

View file

@ -70,8 +70,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a private ip (check mode) - name: delete a private ip (check mode)
hwc_vpc_private_ip: hwc_vpc_private_ip:
@ -117,8 +117,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a subnet - name: delete a subnet

View file

@ -81,8 +81,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a route (check mode) - name: delete a route (check mode)
hwc_vpc_route: hwc_vpc_route:
@ -127,8 +127,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a peering connect - name: delete a peering connect

View file

@ -51,8 +51,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a security group (check mode) - name: delete a security group (check mode)
hwc_vpc_security_group: hwc_vpc_security_group:
@ -83,5 +83,5 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed

View file

@ -85,8 +85,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a security group rule (check mode) - name: delete a security group rule (check mode)
hwc_vpc_security_group_rule: hwc_vpc_security_group_rule:
@ -151,8 +151,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a security group - name: delete a security group

View file

@ -77,8 +77,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#---------------------------------------------------------- #----------------------------------------------------------
- name: delete a subnet (check mode) - name: delete a subnet (check mode)
hwc_vpc_subnet: hwc_vpc_subnet:
@ -136,8 +136,8 @@
- name: assert changed is false - name: assert changed is false
assert: assert:
that: that:
- result.failed == 0 - result is not failed
- result.changed == false - result is not changed
#--------------------------------------------------------- #---------------------------------------------------------
# Post-test teardown # Post-test teardown
- name: delete a vpc - name: delete a vpc

View file

@ -13,7 +13,7 @@
- name: Check that admin user adding succeeds with a change - name: Check that admin user adding succeeds with a change
assert: assert:
that: that:
- add_admin_user.changed == true - add_admin_user is changed
- name: Test add admin user - name: Test add admin user
block: block:
@ -24,7 +24,7 @@
- name: Check that admin user adding succeeds with a change - name: Check that admin user adding succeeds with a change
assert: assert:
that: that:
- add_admin_user.changed == true - add_admin_user is changed
- name: Test add admin user idempotence - name: Test add admin user idempotence
block: block:
@ -35,7 +35,7 @@
- name: Check that admin user adding succeeds without a change - name: Check that admin user adding succeeds without a change
assert: assert:
that: that:
- add_admin_user.changed == false - add_admin_user is not changed
- name: Enable authentication and restart service - name: Enable authentication and restart service
block: block:
@ -58,7 +58,7 @@
- name: Check that adding user with enabled authentication succeeds with a change - name: Check that adding user with enabled authentication succeeds with a change
assert: assert:
that: that:
- add_user_with_auth_enabled.changed == true - add_user_with_auth_enabled is changed
- name: Test add user when authentication enabled - name: Test add user when authentication enabled
block: block:
@ -69,7 +69,7 @@
- name: Check that adding user with enabled authentication succeeds with a change - name: Check that adding user with enabled authentication succeeds with a change
assert: assert:
that: that:
- add_user_with_auth_enabled.changed == true - add_user_with_auth_enabled is changed
- name: Test add user when authentication enabled idempotence - name: Test add user when authentication enabled idempotence
block: block:
@ -80,7 +80,7 @@
- name: Check that adding same user succeeds without a change - name: Check that adding same user succeeds without a change
assert: assert:
that: that:
- same_user.changed == false - same_user is not changed
- name: Test change user password in check mode - name: Test change user password in check mode
block: block:
@ -92,7 +92,7 @@
- name: Check that password changing succeeds with a change - name: Check that password changing succeeds with a change
assert: assert:
that: that:
- change_password.changed == true - change_password is changed
- name: Test change user password - name: Test change user password
block: block:
@ -103,7 +103,7 @@
- name: Check that password changing succeeds with a change - name: Check that password changing succeeds with a change
assert: assert:
that: that:
- change_password.changed == true - change_password is changed
- name: Test remove user in check mode - name: Test remove user in check mode
block: block:
@ -115,7 +115,7 @@
- name: Check that removing user succeeds with a change - name: Check that removing user succeeds with a change
assert: assert:
that: that:
- remove_user.changed == true - remove_user is changed
- name: Test remove user - name: Test remove user
block: block:
@ -126,7 +126,7 @@
- name: Check that removing user succeeds with a change - name: Check that removing user succeeds with a change
assert: assert:
that: that:
- remove_user.changed == true - remove_user is changed
- name: Test remove user idempotence - name: Test remove user idempotence
block: block:
@ -137,4 +137,4 @@
- name: Check that removing user succeeds without a change - name: Check that removing user succeeds without a change
assert: assert:
that: that:
- remove_user.changed == false - remove_user is not changed

View file

@ -41,6 +41,6 @@
- name: check if task was successful - name: check if task was successful
assert: assert:
that: that:
- "{{ external_ip.changed == false }}" - external_ip is not changed
- "{{ external_ip['ansible_facts'] is defined }}" - external_ip.ansible_facts is defined
- "{{ external_ip['ansible_facts']['ipify_public_ip'] is defined }}" - external_ip.ansible_facts.ipify_public_ip is defined

View file

@ -35,7 +35,7 @@
- debug: var=iso_file - debug: var=iso_file
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == False - iso_file.stat.exists == False
- name: Create iso file with a specified file - name: Create iso file with a specified file
@ -54,7 +54,7 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True
- name: Create iso file with a specified file and folder - name: Create iso file with a specified file and folder
@ -74,10 +74,10 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True
- name: Create iso file with volume identification string - name: Create iso file with volume identification string
iso_create: iso_create:
src_files: src_files:
- "{{ role_path }}/files/test1.cfg" - "{{ role_path }}/files/test1.cfg"
@ -93,7 +93,7 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True
- name: Create iso file with Rock Ridge extention - name: Create iso file with Rock Ridge extention
@ -112,7 +112,7 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True
- name: Create iso file with Joliet extention - name: Create iso file with Joliet extention
@ -131,7 +131,7 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True
- name: Create iso file with UDF enabled - name: Create iso file with UDF enabled
@ -150,5 +150,5 @@
- assert: - assert:
that: that:
- iso_result.changed == True - iso_result is changed
- iso_file.stat.exists == True - iso_file.stat.exists == True

View file

@ -28,7 +28,7 @@
- assert: - assert:
that: that:
- iso_extract_test0 is changed == true - iso_extract_test0 is changed
- name: Extract the iso again - name: Extract the iso again
iso_extract: iso_extract:
@ -42,11 +42,11 @@
- name: Test iso_extract_test0_again (normal mode) - name: Test iso_extract_test0_again (normal mode)
assert: assert:
that: that:
- iso_extract_test0_again is changed == false - iso_extract_test0_again is not changed
when: not in_check_mode when: not in_check_mode
- name: Test iso_extract_test0_again (check-mode) - name: Test iso_extract_test0_again (check-mode)
assert: assert:
that: that:
- iso_extract_test0_again is changed == true - iso_extract_test0_again is changed
when: in_check_mode when: in_check_mode

View file

@ -177,7 +177,7 @@
- name: "assert test_{{test_number}} worked" - name: "assert test_{{test_number}} worked"
assert: assert:
that: that:
- result.changed == false - result is not changed
# HOST DISABLEMENT # HOST DISABLEMENT

View file

@ -40,7 +40,7 @@
- assert: - assert:
that: that:
- "'changed' in sync_result" - "'changed' in sync_result"
- "sync_result.changed == true" - sync_result is changed
- "'cmd' in sync_result" - "'cmd' in sync_result"
- "'rsync' in sync_result.cmd" - "'rsync' in sync_result.cmd"
- "'msg' in sync_result" - "'msg' in sync_result"
@ -63,7 +63,7 @@
- assert: - assert:
that: that:
- "sync_result.changed == False" - sync_result is not changed
- name: cleanup old files - name: cleanup old files
file: file:

View file

@ -24,6 +24,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_elements_unicode.changed == true - add_children_elements_unicode is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-children-elements-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-elements-unicode.xml /tmp/ansible-xml-beers.xml

View file

@ -24,6 +24,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_elements.changed == true - add_children_elements is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-children-elements.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-elements.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_from_groupvars.changed == true - add_children_from_groupvars is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-children-from-groupvars.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-from-groupvars.xml /tmp/ansible-xml-beers.xml

View file

@ -28,5 +28,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_insertafter.changed == true - add_children_insertafter is changed
- comparison.changed == false # identical - comparison is not changed # identical

View file

@ -28,5 +28,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_insertbefore.changed == true - add_children_insertbefore is changed
- comparison.changed == false # identical - comparison is not changed # identical

View file

@ -26,6 +26,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_with_attributes_unicode.changed == true - add_children_with_attributes_unicode is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-children-with-attributes-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-with-attributes-unicode.xml /tmp/ansible-xml-beers.xml

View file

@ -29,7 +29,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_children_with_attributes.changed == true - add_children_with_attributes is changed
- comparison.changed == false # identical - comparison is not changed # identical
when: lxml_predictable_attribute_order when: lxml_predictable_attribute_order
#command: diff -u {{ role_path }}/results/test-add-children-with-attributes.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-with-attributes.xml /tmp/ansible-xml-beers.xml

View file

@ -108,7 +108,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-element-implicitly.yml /tmp/ansible-xml-beers-implicit.xml #command: diff -u {{ role_path }}/results/test-add-element-implicitly.yml /tmp/ansible-xml-beers-implicit.xml

View file

@ -21,12 +21,12 @@
src: results/test-add-namespaced-children-elements.xml src: results/test-add-namespaced-children-elements.xml
dest: /tmp/ansible-xml-namespaced-beers.xml dest: /tmp/ansible-xml-namespaced-beers.xml
check_mode: yes check_mode: yes
diff: yes diff: yes
register: comparison register: comparison
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- add_namespaced_children_elements.changed == true - add_namespaced_children_elements is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-namespaced-children-elements.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-add-namespaced-children-elements.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -25,6 +25,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- children_elements.changed == true - children_elements is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-add-children-elements.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-add-children-elements.xml /tmp/ansible-xml-beers.xml

View file

@ -15,5 +15,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- beers.changed == false - beers is not changed
- beers.count == 2 - beers.count == 2

View file

@ -15,5 +15,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- beers.changed == false - beers is not changed
- beers.count == 3 - beers.count == 3

View file

@ -15,7 +15,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- get_element_attribute.changed == false - get_element_attribute is not changed
- get_element_attribute.matches[0]['rating'] is defined and get_element_attribute.matches[0]['rating']['subjective'] == 'да' - get_element_attribute.matches[0]['rating'] is defined and get_element_attribute.matches[0]['rating']['subjective'] == 'да'
- name: Get element text - name: Get element text
@ -28,5 +28,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- get_element_text.changed == false - get_element_text is not changed
- get_element_text.matches[0]['rating'] == 'десять' - get_element_text.matches[0]['rating'] == 'десять'

View file

@ -15,7 +15,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- get_element_attribute.changed == false - get_element_attribute is not changed
- get_element_attribute.matches[0]['rating'] is defined - get_element_attribute.matches[0]['rating'] is defined
- get_element_attribute.matches[0]['rating']['subjective'] == 'true' - get_element_attribute.matches[0]['rating']['subjective'] == 'true'
@ -43,5 +43,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- get_element_text.changed == false - get_element_text is not changed
- get_element_text.matches[0]['rating'] == '10' - get_element_text.matches[0]['rating'] == '10'

View file

@ -18,5 +18,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- module_output.changed == false - module_output is not changed
- module_output.failed == true - module_output is failed

View file

@ -24,6 +24,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- pretty_print_only.changed == true - pretty_print_only is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml

View file

@ -25,6 +25,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- pretty_print.changed == true - pretty_print is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-pretty-print.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-pretty-print.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_attribute.changed == false - remove_attribute is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-attribute.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-remove-attribute.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_attribute.changed == true - remove_attribute is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-attribute.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-remove-attribute.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_element.changed == false - remove_element is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_element.changed == true - remove_element is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-beers.xml

View file

@ -28,6 +28,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_namespaced_attribute.changed == false - remove_namespaced_attribute is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-namespaced-attribute.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-remove-namespaced-attribute.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -28,6 +28,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_namespaced_attribute.changed == true - remove_namespaced_attribute is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-namespaced-attribute.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-remove-namespaced-attribute.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -28,6 +28,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_namespaced_element.changed == false - remove_namespaced_element is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -28,6 +28,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- remove_namespaced_element.changed == true - remove_namespaced_element is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-remove-element.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -24,6 +24,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_attribute_value_unicode.changed == true - set_attribute_value_unicode is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-attribute-value-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-attribute-value-unicode.xml /tmp/ansible-xml-beers.xml

View file

@ -24,6 +24,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_attribute_value.changed == true - set_attribute_value is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-attribute-value.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-attribute-value.xml /tmp/ansible-xml-beers.xml

View file

@ -47,8 +47,8 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_elements_level.changed == true - set_children_elements_level is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-children-elements-level.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-children-elements-level.xml /tmp/ansible-xml-beers.xml
@ -70,5 +70,5 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_again.changed == false - set_children_again is not changed
- comparison.changed == false # identical - comparison is not changed # identical

View file

@ -25,8 +25,8 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_elements_unicode.changed == true - set_children_elements_unicode is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-children-elements-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-children-elements-unicode.xml /tmp/ansible-xml-beers.xml
@ -41,6 +41,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_again.changed == false - set_children_again is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-children-elements-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-children-elements-unicode.xml /tmp/ansible-xml-beers.xml

View file

@ -25,8 +25,8 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_elements.changed == true - set_children_elements is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-children-elements.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-children-elements.xml /tmp/ansible-xml-beers.xml
@ -48,6 +48,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_again.changed == false - set_children_again is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-children-elements.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-children-elements.xml /tmp/ansible-xml-beers.xml

View file

@ -23,6 +23,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_element_value_empty.changed == true - set_element_value_empty is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-element-value-empty.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-element-value-empty.xml /tmp/ansible-xml-beers.xml

View file

@ -37,7 +37,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_element_first_run.changed == true - set_element_first_run is changed
- set_element_second_run.changed == false - set_element_second_run is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-element-value-unicode.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-element-value-unicode.xml /tmp/ansible-xml-beers.xml

View file

@ -37,7 +37,7 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_element_first_run.changed == true - set_element_first_run is changed
- set_element_second_run.changed == false - set_element_second_run is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-element-value.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-set-element-value.xml /tmp/ansible-xml-beers.xml

View file

@ -29,6 +29,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_namespaced_attribute_value.changed == true - set_namespaced_attribute_value is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-set-namespaced-attribute-value.xml /tmp/ansible-xml-namespaced-beers.xml #command: diff -u {{ role_path }}/results/test-set-namespaced-attribute-value.xml /tmp/ansible-xml-namespaced-beers.xml

View file

@ -52,6 +52,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_children_again.changed == false # idempotency - set_children_again is not changed # idempotency
- set_namespaced_attribute_value.changed == true - set_namespaced_attribute_value is changed
- comparison.changed == false # identical - comparison is not changed # identical

View file

@ -41,6 +41,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- set_element_first_run.changed == true - set_element_first_run is changed
- set_element_second_run.changed == false - set_element_second_run is not changed
- comparison.changed == false # identical - comparison is not changed # identical

View file

@ -25,8 +25,8 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- xmlresponse.changed == false - xmlresponse is not changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml
@ -49,8 +49,8 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- xmlresponse.changed == true - xmlresponse is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml
@ -63,7 +63,7 @@
add_children: add_children:
- beer: Old Rasputin - beer: Old Rasputin
register: xmlresponse_modification register: xmlresponse_modification
- name: Compare to expected result - name: Compare to expected result
copy: copy:
content: '{{ xmlresponse_modification.xmlstring }}' content: '{{ xmlresponse_modification.xmlstring }}'
@ -76,6 +76,6 @@
- name: Test expected result - name: Test expected result
assert: assert:
that: that:
- xmlresponse_modification.changed == true - xmlresponse_modification is changed
- comparison.changed == false # identical - comparison is not changed # identical
#command: diff -u {{ role_path }}/results/test-pretty-print.xml /tmp/ansible-xml-beers.xml #command: diff -u {{ role_path }}/results/test-pretty-print.xml /tmp/ansible-xml-beers.xml