mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
consolidate availabilityset tests (#45327)
This commit is contained in:
parent
8adc7901ed
commit
d309530bb6
5 changed files with 19 additions and 35 deletions
|
@ -1,3 +1,4 @@
|
|||
cloud/azure
|
||||
shippable/azure/group1
|
||||
destructive
|
||||
azure_rm_availalibityset_facts
|
||||
|
|
|
@ -99,6 +99,24 @@
|
|||
- not results.changed
|
||||
- results.state.tags.checktest1 == 'modified1'
|
||||
|
||||
#
|
||||
# azure_rm_availabilityset_facts tests
|
||||
#
|
||||
- name: Get facts for created availability set
|
||||
azure_rm_availabilityset_facts:
|
||||
name: myavailabilityset2
|
||||
resource_group: "{{ resource_group }}"
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- not results.changed
|
||||
- not results.failed
|
||||
- results.ansible_facts.azure_availabilitysets[0].properties.platformFaultDomainCount == 2
|
||||
- results.ansible_facts.azure_availabilitysets[0].properties.platformUpdateDomainCount == 5
|
||||
- results.ansible_facts.azure_availabilitysets[0].sku == 'Aligned'
|
||||
|
||||
|
||||
- name: Delete an availability set
|
||||
azure_rm_availabilityset:
|
||||
name: myavailabilityset1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue