From 8a821d57bd5a322967bac1d21b61f172614cad33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 26 Jul 2019 11:27:10 +0200 Subject: [PATCH] vmware_cluster_facts: fix the functional test Fix the variable names. --- .../targets/vmware_cluster_facts/aliases | 1 - .../vmware_cluster_facts/tasks/main.yml | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/test/integration/targets/vmware_cluster_facts/aliases b/test/integration/targets/vmware_cluster_facts/aliases index 9d678a191cd..eb39c07bac0 100644 --- a/test/integration/targets/vmware_cluster_facts/aliases +++ b/test/integration/targets/vmware_cluster_facts/aliases @@ -1,4 +1,3 @@ shippable/vcenter/group1 cloud/vcenter - needs/target/prepare_vmware_tests diff --git a/test/integration/targets/vmware_cluster_facts/tasks/main.yml b/test/integration/targets/vmware_cluster_facts/tasks/main.yml index 5e0de6792d2..df7b34c555f 100644 --- a/test/integration/targets/vmware_cluster_facts/tasks/main.yml +++ b/test/integration/targets/vmware_cluster_facts/tasks/main.yml @@ -66,27 +66,27 @@ - name: Apply tag to cluster vmware_tag_manager: - hostname: "{{ vcenter_server }}" - username: "{{ vcenter_user }}" - password: "{{ vcenter_pass }}" + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" validate_certs: no tag_names: - '{{ cluster_category }}:{{ cluster_tag }}' state: present - object_name: '{{ cluster_name }}' + object_name: '{{ ccr1 }}' object_type: ClusterComputeResource - name: Get facts about cluster vmware_cluster_facts: - hostname: "{{ vcenter_server }}" - username: "{{ vcenter_user }}" - password: "{{ vcenter_pass }}" + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" validate_certs: no show_tag: True - cluster_name: "{{ cluster_name }}" + cluster_name: "{{ ccr1 }}" register: cluster_info - assert: that: - cluster_info is defined - - cluster_info.clusters[cluster_name].tags is defined + - cluster_info.clusters[ccr1].tags is defined