summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-29 18:01:52 +0200
committerGitHub <noreply@github.com>2024-07-29 18:01:52 +0200
commit6a6b8616a9f2cae6f2fa3e31b7ff75365bae86e6 (patch)
tree12f196a4b18320f76368c270b8eb7ecfb36008f3 /smoketest
parenteb61f286ed0b275648f04ef83a1ed28caee1ab9a (diff)
parent508e1e3494eeadca4a0415e56cb910876d82f516 (diff)
downloadvyos-1x-6a6b8616a9f2cae6f2fa3e31b7ff75365bae86e6.tar.gz
vyos-1x-6a6b8616a9f2cae6f2fa3e31b7ff75365bae86e6.zip
Merge pull request #3890 from vyos/mergify/bp/sagitta/pr-3889
smoketest: T5705: use locally connected remote syslog servers (backport #3889)
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_system_syslog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_system_syslog.py b/smoketest/scripts/cli/test_system_syslog.py
index 030ec587b..45a5b4087 100755
--- a/smoketest/scripts/cli/test_system_syslog.py
+++ b/smoketest/scripts/cli/test_system_syslog.py
@@ -53,8 +53,8 @@ class TestRSYSLOGService(VyOSUnitTestSHIM.TestCase):
self.assertFalse(process_named_running(PROCESS_NAME))
def test_syslog_basic(self):
- host1 = '198.51.100.1'
- host2 = '192.0.2.1'
+ host1 = '127.0.0.10'
+ host2 = '127.0.0.20'
self.cli_set(base_path + ['host', host1, 'port', '999'])
self.cli_set(base_path + ['host', host1, 'facility', 'all', 'level', 'all'])
@@ -68,7 +68,7 @@ class TestRSYSLOGService(VyOSUnitTestSHIM.TestCase):
# *.* @198.51.100.1:999
# kern.err @192.0.2.1:514
config = [get_config_value('\*.\*'), get_config_value('kern.err'), get_config_value('\*.warning')]
- expected = ['@198.51.100.1:999', '@192.0.2.1:514', '/dev/console']
+ expected = [f'@{host1}:999', f'@{host2}:514', '/dev/console']
for i in range(0,3):
self.assertIn(expected[i], config[i])