From 93d1a57d9a01483fd7d06d7e87646d4b7667eb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 13 Nov 2019 11:09:32 -0500 Subject: [PATCH] vmware_guest: fix the name of the test VMs The test VM names must be deterministic, this way, the teardown playbook can clean up the resources after the test execution. See: https://docs.ansible.com/ansible/latest/dev_guide/platforms/vmware_guidelines.html#vm-names-should-be-predictable --- .../targets/vmware_guest/tasks/clone_d1_c1_f0.yml | 4 ++-- .../vmware_guest/tasks/reconfig_vm_to_latest_version.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/targets/vmware_guest/tasks/clone_d1_c1_f0.yml b/test/integration/targets/vmware_guest/tasks/clone_d1_c1_f0.yml index 0817734dc39..3b3d2ad543f 100644 --- a/test/integration/targets/vmware_guest/tasks/clone_d1_c1_f0.yml +++ b/test/integration/targets/vmware_guest/tasks/clone_d1_c1_f0.yml @@ -8,7 +8,7 @@ hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" - name: new_vm_1 + name: test_vm1 template: "{{ virtual_machines[0].name }}" guest_id: centos64Guest datacenter: "{{ dc1 }}" @@ -31,7 +31,7 @@ hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" - name: new_vm_2 + name: test_vm2 template: "{{ virtual_machines[0].name }}" guest_id: centos64Guest datacenter: "{{ dc1 }}" diff --git a/test/integration/targets/vmware_guest/tasks/reconfig_vm_to_latest_version.yml b/test/integration/targets/vmware_guest/tasks/reconfig_vm_to_latest_version.yml index 8b9b395b559..061539119a7 100644 --- a/test/integration/targets/vmware_guest/tasks/reconfig_vm_to_latest_version.yml +++ b/test/integration/targets/vmware_guest/tasks/reconfig_vm_to_latest_version.yml @@ -9,7 +9,7 @@ hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" - name: test_vm_version12 + name: test_vm1 guest_id: centos7_64Guest datacenter: "{{ dc1 }}" folder: "{{ f0 }}" @@ -32,7 +32,7 @@ hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" - name: test_vm_version_latest + name: test_vm1 guest_id: centos7_64Guest datacenter: "{{ dc1 }}" folder: "{{ f0 }}" @@ -55,7 +55,7 @@ hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" - name: test_vm_version12 + name: test_vm1 guest_id: centos7_64Guest datacenter: "{{ dc1 }}" folder: "{{ f0 }}"