From 3283b5b9c8ef2b1cff5068532e4a0d708f904a17 Mon Sep 17 00:00:00 2001 From: anna-savina Date: Tue, 26 Nov 2024 14:54:08 +0200 Subject: [PATCH] enhancement of lookup plugin test --- .../vmware_rest_lookup_plugin/defaults/main.yml | 2 +- .../targets/vmware_rest_lookup_plugin/playbook.yml | 2 +- .../targets/vmware_rest_lookup_plugin/tasks/main.yml | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/integration/targets/vmware_rest_lookup_plugin/defaults/main.yml b/tests/integration/targets/vmware_rest_lookup_plugin/defaults/main.yml index f64decb6..3c6b05b5 100644 --- a/tests/integration/targets/vmware_rest_lookup_plugin/defaults/main.yml +++ b/tests/integration/targets/vmware_rest_lookup_plugin/defaults/main.yml @@ -1,3 +1,3 @@ --- vcenter_datastore: "{{ shared_storage_01 }}" -test_cluster: "test-cluster" +test_cluster: "{{ tiny_prefix }}-test-cluster" diff --git a/tests/integration/targets/vmware_rest_lookup_plugin/playbook.yml b/tests/integration/targets/vmware_rest_lookup_plugin/playbook.yml index 70c76dc5..a112bc8e 100644 --- a/tests/integration/targets/vmware_rest_lookup_plugin/playbook.yml +++ b/tests/integration/targets/vmware_rest_lookup_plugin/playbook.yml @@ -4,7 +4,7 @@ tasks: - name: Import eco-vcenter credentials ansible.builtin.include_vars: - file: ../../integration_config.yml + file: ../group_vars.yml tags: eco-vcenter-ci - name: Import vmware_rest_lookup_plugin test diff --git a/tests/integration/targets/vmware_rest_lookup_plugin/tasks/main.yml b/tests/integration/targets/vmware_rest_lookup_plugin/tasks/main.yml index e873cc63..42058904 100644 --- a/tests/integration/targets/vmware_rest_lookup_plugin/tasks/main.yml +++ b/tests/integration/targets/vmware_rest_lookup_plugin/tasks/main.yml @@ -1,16 +1,8 @@ --- - name: Test lookup plugin block: - - name: Import common vars - ansible.builtin.include_vars: - file: ../group_vars.yml - - name: Create test cluster vmware.vmware.cluster: - hostname: "{{ VMWARE_HOST }}" - username: "{{ VMWARE_USER }}" - password: "{{ VMWARE_PASSWORD }}" - validate_certs: "{{ VMWARE_VALIDATE_CERTS }}" datacenter: "{{ vcenter_datacenter }}" port: "{{ vcenter_port }}" cluster_name: "{{ test_cluster }}" @@ -36,10 +28,6 @@ always: - name: Destroy test cluster vmware.vmware.cluster: - hostname: "{{ VMWARE_HOST }}" - username: "{{ VMWARE_USER }}" - password: "{{ VMWARE_PASSWORD }}" - validate_certs: "{{ VMWARE_VALIDATE_CERTS }}" datacenter: "{{ vcenter_datacenter }}" port: "{{ vcenter_port }}" cluster_name: "{{ test_cluster }}"