Skip to content

Commit

Permalink
tests:ethernets: wait-online DNS testing
Browse files Browse the repository at this point in the history
  • Loading branch information
slyon committed Feb 3, 2025
1 parent 8bf3f10 commit 1f35511
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/ethernets.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,16 @@ def test_systemd_networkd_wait_online(self):
# <dev_e2_client> should be listed normally
self.assertEqual(f.read(), '''[Unit]
ConditionPathIsSymbolicLink=/run/systemd/generator/network-online.target.wants/systemd-networkd-wait-online.service
After=systemd-resolved.service
[Service]
ExecStart=
ExecStart=/lib/systemd/systemd-networkd-wait-online -i %(e2c)s:carrier -i br0:degraded -i findme:carrier
ExecStart=/lib/systemd/systemd-networkd-wait-online --any -o routable -i %(e2c)s -i br0
ExecStart=/lib/systemd/systemd-networkd-wait-online --any --dns -o routable -i %(e2c)s -i br0
''' % {'e2c': self.dev_e2_client})
# Restart sd-nd-wait-online.service and check that it was launched correctly.
# XXX: Enable extra testing once systemd#34640 is available on the SUT (i.e. systemd v258+).
# subprocess.check_call(['systemctl', 'restart', 'systemd-networkd-wait-online.service'])


@unittest.skipIf("NetworkManager" not in test_backends,
Expand Down

0 comments on commit 1f35511

Please sign in to comment.