diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-24 12:46:27 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-24 14:08:51 +0200 |
commit | 80762cccdc1e789cc4c795020ddbcd1ef6346575 (patch) | |
tree | c95c5a01f158bee335c520e624445ca67853eb12 | |
parent | a5258a0cb025caa01612ab07c862e427e6dc9863 (diff) | |
download | systemd-80762cccdc1e789cc4c795020ddbcd1ef6346575.tar.gz |
test-network: add a test case for DNSSL in RA
Closes #4590.
-rw-r--r-- | test/test-network/conf/ipv6-prefix-veth.network | 3 | ||||
-rw-r--r-- | test/test-network/conf/ipv6-prefix.network | 1 | ||||
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/test/test-network/conf/ipv6-prefix-veth.network b/test/test-network/conf/ipv6-prefix-veth.network index 3d2acecde2..609692f97a 100644 --- a/test/test-network/conf/ipv6-prefix-veth.network +++ b/test/test-network/conf/ipv6-prefix-veth.network @@ -3,3 +3,6 @@ Name=veth99 [Network] IPv6AcceptRA=true + +[IPv6AcceptRA] +UseDomains=yes diff --git a/test/test-network/conf/ipv6-prefix.network b/test/test-network/conf/ipv6-prefix.network index aec1d1b2c3..7813c2c1ba 100644 --- a/test/test-network/conf/ipv6-prefix.network +++ b/test/test-network/conf/ipv6-prefix.network @@ -7,6 +7,7 @@ IPv6SendRA=yes [IPv6SendRA] DNS=_link_local 2002:da8:1:0::1 DNSLifetimeSec=1min +Domains=hogehoge.test [IPv6Prefix] Prefix=2002:da8:1:0::/64 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 499677e6e6..46c4bb7a95 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3314,6 +3314,10 @@ class NetworkdRATests(unittest.TestCase, Utilities): self.assertRegex(output, 'fe80::') self.assertRegex(output, '2002:da8:1::1') + output = check_output(*resolvectl_cmd, 'domain', 'veth99', env=env) + print(output) + self.assertIn('hogehoge.test', output) + output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env) print(output) self.assertRegex(output, '2002:da8:1:0') |