diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-09-17 15:54:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-17 15:54:00 +0100 |
| commit | 03500232bca1e1e2eda017428171faf9b4a3dc27 (patch) | |
| tree | 60ab94d5e11118f0ad8596403c0fd2f9070d239c /smoketest/scripts/cli/test_service_https.py | |
| parent | c91d7eb13252306629243d9699c92e38a5a12a71 (diff) | |
| parent | 9d9f3bf5aa29a7bdd7dd1abfa879eab1647b751a (diff) | |
| download | vyos-1x-03500232bca1e1e2eda017428171faf9b4a3dc27.tar.gz vyos-1x-03500232bca1e1e2eda017428171faf9b4a3dc27.zip | |
Merge pull request #5471 from c-po/smoketest-T9316
smoketest: T9316: do not race the DHCP client when checking VRF membership
Diffstat (limited to 'smoketest/scripts/cli/test_service_https.py')
| -rwxr-xr-x | smoketest/scripts/cli/test_service_https.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 0f4330153..93a4dff3d 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -28,8 +28,8 @@ from base_vyostest_shim import ignore_warning from vyos.utils.file import read_file from vyos.utils.file import write_file from vyos.utils.process import call -from vyos.utils.process import cmdl from vyos.utils.process import process_named_running +from vyos.utils.network import get_vrf_pids from vyos.pki import CERT_BEGIN from vyos.pki import encode_certificate from vyos.pki import load_certificate @@ -248,8 +248,8 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): self.cli_commit() # Verify nginx is running inside the VRF - tmp = cmdl(['ip', 'vrf', 'pids', vrf]) - self.assertIn(PROCESS_NAME, tmp) + vrf_procs = [name for _, name in get_vrf_pids(vrf)] + self.assertIn(PROCESS_NAME, vrf_procs) self.cli_delete(['interfaces', 'dummy', interface]) self.cli_delete(['vrf', 'name', vrf]) |
