mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 23:51:23 -07:00
Migrate more Azure integration tests. (#29034)
This commit is contained in:
parent
8f4c8844c4
commit
08bdb6198e
10 changed files with 34 additions and 8 deletions
|
@ -0,0 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/group2/azure
|
||||
destructive
|
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- setup_azure
|
|
@ -0,0 +1,43 @@
|
|||
- name: set location
|
||||
set_fact:
|
||||
location: eastus
|
||||
|
||||
- name: Get facts for a specific image
|
||||
azure_rm_virtualmachineimage_facts:
|
||||
location: "{{ location }}"
|
||||
publisher: OpenLogic
|
||||
offer: CentOS
|
||||
sku: '7.3'
|
||||
version: '7.3.20170707'
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that: azure_vmimages | length == 1
|
||||
|
||||
- name: List available versions
|
||||
azure_rm_virtualmachineimage_facts:
|
||||
location: "{{ location }}"
|
||||
publisher: OpenLogic
|
||||
offer: CentOS
|
||||
sku: '7.3'
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that: azure_vmimages | length > 0
|
||||
|
||||
- name: List available offers
|
||||
azure_rm_virtualmachineimage_facts:
|
||||
location: "{{ location }}"
|
||||
publisher: OpenLogic
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that: azure_vmimages | length > 0
|
||||
|
||||
- name: List available publishers
|
||||
azure_rm_virtualmachineimage_facts:
|
||||
location: "{{ location }}"
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
that: azure_vmimages | length > 0
|
Loading…
Add table
Add a link
Reference in a new issue