Skip to content

Commit

Permalink
Merge pull request #2154 from sever-sever/T5486
Browse files Browse the repository at this point in the history
T5486: smoketest: adjust to new process_named_running() implementation
  • Loading branch information
c-po committed Aug 17, 2023
2 parents dcb0291 + a2e1199 commit 7cbec4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions smoketest/scripts/cli/test_service_dns_dynamic.py
Expand Up @@ -22,10 +22,11 @@

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):
Expand Down Expand Up @@ -89,7 +90,7 @@ def test_dyndns_service(self):
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
Expand Down Expand Up @@ -119,7 +120,7 @@ def test_dyndns_rfc2136(self):
# 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)

0 comments on commit 7cbec4a

Please sign in to comment.