summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-01-19 15:37:28 +0100
committerMichał Górny <mgorny@gentoo.org>2018-01-19 15:37:28 +0100
commitf57978a8175e43b78b87b9ce8a88a5863d5fec8f (patch)
treee9e827243b071c2ec49ca0941940db769df73975 /tests
parent98c657c35b03837e413cdbd28894b08dbc4a1c85 (diff)
downloadgemato-f57978a8175e43b78b87b9ce8a88a5863d5fec8f.tar.gz
Refresh OpenPGP keys before verification
Always refresh OpenPGP keys before starting the verification process. This ensures that the key has not been revoked, and also reduces the risk of using an expired key.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_openpgp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py
index 2241931..f42ad85 100644
--- a/tests/test_openpgp.py
+++ b/tests/test_openpgp.py
@@ -1,6 +1,6 @@
# gemato: OpenPGP signature support tests
# vim:fileencoding=utf-8
-# (c) 2017 Michał Górny
+# (c) 2017-2018 Michał Górny
# Licensed under the terms of 2-clause BSD license
import base64
@@ -436,6 +436,7 @@ class OpenPGPCorrectKeyTest(unittest.TestCase):
self.assertEqual(
gemato.cli.main(['gemato', 'verify',
'--openpgp-key', os.path.join(d, '.key.asc'),
+ '--no-refresh-keys',
'--require-signed-manifest', d]),
0)
finally: