Fixing Fails in CI Tests (#28804)
parent
908a4dc4f7
commit
0f76a1d16f
|
@ -1,2 +1,3 @@
|
||||||
cloud/azure
|
cloud/azure
|
||||||
|
posix/ci/cloud/azure
|
||||||
destructive
|
destructive
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
- assert:
|
- assert:
|
||||||
that: results.changed
|
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:
|
azure_rm_availabilityset:
|
||||||
name: myavailabilityset2
|
name: myavailabilityset2
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
|
@ -29,13 +29,14 @@
|
||||||
platform_fault_domain_count: 2
|
platform_fault_domain_count: 2
|
||||||
sku: Aligned
|
sku: Aligned
|
||||||
register: results
|
register: results
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- not results.changed
|
- 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:
|
azure_rm_availabilityset:
|
||||||
name: myavailabilityset2
|
name: myavailabilityset2
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
|
@ -45,12 +46,12 @@
|
||||||
tags:
|
tags:
|
||||||
test1: modified
|
test1: modified
|
||||||
register: results
|
register: results
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- results.changed
|
- not results.changed
|
||||||
- results.state.tags.test1 == 'modified'
|
- results.msg == 'You tried to change platform_update_domain_count but is was unsuccessful. An Availability Set is immutable, except tags'
|
||||||
- results.warnings[0] == 'You tried to change platform_update_domain_count but is was unsuccessful'
|
|
||||||
|
|
||||||
- name: Modify availabilty set options to update tags
|
- name: Modify availabilty set options to update tags
|
||||||
azure_rm_availabilityset:
|
azure_rm_availabilityset:
|
||||||
|
|
Loading…
Reference in New Issue