Enable Azure integration tests in CI. (#28110)

pull/24650/merge
Matt Clay 7 years ago committed by GitHub
parent 394e1e350c
commit 2aee9fb28a

@ -1,2 +1,3 @@
cloud/azure cloud/azure
posix/ci/cloud/azure
destructive 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 - name: Remove public ip
azure_rm_publicipaddress: azure_rm_publicipaddress:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
@ -9,7 +13,7 @@
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testing01 name: testing01
allocation_method: Static allocation_method: Static
domain_name: autotest01 domain_name: "{{ domain_name }}"
tags: tags:
testing: testing testing: testing
delete: on-exit delete: on-exit
@ -18,7 +22,7 @@
- assert: - assert:
that: that:
- output.state.public_ip_allocation_method == 'Static' - 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 | length == 2
- output.state.tags.testing == 'testing' - output.state.tags.testing == 'testing'
@ -27,7 +31,7 @@
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testing01 name: testing01
allocation_method: Static allocation_method: Static
domain_name: autotest01 domain_name: "{{ domain_name }}"
tags: tags:
testing: testing testing: testing
delete: on-exit delete: on-exit

@ -1,2 +1,3 @@
cloud/azure cloud/azure
posix/ci/cloud/azure
destructive destructive

@ -1,2 +1,3 @@
cloud/azure cloud/azure
posix/ci/cloud/azure
destructive destructive

@ -1,2 +1,3 @@
cloud/azure cloud/azure
posix/ci/cloud/azure
destructive destructive

Loading…
Cancel
Save