Skip to content

Commit

Permalink
enhancement of lookup plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-savina committed Nov 26, 2024
1 parent 4090b9f commit 3283b5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
vcenter_datastore: "{{ shared_storage_01 }}"
test_cluster: "test-cluster"
test_cluster: "{{ tiny_prefix }}-test-cluster"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions tests/integration/targets/vmware_rest_lookup_plugin/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand All @@ -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 }}"
Expand Down

0 comments on commit 3283b5b

Please sign in to comment.