-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix svs_disp tests and add test for paxctld
Some sd-svs-disp tests were not running, moving sd-svs-disp tests to their own file resolves.
- Loading branch information
Showing
2 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import subprocess | ||
import unittest | ||
|
||
from base import SD_VM_Local_Test | ||
|
||
|
||
class SD_SVS_Disp_Tests(SD_VM_Local_Test): | ||
def setUp(self): | ||
self.vm_name = "sd-svs-disp" | ||
super(SD_SVS_Disp_Tests, self).setUp() | ||
|
||
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 test_sd_svs_paxctld_is_running(self): | ||
cmd = ["qvm-run", "-p", "sd-svs-disp", | ||
"/usr/sbin/service paxctld status"] | ||
p = subprocess.check_output(cmd) | ||
self.assertTrue("active (running)".encode() in p) | ||
|
||
|
||
def load_tests(loader, tests, pattern): | ||
suite = unittest.TestLoader().loadTestsFromTestCase(SD_SVS_Disp_Tests) | ||
return suite |