Skip to content

Commit

Permalink
Update linux_package_integration_tests.py
Browse files Browse the repository at this point in the history
Add test for 'ProtectSystem=strict'.
  • Loading branch information
computezrmle authored Dec 29, 2024
1 parent 1a6a6fd commit cd3ad4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/linux_package_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cd3ad4e

Please sign in to comment.