summaryrefslogtreecommitdiffstats
path: root/test/test-network/systemd-networkd-tests.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-05 04:17:51 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-14 02:24:27 +0100
commitbbef21e4e5c449191aaff51c2c78c5272eeebc11 (patch)
treec62ad9e23c9391ff4a40bbc42da23156e960c4aa /test/test-network/systemd-networkd-tests.py
parentman/network: update documentation for KeepConfiguration= (diff)
downloadsystemd-bbef21e4e5c449191aaff51c2c78c5272eeebc11.tar.xz
systemd-bbef21e4e5c449191aaff51c2c78c5272eeebc11.zip
test-network: update KeepConfiguration=dhcp -> dynamic
Diffstat (limited to '')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 5ae57dd951..e603e6087a 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -7277,10 +7277,10 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
self.assertNotIn('test-hostname', output)
self.assertNotIn('26:mtu', output)
- def test_dhcp_keep_configuration_dhcp(self):
+ def test_dhcp_keep_configuration_dynamic(self):
copy_network_unit('25-veth.netdev',
'25-dhcp-server-veth-peer.network',
- '25-dhcp-client-keep-configuration-dhcp.network')
+ '25-dhcp-client-keep-configuration-dynamic.network')
start_networkd()
self.wait_online('veth-peer:carrier')
start_dnsmasq()
@@ -7312,7 +7312,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
self.assertRegex(output, r'inet 192.168.5.[0-9]*/24 metric 1024 brd 192.168.5.255 scope global veth99\n *'
'valid_lft forever preferred_lft forever')
- with open(os.path.join(network_unit_dir, '25-dhcp-client-keep-configuration-dhcp.network'), mode='a', encoding='utf-8') as f:
+ with open(os.path.join(network_unit_dir, '25-dhcp-client-keep-configuration-dynamic.network'), mode='a', encoding='utf-8') as f:
f.write('[Network]\nDHCP=no\n')
start_networkd()
@@ -7324,10 +7324,10 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
self.assertRegex(output, r'inet 192.168.5.[0-9]*/24 metric 1024 brd 192.168.5.255 scope global veth99\n *'
'valid_lft forever preferred_lft forever')
- def test_dhcp_keep_configuration_dhcp_on_stop(self):
+ def test_dhcp_keep_configuration_dynamic_on_stop(self):
copy_network_unit('25-veth.netdev',
'25-dhcp-server-veth-peer.network',
- '25-dhcp-client-keep-configuration-dhcp-on-stop.network')
+ '25-dhcp-client-keep-configuration-dynamic-on-stop.network')
start_networkd()
self.wait_online('veth-peer:carrier')
start_dnsmasq()