test: add network template tests
This commit is contained in:
6
tests/network/golden/dhcp-autoinstall
Normal file
6
tests/network/golden/dhcp-autoinstall
Normal file
@@ -0,0 +1,6 @@
|
||||
network:
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: true
|
||||
1
tests/network/golden/dhcp-kickstart
Normal file
1
tests/network/golden/dhcp-kickstart
Normal file
@@ -0,0 +1 @@
|
||||
network --device=eth0 --bootproto=dhcp
|
||||
1
tests/network/golden/dhcp-preseed
Normal file
1
tests/network/golden/dhcp-preseed
Normal file
@@ -0,0 +1 @@
|
||||
d-i netcfg/choose_interface select eth0
|
||||
13
tests/network/golden/static-autoinstall
Normal file
13
tests/network/golden/static-autoinstall
Normal file
@@ -0,0 +1,13 @@
|
||||
network:
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
eth0:
|
||||
dhcp4: false
|
||||
addresses:
|
||||
- 192.168.100.192/24
|
||||
gateway4: 192.168.100.1
|
||||
nameservers:
|
||||
addresses:
|
||||
- 192.168.100.3
|
||||
- 192.168.100.1
|
||||
1
tests/network/golden/static-kickstart
Normal file
1
tests/network/golden/static-kickstart
Normal file
@@ -0,0 +1 @@
|
||||
network --device=eth0 --bootproto=static --ip=192.168.100.192 --netmask=255.255.255.0 --gateway=192.168.100.1 --nameserver=192.168.100.3,192.168.100.1
|
||||
7
tests/network/golden/static-preseed
Normal file
7
tests/network/golden/static-preseed
Normal file
@@ -0,0 +1,7 @@
|
||||
d-i netcfg/choose_interface select eth0
|
||||
d-i netcfg/disable_autoconfig boolean true
|
||||
d-i netcfg/get_ipaddress string 192.168.100.192
|
||||
d-i netcfg/get_netmask string 255.255.255.0
|
||||
d-i netcfg/get_gateway string 192.168.100.1
|
||||
d-i netcfg/get_nameservers string 192.168.100.3 192.168.100.1
|
||||
d-i netcfg/confirm_static boolean true
|
||||
Reference in New Issue
Block a user