From cd3ad4e337475e901daa7e20bddcd90079499fa4 Mon Sep 17 00:00:00 2001 From: computezrmle <57127745+computezrmle@users.noreply.github.com> Date: Sun, 29 Dec 2024 09:08:19 +0100 Subject: [PATCH] Update linux_package_integration_tests.py Add test for 'ProtectSystem=strict'. --- tests/linux_package_integration_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/linux_package_integration_tests.py b/tests/linux_package_integration_tests.py index b0c1e599dd..aacde6486c 100644 --- a/tests/linux_package_integration_tests.py +++ b/tests/linux_package_integration_tests.py @@ -148,6 +148,7 @@ def test_user(self): def test_selected_values_from_boinc_client_service_file(self): ts = testset.TestSet("Test selected values from the '/usr/lib/systemd/system/boinc-client.service' file") data = self._get_key_value_pairs_from_file("/usr/lib/systemd/system/boinc-client.service") + ts.expect_equal(data["ProtectSystem"], "strict", "Test 'ProtectSystem' is correctly set") ts.expect_equal(data["ReadWritePaths"], "-/var/lib/boinc -/etc/boinc-client -/tmp", "Test 'ReadWritePaths' is correctly set") ts.expect_equal(data["User"], "boinc", "Test 'User' is correctly set") ts.expect_equal(data["WorkingDirectory"], "/var/lib/boinc", "Test 'WorkingDirectory' is correctly set")