ansible/test/integration/roles/azure_rm_virtualmachineimage_facts/tasks/main.yml
Matt Clay 3631163329 Clean up and migrate Azure tests. (#28103)
* Remove placeholder Azure test.
* Migrate Azure tests to ansible-test.
* Initial cleanup on remaining legacy Azure tests.
2017-08-12 01:03:42 -07:00

39 lines
864 B
YAML

- name: Get facts for a specific image
azure_rm_virtualmachineimage_facts:
location: "{{ location }}"
publisher: OpenLogic
offer: CentOS
sku: '7.1'
version: '7.1.20150731'
register: output
- assert:
that: azure_vmimages | length == 1
- name: List available versions
azure_rm_virtualmachineimage_facts:
location: "{{ location }}"
publisher: OpenLogic
offer: CentOS
sku: '7.1'
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