Skip to content

Commit

Permalink
Remove collection reference inside the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
machacekondra committed Mar 8, 2024
1 parent 7cb0088 commit 702b3d0
Show file tree
Hide file tree
Showing 24 changed files with 547 additions and 548 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
guest_id: centos64Guest
datacenter: "{{ dc1 }}"
hardware:
num_cpus: 1
boot_firmware: "bios"
memory_mb: 128
num_cpus: 1
boot_firmware: "bios"
memory_mb: 128
disk:
- size: 1gb
type: thin
datastore: "{{ rw_datastore }}"
- size: 1gb
type: thin
datastore: "{{ rw_datastore }}"
state: poweredoff
folder: "{{ f0 }}"
register: clone_d1_c1_f0
Expand All @@ -28,7 +28,7 @@
- name: assert that changes were made
assert:
that:
- clone_d1_c1_f0 is changed
- clone_d1_c1_f0 is changed

- name: create new VMs again with boot_firmware as 'bios'
vmware_guest:
Expand Down Expand Up @@ -66,13 +66,13 @@
guest_id: centos64Guest
datacenter: "{{ dc1 }}"
hardware:
num_cpus: 1
boot_firmware: "efi"
memory_mb: 128
num_cpus: 1
boot_firmware: "efi"
memory_mb: 128
disk:
- size: 1gb
type: thin
datastore: "{{ rw_datastore }}"
- size: 1gb
type: thin
datastore: "{{ rw_datastore }}"
state: poweredoff
folder: "{{ f0 }}"
register: clone_d1_c1_f0
Expand All @@ -82,7 +82,7 @@
- name: assert that changes were made
assert:
that:
- clone_d1_c1_f0 is changed
- clone_d1_c1_f0 is changed

- name: create new VMs again with boot_firmware as 'efi'
vmware_guest:
Expand Down
100 changes: 50 additions & 50 deletions tests/integration/targets/vmware_guest/tasks/cdrom_d1_c1_f0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
num_cpus: 1
scsi: paravirtual
disk:
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
cdrom:
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] centos.iso"
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] centos.iso"
register: cdrom_vm

- debug: var=cdrom_vm
Expand All @@ -44,10 +44,10 @@
datastore: "{{ rw_datastore }}"
datacenter: "{{ dc1 }}"
cdrom:
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
state: present
register: cdrom_vm
check_mode: true
Expand All @@ -70,10 +70,10 @@
datastore: "{{ rw_datastore }}"
datacenter: "{{ dc1 }}"
cdrom:
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
state: present
register: cdrom_vm

Expand All @@ -94,9 +94,9 @@
name: test_vm1
datacenter: "{{ dc1 }}"
cdrom:
- controller_number: 0
unit_number: 0
type: client
- controller_number: 0
unit_number: 0
type: client
state: present
register: cdrom_vm
check_mode: true
Expand All @@ -118,9 +118,9 @@
name: test_vm1
datacenter: "{{ dc1 }}"
cdrom:
- controller_number: 0
unit_number: 0
type: client
- controller_number: 0
unit_number: 0
type: client
state: present
register: cdrom_vm

Expand Down Expand Up @@ -154,9 +154,9 @@
name: test_vm2
datacenter: "{{ dc1 }}"
cdrom:
- controller_number: 0
unit_number: 0
type: none
- controller_number: 0
unit_number: 0
type: none
state: present
register: cdrom_vm

Expand Down Expand Up @@ -184,20 +184,20 @@
num_cpus: 1
scsi: paravirtual
disk:
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
cdrom:
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] fedora.iso"
register: cdrom_vm

- debug: var=cdrom_vm
Expand All @@ -224,20 +224,20 @@
num_cpus: 1
scsi: paravirtual
disk:
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
- size_mb: 128
type: thin
datastore: "{{ rw_datastore }}"
cdrom:
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] base.iso"
- controller_number: 0
unit_number: 0
type: iso
iso_path: "[{{ ro_datastore }}] base.iso"
register: cdrom_vm
- debug: var=cdrom_vm
- name: assert the VM was created
Expand Down
Loading

0 comments on commit 702b3d0

Please sign in to comment.