summaryrefslogtreecommitdiff
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-09-05Bump to 15.3Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05test_recursiveloader: Cache tmp_paths for read-only layoutsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05compression: Fix compatibility with py<3.8 exceptionsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05tox.ini: Require pytest>=5Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05Handle invalid compressed files when collecting ManifestsMichał Górny
Fix load_unregistered_manifests() not to crash on 'Manifest*' files that do not contain valid compressed data. Instead, treat them as unknown files, similarly how Manifests with invalid data are handled. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05Fix wrongly determining uncompressed sizeMichał Górny
Flush the file after writing to ensure that .buffer.tell() gives non-zero value. This fixes a number of cases of Manifests not being compressed. It also pointed out a major mistake in profile tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05pytest: Enable strict XFAIL handlingMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05Fix remaining PEP8 issues and extend PEP8 testing to testsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05tests: Port test_recursiveloader to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-09-05tests: Mark module-scope test dirs read-onlyMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-31tests: Port test_profile to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-30profile: Put profile names inside the eclassesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-30Bump to 15.2Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-30Remove obsolete 'object' inheritanceMichał 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-29Remove io.open() py2-ismMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-28Reformat gemato code and fix PEP8 complianceMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-28tests: Port test_verify to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27Bump to 15.1Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27openpgp: Fix WKD→HKP fallback for missing requestsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27tests: Convert test_util to pytestMichał 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-27tests: Convert test_manifest to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27tests: Rewrite test_hash to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-27tests: Migrate test_find_top_level to pytestMichał 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-27test_compression: fix unused importsMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-26tests: Convert test_compression to pytestMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-26tox.ini: Tests on crippled envs as wellMichał 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-25Bump to 15.0Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25Remove remaining pyblake2 usesMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25setup.py: Remove py<3.6 depsMichał 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-25Remove compatibility code for py<3.6 supportMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25Stop pretending to test py<3.6Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25tox.ini: pypy3 shouldn't need pyblake2 anymoreMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-08-25Stop testing Python 2Michał 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>