diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 21:20:51 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-21 21:21:02 +0200 |
commit | cd2a1e2df9fcc7cb2c772ee79c8840ab0642df38 (patch) | |
tree | 0c0513d5b3d4312f962777b4e585f97f77a16a02 /test/test-network | |
parent | test-network: find routing policy rule by priority (diff) | |
download | systemd-cd2a1e2df9fcc7cb2c772ee79c8840ab0642df38.tar.xz systemd-cd2a1e2df9fcc7cb2c772ee79c8840ab0642df38.zip |
test-network: also test routing policy rules are configured as expected after reconfiguration
For issue #34068.
Diffstat (limited to 'test/test-network')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 42af0145b3..180db8bde9 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3288,10 +3288,12 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): with self.subTest(manage_foreign_routes=manage_foreign_routes): self._test_routing_policy_rule(manage_foreign_routes) - def test_routing_policy_rule_issue_11280(self): + def test_routing_policy_rule_restart_and_reconfigure(self): copy_network_unit('25-routing-policy-rule-test1.network', '11-dummy.netdev', '25-routing-policy-rule-dummy98.network', '12-dummy.netdev') + # For #11280 and #34068. + for trial in range(3): restart_networkd(show_logs=(trial > 0)) self.wait_online('test1:degraded', 'dummy98:degraded') @@ -3299,6 +3301,18 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): self.check_routing_policy_rule_test1() self.check_routing_policy_rule_dummy98() + networkctl_reconfigure('test1') + self.wait_online('test1:degraded') + + self.check_routing_policy_rule_test1() + self.check_routing_policy_rule_dummy98() + + networkctl_reconfigure('dummy98') + self.wait_online('dummy98:degraded') + + self.check_routing_policy_rule_test1() + self.check_routing_policy_rule_dummy98() + def test_routing_policy_rule_reconfigure(self): copy_network_unit('25-routing-policy-rule-reconfigure2.network', '11-dummy.netdev') start_networkd() |