vmware_cluster_facts: fix the functional test

Fix the variable names.
This commit is contained in:
Gonéri Le Bouder 2019-07-26 11:27:10 +02:00
parent 964783fbd2
commit 8a821d57bd
2 changed files with 9 additions and 10 deletions

View file

@ -1,4 +1,3 @@
shippable/vcenter/group1 shippable/vcenter/group1
cloud/vcenter cloud/vcenter
needs/target/prepare_vmware_tests needs/target/prepare_vmware_tests

View file

@ -66,27 +66,27 @@
- name: Apply tag to cluster - name: Apply tag to cluster
vmware_tag_manager: vmware_tag_manager:
hostname: "{{ vcenter_server }}" hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_user }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_pass }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
tag_names: tag_names:
- '{{ cluster_category }}:{{ cluster_tag }}' - '{{ cluster_category }}:{{ cluster_tag }}'
state: present state: present
object_name: '{{ cluster_name }}' object_name: '{{ ccr1 }}'
object_type: ClusterComputeResource object_type: ClusterComputeResource
- name: Get facts about cluster - name: Get facts about cluster
vmware_cluster_facts: vmware_cluster_facts:
hostname: "{{ vcenter_server }}" hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_user }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_pass }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
show_tag: True show_tag: True
cluster_name: "{{ cluster_name }}" cluster_name: "{{ ccr1 }}"
register: cluster_info register: cluster_info
- assert: - assert:
that: that:
- cluster_info is defined - cluster_info is defined
- cluster_info.clusters[cluster_name].tags is defined - cluster_info.clusters[ccr1].tags is defined