nixos/tests/networking: test nameservers via DHCP
This commit is contained in:
@@ -132,6 +132,10 @@ let
|
||||
client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q '192.168.2'")
|
||||
client.wait_until_succeeds("ip addr show dev enp2s0 | grep -q 'fd00:1234:5678:2:'")
|
||||
|
||||
with subtest("Wait until we have received the nameservers"):
|
||||
client.wait_until_succeeds("grep -q 2001:db8::1 /etc/resolv.conf")
|
||||
client.wait_until_succeeds("grep -q 192.168.2.1 /etc/resolv.conf")
|
||||
|
||||
with subtest("Test vlan 1"):
|
||||
client.wait_until_succeeds("ping -c 1 192.168.1.1")
|
||||
client.wait_until_succeeds("ping -c 1 fd00:1234:5678:1::1")
|
||||
|
||||
Reference in New Issue
Block a user