summaryrefslogtreecommitdiff
path: root/tests/test_openpgp.py
AgeCommit message (Collapse)Author
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
2018-02-01openpgp: Replace RuntimeError with dedicated for import/refresh errorsMichał Górny
2018-02-01openpgp: Add tests for expired signatureMichał Górny
2018-01-24openpgp: Fix GnuPG use to report UTC timestampsMichał Górny
2018-01-24Expose Manifest signature data in Manifest classesMichał Górny
2018-01-24openpgp: Return basic signature data when verifying signaturesMichał Górny
2018-01-19Refresh OpenPGP keys before verificationMichał Górny
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.
2018-01-16openpgp: Reject signatures made with expired & revoked keysMichał Górny
2017-11-08Remove support for OPTIONAL entriesMichał Górny
2017-10-28test_openpgp: Remove duplicate key loadingMichał Górny
2017-10-28test_openpgp: Fix cleanup on exceptionMichał Górny
2017-10-28recursiveloader: Provide more fine-grained control over signingMichał Górny
2017-10-28recursiveloader: Support writing signing ManifestsMichał Górny
2017-10-27manifest: Support dumping a signed ManifestMichał Górny
2017-10-27test_openpgp: Test importing a binary keyMichał Górny
2017-10-27openpgp: Convert verify/sign API to use string I/OMichał Górny
Use string I/O for consistency with the API Manifests use where we expect to work on cleartext anyway. Bytes are now used only for loading keys which can be in binary format.
2017-10-27openpgp: Support signing keysMichał Górny
2017-10-27test_openpgp: Fix passing key to the CLI testMichał Górny