Skip to content

Commit 1f35511

Browse files
committed
tests:ethernets: wait-online DNS testing
1 parent 8bf3f10 commit 1f35511

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/ethernets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,16 @@ def test_systemd_networkd_wait_online(self):
460460
# <dev_e2_client> should be listed normally
461461
self.assertEqual(f.read(), '''[Unit]
462462
ConditionPathIsSymbolicLink=/run/systemd/generator/network-online.target.wants/systemd-networkd-wait-online.service
463+
After=systemd-resolved.service
463464
464465
[Service]
465466
ExecStart=
466467
ExecStart=/lib/systemd/systemd-networkd-wait-online -i %(e2c)s:carrier -i br0:degraded -i findme:carrier
467-
ExecStart=/lib/systemd/systemd-networkd-wait-online --any -o routable -i %(e2c)s -i br0
468+
ExecStart=/lib/systemd/systemd-networkd-wait-online --any --dns -o routable -i %(e2c)s -i br0
468469
''' % {'e2c': self.dev_e2_client})
470+
# Restart sd-nd-wait-online.service and check that it was launched correctly.
471+
# XXX: Enable extra testing once systemd#34640 is available on the SUT (i.e. systemd v258+).
472+
# subprocess.check_call(['systemctl', 'restart', 'systemd-networkd-wait-online.service'])
469473

470474

471475
@unittest.skipIf("NetworkManager" not in test_backends,

0 commit comments

Comments
 (0)