Make qemu integration tests more reliable
Set a static network configuration using cloud-init so that we don't have to wait a long time for DHCP to work. Also, since we know the IP and it is set earlier, this reduces the delay in testing on systems without nested virt (like AWS). Fixes #844. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
db5fb9908a
commit
41e255bc8c
2 changed files with 62 additions and 51 deletions
14
test/cloud-init/network-config
Normal file
14
test/cloud-init/network-config
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
network:
|
||||
version: 2
|
||||
renderer: NetworkManager
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcpv4: false
|
||||
dhcpv6: false
|
||||
addresses:
|
||||
- 192.168.122.50/24
|
||||
gateway4: 192.168.122.1
|
||||
nameservers:
|
||||
addresses:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
Loading…
Add table
Add a link
Reference in a new issue