From 9f57167b0cacf9fff0c23275fdb0666ebfc2be57 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 22 Jan 2023 09:31:32 +0100 Subject: openpgp: Store all verification results in OpenPGPSignatureData MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tests/test_openpgp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_openpgp.py') diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py index 2b14dcf..e29dbed 100644 --- a/tests/test_openpgp.py +++ b/tests/test_openpgp.py @@ -36,6 +36,7 @@ from gemato.openpgp import ( get_wkd_url, OpenPGPSignatureList, OpenPGPSignatureData, + OpenPGPSignatureStatus, ) from gemato.recursiveloader import ManifestRecursiveLoader @@ -420,15 +421,17 @@ def assert_signature(sig: OpenPGPSignatureList, fingerprint=SECOND_KEY_FINGERPRINT, timestamp=datetime.datetime(2023, 1, 21, 17, 16, 24), primary_key_fingerprint=SECOND_KEY_FINGERPRINT, - good_sig=True, + sig_status=OpenPGPSignatureStatus.GOOD, trusted_sig=True, + valid_sig=True, ), OpenPGPSignatureData( fingerprint=KEY_FINGERPRINT, timestamp=datetime.datetime(2023, 1, 21, 17, 14, 44), primary_key_fingerprint=KEY_FINGERPRINT, - good_sig=True, + sig_status=OpenPGPSignatureStatus.GOOD, trusted_sig=True, + valid_sig=True, ), ] elif manifest_var == 'SUBKEY_SIGNED_MANIFEST': -- cgit v1.2.3