From c435ac6d4fbafc71736a2958d28010ccc3450277 Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Mon, 3 Jun 2019 20:12:24 +0530 Subject: [PATCH] Fixes #205 installs libreoffice in svs disp Also restarts and enables paxctl service --- dom0/sd-svs-disp-files.sls | 12 ++++++++++++ tests/test_svs.py | 3 +++ 2 files changed, 15 insertions(+) diff --git a/dom0/sd-svs-disp-files.sls b/dom0/sd-svs-disp-files.sls index 184a9967..dd3772bd 100644 --- a/dom0/sd-svs-disp-files.sls +++ b/dom0/sd-svs-disp-files.sls @@ -19,3 +19,15 @@ sd-svs-disp-install-mimetype-handler-package: - securedrop-workstation-svs-disp - require: - sls: fpf-apt-test-repo + +paxctld: + service.running: + - enable: True + - reload: True + +sd-svs-disp-install-libreoffice: + pkg.installed: + - name: libreoffice + - retry: + attempts: 3 + interval: 60 diff --git a/tests/test_svs.py b/tests/test_svs.py index 9ba186b1..0ebdff3f 100644 --- a/tests/test_svs.py +++ b/tests/test_svs.py @@ -36,6 +36,9 @@ def test_sd_client_package_installed(self): pkg = "securedrop-workstation-svs-disp" self.assertTrue(self._package_is_installed(pkg)) + def test_sd_svs_libreoffice_installed(self): + self.assertTrue(self._package_is_installed("libreoffice")) + def load_tests(loader, tests, pattern): suite = unittest.TestLoader().loadTestsFromTestCase(SD_SVS_Tests)