summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_service_dns_forwarding.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-05 21:23:47 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-05 21:23:58 +0200
commit56c6bd3d517e2bac5e4adf3f813c17079547c002 (patch)
tree797730618180f20425b135047e089051198846f5 /smoketest/scripts/cli/test_service_dns_forwarding.py
parentb9dcd6a9754de32c27dcd1e64d72209e39ad922a (diff)
downloadvyos-1x-56c6bd3d517e2bac5e4adf3f813c17079547c002.tar.gz
vyos-1x-56c6bd3d517e2bac5e4adf3f813c17079547c002.zip
smoketest: dns: forwarding: daemon should not run after test is completed
Diffstat (limited to 'smoketest/scripts/cli/test_service_dns_forwarding.py')
-rwxr-xr-xsmoketest/scripts/cli/test_service_dns_forwarding.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_service_dns_forwarding.py b/smoketest/scripts/cli/test_service_dns_forwarding.py
index 8005eb319..28336fd43 100755
--- a/smoketest/scripts/cli/test_service_dns_forwarding.py
+++ b/smoketest/scripts/cli/test_service_dns_forwarding.py
@@ -45,6 +45,9 @@ class TestServicePowerDNS(VyOSUnitTestSHIM.TestCase):
self.cli_delete(base_path)
self.cli_commit()
+ # Check for running process
+ self.assertFalse(process_named_running(PROCESS_NAME))
+
def test_basic_forwarding(self):
# Check basic DNS forwarding settings
cache_size = '20'
@@ -115,8 +118,8 @@ class TestServicePowerDNS(VyOSUnitTestSHIM.TestCase):
tmp = get_config_value('dnssec')
self.assertEqual(tmp, option)
- # Check for running process
- self.assertTrue(process_named_running(PROCESS_NAME))
+ # Check for running process
+ self.assertTrue(process_named_running(PROCESS_NAME))
def test_external_nameserver(self):
# Externe Domain Name Servers (DNS) addresses