aboutsummaryrefslogtreecommitdiffstats
path: root/tests/report_tests/encryption_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/report_tests/encryption_tests.py')
-rw-r--r--tests/report_tests/encryption_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/report_tests/encryption_tests.py b/tests/report_tests/encryption_tests.py
index 9ce401ec..d60d9d78 100644
--- a/tests/report_tests/encryption_tests.py
+++ b/tests/report_tests/encryption_tests.py
@@ -22,10 +22,11 @@ class EncryptedReportTest(StageOneReportTest):
sos_cmd = "-o kernel --encrypt-pass %s" % encrypt_pass
def test_archive_gpg_encrypted(self):
- self.assertOutputContains('/.*sosreport-.*tar.*\.gpg')
+ self.assertOutputContains(r'/.*sosreport-.*tar.*\.gpg')
_cmd = "file %s" % self.encrypted_path
res = process.run(_cmd)
- self.assertTrue("GPG symmetrically encrypted data" in res.stdout.decode())
+ self.assertTrue(("GPG symmetrically encrypted data" in res.stdout.decode())
+ or ("PGP symmetric key encrypted data" in res.stdout.decode()))
def test_tarball_named_secure(self):
self.assertTrue('secured-' in self.encrypted_path)