diff options
author | Julien Stroheker <julienstroheker@gmail.com> | 2017-08-29 20:39:37 -0400 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2017-08-29 20:39:37 -0400 |
commit | 0f76a1d16f2e6953f66029178c55da4ca2c43825 (patch) | |
tree | aa6fb56d127bee7312b3bb50e9054f1cd8dc31f1 | |
parent | 908a4dc4f7107729f76bf1591fba00a9050a2a09 (diff) | |
download | ansible-0f76a1d16f2e6953f66029178c55da4ca2c43825.tar.gz |
Fixing Fails in CI Tests (#28804)
-rw-r--r-- | test/integration/targets/azure_rm_availabilityset/aliases | 1 | ||||
-rw-r--r-- | test/integration/targets/azure_rm_availabilityset/tasks/main.yml | 13 |
2 files changed, 8 insertions, 6 deletions
diff --git a/test/integration/targets/azure_rm_availabilityset/aliases b/test/integration/targets/azure_rm_availabilityset/aliases index b1cd4a5978..d6ff84111c 100644 --- a/test/integration/targets/azure_rm_availabilityset/aliases +++ b/test/integration/targets/azure_rm_availabilityset/aliases @@ -1,2 +1,3 @@ cloud/azure +posix/ci/cloud/azure destructive diff --git a/test/integration/targets/azure_rm_availabilityset/tasks/main.yml b/test/integration/targets/azure_rm_availabilityset/tasks/main.yml index f09be7d9f4..506aa20637 100644 --- a/test/integration/targets/azure_rm_availabilityset/tasks/main.yml +++ b/test/integration/targets/azure_rm_availabilityset/tasks/main.yml @@ -21,7 +21,7 @@ - assert: that: results.changed -- name: Modify availabilty set immutable options - no changes, issue warning +- name: Modify availabilty set immutable options - no changes, fail for immutable options azure_rm_availabilityset: name: myavailabilityset2 resource_group: "{{ resource_group }}" @@ -29,13 +29,14 @@ platform_fault_domain_count: 2 sku: Aligned register: results + ignore_errors: yes - assert: that: - not results.changed - - results.warnings[0] == 'You tried to change platform_update_domain_count but is was unsuccessful' + - results.msg == 'You tried to change platform_update_domain_count but is was unsuccessful. An Availability Set is immutable, except tags' -- name: Modify availabilty set immutable options and set tags - change tags and issue warning for immutable options +- name: Modify availabilty set immutable options and set tags - change tags and fail for immutable options azure_rm_availabilityset: name: myavailabilityset2 resource_group: "{{ resource_group }}" @@ -45,12 +46,12 @@ tags: test1: modified register: results + ignore_errors: yes - assert: that: - - results.changed - - results.state.tags.test1 == 'modified' - - results.warnings[0] == 'You tried to change platform_update_domain_count but is was unsuccessful' + - not results.changed + - results.msg == 'You tried to change platform_update_domain_count but is was unsuccessful. An Availability Set is immutable, except tags' - name: Modify availabilty set options to update tags azure_rm_availabilityset: |