Rename azure_rm_virtualmachineimage_facts test.

pull/67244/head
Matt Clay 6 years ago
parent 64567cf4f6
commit 415409c6e3

@ -3,7 +3,7 @@
location: eastus location: eastus
- name: Get facts for a specific image - name: Get facts for a specific image
azure_rm_virtualmachineimage_facts: azure_rm_virtualmachineimage_info:
location: "{{ location }}" location: "{{ location }}"
publisher: OpenLogic publisher: OpenLogic
offer: CentOS offer: CentOS
@ -12,10 +12,10 @@
register: output register: output
- assert: - assert:
that: azure_vmimages | length == 1 that: output['vmimages'] | length == 1
- name: List available versions - name: List available versions
azure_rm_virtualmachineimage_facts: azure_rm_virtualmachineimage_info:
location: "{{ location }}" location: "{{ location }}"
publisher: OpenLogic publisher: OpenLogic
offer: CentOS offer: CentOS
@ -23,21 +23,21 @@
register: output register: output
- assert: - assert:
that: azure_vmimages | length > 0 that: output['vmimages'] | length > 0
- name: List available offers - name: List available offers
azure_rm_virtualmachineimage_facts: azure_rm_virtualmachineimage_info:
location: "{{ location }}" location: "{{ location }}"
publisher: OpenLogic publisher: OpenLogic
register: output register: output
- assert: - assert:
that: azure_vmimages | length > 0 that: output['vmimages'] | length > 0
- name: List available publishers - name: List available publishers
azure_rm_virtualmachineimage_facts: azure_rm_virtualmachineimage_info:
location: "{{ location }}" location: "{{ location }}"
register: output register: output
- assert: - assert:
that: azure_vmimages | length > 0 that: output['vmimages'] | length > 0
Loading…
Cancel
Save