Skip to content

Commit

Permalink
added list of mac addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-savina committed Jul 15, 2024
1 parent de5e498 commit d60d8f1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
13 changes: 12 additions & 1 deletion tests/integration/targets/group_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ custom_esxi_8_iso_path: "[eco-nfs-datastore-iso] custom_esxi_8.iso"
datastore1_rhel_8_9_iso_path: "[datastore1] ISO/rhel-8.9-x86_64-boot.iso"
datastore1_rhel_9_3_iso_path: "[datastore1] ISO/rhel-9.3-x86_64-dvd.iso"
vm_network_name: "VM Network"
test_network_name: "TestNetwork"
test_network_name: "TestNetwork"

# list of mac addresses used in tests
# add a new mac addresses in order to use it in a test
# to keep tests independent do not use the same mac address in different tests

# used in vcenter_host_connection_test
mac_address_host_connection: "00:50:56:8b:ea:f0"
# used in provision_virtual_esxi_test
mac_address_provision_virtual_esxi: "00:50:56:8b:95:ff"
# used in esxi_maintenance_mode_test
mac_address_esxi_maintenance: "00:50:56:8b:93:a5"
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ provision_virtual_esxi_networks:
- name: "{{ test_network_name }}"
device_type: "vmxnet3"
type: "dhcp"
mac: "00:50:56:8b:93:a5"
mac: "{{ mac_address_esxi_maintenance }}"
provision_virtual_esxi_disks:
- size_gb: 100
type: thin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ provision_virtual_esxi_networks:
- name: "{{ vm_network_name }}"
device_type: "vmxnet3"
type: "dhcp"
mac: "00:50:56:8b:95:ff"
mac: "{{ mac_address_provision_virtual_esxi }}"
provision_virtual_esxi_disks:
- size_gb: 100
type: thin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
that:
- vm_network_info.network_info[index].name == network.name
- vm_network_info.network_info[index].device_type == network.device_type
- vm_network_info.network_info[index].mac_address == network.mac
loop: "{{ vm_updated_networks }}"
loop_control:
loop_var: network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ provision_vms_template:
provision_vm_networks:
- name: "{{ vm_network_name }}"
device_type: "vmxnet3"
mac: "00:50:56:bd:d2:9e"
type: "dhcp"
provision_vm_resource_pool: null
provision_vm_disk:
Expand Down Expand Up @@ -58,7 +57,6 @@ provision_vms:
provision_vm_networks:
- name: "{{ vm_network_name }}"
device_type: "vmxnet3"
mac: "00:50:56:bd:d2:9e"
type: "dhcp"
provision_vm_resource_pool: null
provision_vm_disk:
Expand All @@ -84,7 +82,6 @@ provision_vms:
provision_vm_networks:
- name: "{{ vm_network_name }}"
device_type: "vmxnet3"
mac: "00:50:56:bd:d2:9e"
type: "dhcp"
provision_vm_resource_pool: null
provision_vm_disk:
Expand Down Expand Up @@ -128,7 +125,6 @@ portgroup_name: qe-network
vm_network_to_add:
- name: "{{ portgroup_name }}"
device_type: "vmxnet3"
mac: "00:50:a6:b5:b2:3c"
type: "dhcp"

vm_updated_networks: "{{ vm_to_update.provision_vm_networks + vm_network_to_add }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ provision_vm_cdrom:
provision_vm_networks:
- name: "{{ vm_network_name }}"
device_type: "vmxnet3"
mac: "00:50:56:bd:d2:9e"
type: "dhcp"
provision_vm_resource_pool: null
provision_vm_disk:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ provision_virtual_esxi_networks:
- name: "{{ test_network_name }}"
device_type: "vmxnet3"
type: "dhcp"
mac: "00:50:56:8b:ea:f0"
mac: "{{ mac_address_host_connection }}"
provision_virtual_esxi_disks:
- size_gb: 100
type: thin
Expand Down

0 comments on commit d60d8f1

Please sign in to comment.