summaryrefslogtreecommitdiff
path: root/tests/test_openpgp.py
AgeCommit message (Collapse)Author
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
2017-10-27test_openpgp: Fix recursiveloader tests for missing OpenPGPMichał Górny
2017-10-27Add tests for CLI routinesMichał Górny
2017-10-27find_top_level: Do not verify Manifests during searchMichał Górny
2017-10-26recursiveloader: Support verifying Manifest signatures explicitlyMichał Górny
2017-10-26manifest: Support implicit OpenPGP verificationMichał Górny
2017-10-26manifest: Test for incomplete OpenPGP messageMichał Górny
2017-10-25test_openpgp: Improve test coverageMichał Górny
2017-10-25openpgp: Improve closed manager handlingMichał Górny
2017-10-25openpgp: Fix and test the context manager APIMichał Górny
2017-10-25openpgp: Explicitly detect the lack of supported implementationMichał Górny