test-network: add testcases for Token=prefixstable with UUID
This commit is contained in:
@@ -7,3 +7,4 @@ IPv6AcceptRA=true
|
||||
|
||||
[IPv6AcceptRA]
|
||||
Token=prefixstable
|
||||
Token=prefixstable,86b123b969ba4b7eb8b3d8605123525a
|
||||
|
||||
@@ -7,7 +7,12 @@ IPv6AcceptRA=true
|
||||
|
||||
[IPv6AcceptRA]
|
||||
Token=prefixstable:2002:da8:1::
|
||||
Token=prefixstable:2002:da8:1::,86b123b969ba4b7eb8b3d8605123525a
|
||||
# invalid tokens
|
||||
Token=prefixstable:2002:da8:1::,00000000000000000000000000000000
|
||||
Token=prefixstable:2002:da8:1::,
|
||||
Token=prefixstable,00000000000000000000000000000000
|
||||
Token=prefixstable,
|
||||
Token=prefixstable@
|
||||
Token=static
|
||||
Token=static:
|
||||
|
||||
@@ -3951,8 +3951,8 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
||||
|
||||
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
||||
print(output)
|
||||
self.assertRegex(output, '2002:da8:1:0')
|
||||
self.assertRegex(output, '2002:da8:2:0.*78:9abc') # EUI
|
||||
self.assertIn('2002:da8:1:0:b47e:7975:fc7a:7d6e', output)
|
||||
self.assertIn('2002:da8:2:0:1034:56ff:fe78:9abc', output) # EUI64
|
||||
|
||||
def test_ipv6_token_prefixstable_without_address(self):
|
||||
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-prefixstable-without-address.network')
|
||||
@@ -3961,8 +3961,8 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
||||
|
||||
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
||||
print(output)
|
||||
self.assertRegex(output, '2002:da8:1:0')
|
||||
self.assertRegex(output, '2002:da8:2:0')
|
||||
self.assertIn('2002:da8:1:0:b47e:7975:fc7a:7d6e', output)
|
||||
self.assertIn('2002:da8:2:0:f689:561a:8eda:7443', output)
|
||||
|
||||
class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
|
||||
links = [
|
||||
|
||||
Reference in New Issue
Block a user