diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-22 05:09:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-22 05:09:25 +0200 |
| commit | 73b4db8ad60c89a2900144d889555a50e5c8534b (patch) | |
| tree | fcc9126a37ba0e75b32378f903393be4bb42b6ce /smoketest/scripts/cli/test_interfaces_loopback.py | |
| parent | 9e1cb14a5eb1eedd1fce67732ad84f6528e30314 (diff) | |
| parent | 75e235563dfeeb5133376eb56fd8576ad48f8419 (diff) | |
| download | vyos-1x-73b4db8ad60c89a2900144d889555a50e5c8534b.tar.gz vyos-1x-73b4db8ad60c89a2900144d889555a50e5c8534b.zip | |
Merge pull request #4803 from c-po/smoketest-call-base-class
T7948: always call setUp() and tearDown() base class methods
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_loopback.py')
| -rwxr-xr-x | smoketest/scripts/cli/test_interfaces_loopback.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_loopback.py b/smoketest/scripts/cli/test_interfaces_loopback.py index 6cc0d4dbe..f3a3602d1 100755 --- a/smoketest/scripts/cli/test_interfaces_loopback.py +++ b/smoketest/scripts/cli/test_interfaces_loopback.py @@ -21,7 +21,9 @@ from base_interfaces_test import BasicInterfaceTest from base_interfaces_test import MSG_TESTCASE_UNSUPPORTED from base_vyostest_shim import VyOSUnitTestSHIM +from vyos.frrender import mgmt_daemon from vyos.utils.network import is_intf_addr_assigned +from vyos.utils.process import process_named_running loopbacks = ['127.0.0.1', '::1'] @@ -44,6 +46,9 @@ class LoopbackInterfaceTest(BasicInterfaceTest.TestCase): for intf in self._interfaces: self.assertIn(intf, interfaces()) + # check process health and continuity + self.assertEqual(self.mgmt_daemon_pid, process_named_running(mgmt_daemon)) + def test_add_single_ip_address(self): super().test_add_single_ip_address() for addr in loopbacks: |
