mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Enable Azure integration tests in CI. (#28110)
This commit is contained in:
parent
394e1e350c
commit
2aee9fb28a
5 changed files with 11 additions and 3 deletions
|
@ -1,2 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/azure
|
||||
destructive
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
- name: Create domain name
|
||||
set_fact:
|
||||
domain_name: "ansible-{{ resource_group | hash('md5') | truncate(24, True, '') }}"
|
||||
|
||||
- name: Remove public ip
|
||||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
@ -9,7 +13,7 @@
|
|||
resource_group: "{{ resource_group }}"
|
||||
name: testing01
|
||||
allocation_method: Static
|
||||
domain_name: autotest01
|
||||
domain_name: "{{ domain_name }}"
|
||||
tags:
|
||||
testing: testing
|
||||
delete: on-exit
|
||||
|
@ -18,7 +22,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- output.state.public_ip_allocation_method == 'Static'
|
||||
- output.state.dns_settings.domain_name_label == 'autotest01'
|
||||
- output.state.dns_settings.domain_name_label == domain_name
|
||||
- output.state.tags | length == 2
|
||||
- output.state.tags.testing == 'testing'
|
||||
|
||||
|
@ -27,7 +31,7 @@
|
|||
resource_group: "{{ resource_group }}"
|
||||
name: testing01
|
||||
allocation_method: Static
|
||||
domain_name: autotest01
|
||||
domain_name: "{{ domain_name }}"
|
||||
tags:
|
||||
testing: testing
|
||||
delete: on-exit
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/azure
|
||||
destructive
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/azure
|
||||
destructive
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/azure
|
||||
destructive
|
||||
|
|
Loading…
Reference in a new issue