summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_system_syslog.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-04-18 19:49:48 +0200
committerChristian Breunig <christian@breunig.cc>2025-04-18 19:54:12 +0200
commit50d1e137a5fdad0c253fe9882f86030b7abc6b2b (patch)
tree3567c3ecbe3c8d17098011c3a0e6ad9e1d65e219 /smoketest/scripts/cli/test_system_syslog.py
parent9e47c2153be7cc0e5ed21ca8a976336d4bf872d8 (diff)
downloadvyos-1x-50d1e137a5fdad0c253fe9882f86030b7abc6b2b.tar.gz
vyos-1x-50d1e137a5fdad0c253fe9882f86030b7abc6b2b.zip
syslog: T7367: ensure rsyslog is registered as default systemd syslog service
Systemd states: The default syslog implementation should make syslog.service a symlink to itself, so that this socket activates the right actual syslog service.
Diffstat (limited to 'smoketest/scripts/cli/test_system_syslog.py')
-rwxr-xr-xsmoketest/scripts/cli/test_system_syslog.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_system_syslog.py b/smoketest/scripts/cli/test_system_syslog.py
index 6eae3f19d..f3e1f65ea 100755
--- a/smoketest/scripts/cli/test_system_syslog.py
+++ b/smoketest/scripts/cli/test_system_syslog.py
@@ -14,6 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import os
import unittest
from base_vyostest_shim import VyOSUnitTestSHIM
@@ -59,6 +60,11 @@ class TestRSYSLOGService(VyOSUnitTestSHIM.TestCase):
self.cli_delete(base_path)
self.cli_commit()
+ # The default syslog implementation should make syslog.service a
+ # symlink to itself
+ self.assertEqual(os.readlink('/etc/systemd/system/syslog.service'),
+ '/lib/systemd/system/rsyslog.service')
+
# Check for running process
self.assertFalse(process_named_running(PROCESS_NAME))