mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
systemd-networkd-tests: Skip tests requiring dhcpd if it is not available
dhcpd is not available on CentOS Stream 10 See https://github.com/systemd/systemd/issues/33717 (cherry picked from commit 985d5b4bc23f791bdc79d4c2a9a949cc5d3bc27a) (cherry picked from commit 89904fc10c57b28d064f7abbde97a636000e1323)
This commit is contained in:
parent
29f475653a
commit
75c81c887a
@ -6206,6 +6206,7 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities):
|
||||
self.assertGreater(prefixInfo[0]['PreferredLifetimeUSec'], 0)
|
||||
self.assertGreater(prefixInfo[0]['ValidLifetimeUSec'], 0)
|
||||
|
||||
@unittest.skipUnless(shutil.which('dhcpd'), reason="dhcpd is not available on CentOS Stream 10")
|
||||
def test_dhcp6pd_no_address(self):
|
||||
# For issue #29979.
|
||||
copy_network_unit('25-veth.netdev', '25-dhcp6pd-server.network', '25-dhcp6pd-upstream-no-address.network')
|
||||
@ -6222,6 +6223,7 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities):
|
||||
|
||||
self.check_dhcp6_prefix('veth99')
|
||||
|
||||
@unittest.skipUnless(shutil.which('dhcpd'), reason="dhcpd is not available on CentOS Stream 10")
|
||||
def test_dhcp6pd_no_assign(self):
|
||||
# Similar to test_dhcp6pd_no_assign(), but in this case UseAddress=yes (default),
|
||||
# However, the server does not provide IA_NA. For issue #31349.
|
||||
@ -6239,6 +6241,7 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities):
|
||||
|
||||
self.check_dhcp6_prefix('veth99')
|
||||
|
||||
@unittest.skipUnless(shutil.which('dhcpd'), reason="dhcpd is not available on CentOS Stream 10")
|
||||
def test_dhcp6pd(self):
|
||||
copy_network_unit('25-veth.netdev', '25-dhcp6pd-server.network', '25-dhcp6pd-upstream.network',
|
||||
'25-veth-downstream-veth97.netdev', '25-dhcp-pd-downstream-veth97.network', '25-dhcp-pd-downstream-veth97-peer.network',
|
||||
|
Loading…
x
Reference in New Issue
Block a user