summaryrefslogtreecommitdiff
path: root/tests/test_openpgp.py
AgeCommit message (Collapse)Author
2023-01-22tests: Extend test_verify_detached() to 1-out-of-2 caseMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-22tests: Make assert_signature() more reusableMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-22openpgp: Add a function to verify detached signatureMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-22openpgp: Allow verifying a subset of signaturesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-22test_openpgp: Add more tests for the multi-signature caseMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-22openpgp: Store all verification results in OpenPGPSignatureDataMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-21openpgp: Initial support for multiple signaturesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-21test_openpgp: Workaround pyflakes' failuresMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-21test_openpgp: Put common part of Manifest into a varMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-01-21tests: Move the combined keys to keydataMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-26Modernize via pyupgradeMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-17Support --require-secure-hashes in verifyMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-17Fix handling --no-require-secure-hashesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-17Fix linting failuresMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-17Fix update w/ require_secure_hashes to require at least one hashMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-17Support controlling secure hashes req in CLI updateMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-16Support defaulting secure_hashes to top-level Manifest signingMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-13Revert "Fix tests not to rely on entries without checksum"Michał Górny
Thinking about it more, GLEP 74 does not explicitly forbid entries without a single checksum, so neither should we. Reverts: 6e48fd1c908b902329d873ddd9d3c91294fbd148 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-09-13Fix tests not to rely on entries without checksumMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-10-01openpgp: Fix handling connection errors in WKD refreshMichał Górny
Bug: https://bugs.gentoo.org/745771 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-10test_openpgp: Fix race conditions in mocked system env cleanupMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-08openpgp: Handle non-utf8 UIDs gracefullyMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-07test_openpgp: Fix ResourceWarning (cleaning up tmpdir)Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-06Add a partial experimental PGPy-based OpenPGP providerMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-06test_openpgp: Add more tests for importing key combosMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-06openpgp: Move get_wkd_url() to global scopeMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-06openpgp: Rename GPG-based environments to *GPGEnvironmentMichał Górny
Rename the GPG-based OpenPGP support implementations to SystemGPGEnvironment and IsolatedGPGEnvironment. OpenPGPEnvironment and OpenPGPSystemEnvironment remain as aliases to the currently preferred implementations. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05Do not call signal.strsignal() when not available (py<3.8)Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05Add gpg-wrap commandMichał Górny
Closes: https://github.com/mgorny/gemato/issues/18 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05openpgp: Verify key validity for signaturesMichał Górny
Require keys to have at least minimal validity for signature verification to be successful. Appropriately mark imported keys ultimately trusted/valid by default. Closes: https://github.com/mgorny/gemato/issues/17 Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05openpgp: Move listing keys to a separate methodMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05test_openpgp: Test using UID with no e-mail addressMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-30tests: Use module-scope fixtures whenever possibleMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-30test_openpgp: Fix system env tests to respect GNUPGMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-29tests: Test OpenPGPSystemEnvironment as wellMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27tests: Extend OpenPGP un-expiration testsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27Import names directly, fix coding style issuesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27Add tests for keys lacking signaturesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-26tests: Properly skip test_openpgp.py::test_cli when no gpgMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-26tests: Rewrite test_openpgp in pure pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25openpgp: Reimplement WKD support via requestsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25openpgp: Introduce a helper method to get WKD URLMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25tests: Add tests for unexpiring keysMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25tests: Test for trivial cases of key forgingMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25tests: Add a test for subkey-signatureMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25tests: Store key data in split binary formMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2018-07-25tests: Add half-mocked tests for WKD-based refreshMichał Górny
2018-07-25tests: Add tests for keyserver-based refreshingMichał Górny
2018-02-02openpgp: Fix handling OpenPGPNoImplementation in testsMichał Górny
2018-02-01openpgp: Use assertion for home-after-close()Michał Górny