Rename azure_rm_virtualmachineimage_facts test.

This commit is contained in:
Matt Clay 2020-02-07 14:09:01 -08:00
parent 64567cf4f6
commit 415409c6e3
3 changed files with 8 additions and 8 deletions

View file

@ -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