summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-17 19:43:32 +0200
committerGitHub <noreply@github.com>2023-08-17 19:43:32 +0200
commit7cbec4a80c1b7936ff66de45b0234cc093e7e3fc (patch)
tree92e700b7957c3e15b1fc434f0bbfb8dfde85bd93
parentdcb02916dddeb6cc8e898a7df839cc78c67984ff (diff)
parenta2e1199c73ba94f67e3aa1da107be4538fb76560 (diff)
downloadvyos-1x-7cbec4a80c1b7936ff66de45b0234cc093e7e3fc.tar.gz
vyos-1x-7cbec4a80c1b7936ff66de45b0234cc093e7e3fc.zip
Merge pull request #2154 from sever-sever/T5486
T5486: smoketest: adjust to new process_named_running() implementation
-rwxr-xr-xsmoketest/scripts/cli/test_service_dns_dynamic.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_service_dns_dynamic.py b/smoketest/scripts/cli/test_service_dns_dynamic.py
index fd1bd055c..8ef28e70b 100755
--- a/smoketest/scripts/cli/test_service_dns_dynamic.py
+++ b/smoketest/scripts/cli/test_service_dns_dynamic.py
@@ -22,10 +22,11 @@ from base_vyostest_shim import VyOSUnitTestSHIM
from vyos.configsession import ConfigSessionError
from vyos.util import cmd
-from vyos.util import process_named_running
+from vyos.util import process_running
PROCESS_NAME = 'ddclient'
DDCLIENT_CONF = '/run/ddclient/ddclient.conf'
+DDCLIENT_PID = '/run/ddclient/ddclient.pid'
base_path = ['service', 'dns', 'dynamic']
def get_config_value(key):
@@ -89,7 +90,7 @@ class TestServiceDDNS(VyOSUnitTestSHIM.TestCase):
self.assertTrue(pwd == "'" + password + "'")
# Check for running process
- self.assertTrue(process_named_running(PROCESS_NAME))
+ self.assertTrue(process_running(DDCLIENT_PID))
def test_dyndns_rfc2136(self):
# Check if DDNS service can be configured and runs
@@ -119,7 +120,7 @@ class TestServiceDDNS(VyOSUnitTestSHIM.TestCase):
# TODO: inspect generated configuration file
# Check for running process
- self.assertTrue(process_named_running(PROCESS_NAME))
+ self.assertTrue(process_running(DDCLIENT_PID))
if __name__ == '__main__':
unittest.main(verbosity=2)