From 2d0ccdc98cfbef20cf4ff59226c9b112ddf76713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Mon, 20 Jan 2020 00:51:54 -0500 Subject: [PATCH] vmware_host_acceptance/test: fix the functional test (#66576) Ensure the functional test is actually run. It works fine on a real environment. --- .../targets/vmware_host_acceptance/tasks/main.yml | 10 +++++----- .../integration/targets/vmware_host_powerstate/aliases | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/integration/targets/vmware_host_acceptance/tasks/main.yml b/test/integration/targets/vmware_host_acceptance/tasks/main.yml index c23832e368a..c4f96ee88c4 100644 --- a/test/integration/targets/vmware_host_acceptance/tasks/main.yml +++ b/test/integration/targets/vmware_host_acceptance/tasks/main.yml @@ -2,7 +2,7 @@ # Copyright: (c) 2018, Abhijeet Kasurde # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -- when: False +- when: vcsim is not defined block: - import_role: name: prepare_vmware_tests @@ -17,13 +17,13 @@ password: "{{ vcenter_password }}" esxi_hostname: '{{ esxi1 }}' validate_certs: no - acceptance_level: vmware_certified + acceptance_level: community state: present register: host_acceptance_info - debug: var=host_acceptance_info - assert: that: - - host_acceptance_info.info is defined + - host_acceptance_info.facts is defined - name: Change acceptance level of given hosts in check mode vmware_host_acceptance: @@ -32,11 +32,11 @@ password: "{{ vcenter_password }}" esxi_hostname: '{{ esxi1 }}' validate_certs: no - acceptance_level: vmware_certified + acceptance_level: community state: present register: host_acceptance_info_check_mode check_mode: yes - debug: var=host_acceptance_info_check_mode - assert: that: - - host_acceptance_info_check_mode.info is defined + - host_acceptance_info_check_mode.facts is defined diff --git a/test/integration/targets/vmware_host_powerstate/aliases b/test/integration/targets/vmware_host_powerstate/aliases index 62871ab8f0b..3eede2cbf01 100644 --- a/test/integration/targets/vmware_host_powerstate/aliases +++ b/test/integration/targets/vmware_host_powerstate/aliases @@ -1,4 +1,3 @@ cloud/vcenter shippable/vcenter/group1 needs/target/prepare_vmware_tests -zuul/vmware/vcenter_1esxi