Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-05 | test_openpgp: Test using UID with no e-mail address | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-09-05 | test_recursiveloader: Cache tmp_paths for read-only layouts | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-09-05 | Handle invalid compressed files when collecting Manifests | Michał 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-05 | Fix wrongly determining uncompressed size | Michał 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-05 | tests: Port test_recursiveloader to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-09-05 | tests: Mark module-scope test dirs read-only | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-31 | tests: Port test_profile to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-30 | tests: Use module-scope fixtures whenever possible | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-30 | test_openpgp: Fix system env tests to respect GNUPG | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-29 | tests: Test OpenPGPSystemEnvironment as well | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-28 | tests: Port test_verify to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | tests: Convert test_util to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | tests: Extend OpenPGP un-expiration tests | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | tests: Convert test_manifest to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | tests: Rewrite test_hash to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | tests: Migrate test_find_top_level to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | Import names directly, fix coding style issues | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | Add tests for keys lacking signatures | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-27 | test_compression: fix unused imports | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-26 | tests: Convert test_compression to pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-26 | tests: Properly skip test_openpgp.py::test_cli when no gpg | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-26 | tests: Rewrite test_openpgp in pure pytest | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | openpgp: Reimplement WKD support via requests | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | openpgp: Introduce a helper method to get WKD URL | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | Remove compatibility code for py<3.6 support | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | tests: Add tests for unexpiring keys | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | tests: Test for trivial cases of key forging | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | tests: Add a test for subkey-signature | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-08-25 | tests: Store key data in split binary form | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-05-16 | openpgp: Default stdin='' in _spawn_gpg() | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2020-05-16 | openpgp: Pass 'gpg --batch' to _spawn_gpg() explicitly | Michał Górny | |
Signed-off-by: Michał Górny <mgorny@gentoo.org> | |||
2019-03-16 | tests: Fix MockedWKDOpenPGPEnvironment._spawn_gpg() return types | Michał Górny | |
2018-07-25 | tests: Add half-mocked tests for WKD-based refresh | Michał Górny | |
2018-07-25 | tests: Add tests for keyserver-based refreshing | Michał Górny | |
2018-03-13 | tests: Fix one more cross-fs test to test for mountpoint | Michał Górny | |
2018-02-22 | cli: Add -x option to prevent crossing filesystem boundaries | Michał Górny | |
2018-02-22 | tests: Assert for /proc being a mountpoint for cross-fs tests | Michał Górny | |
Skip cross-fs tests if /proc is not a mountpoint. This handles cases when /proc exists but is not mounted which is quite normal e.g. on Gentoo/FreeBSD. | |||
2018-02-08 | recursiveloader: Allow cross-device processing by default | Michał Górny | |
2018-02-08 | find_top_level: Remove broken cross-device test | Michał Górny | |
Remove the cross-device test that wrongly assumed we will be traversing logical parent directories rather than physical. In other words, '..' in the symlinked filesystem will never contain the Manifest file. | |||
2018-02-02 | recursiveloader: Detect symlink loops explicitly | Michał Górny | |
2018-02-02 | recursiveloader: Check for cross-device directories earlier in loop | Michał Górny | |
Check for cross-device directory when starting to process the directory rather than for each subdirectory to be processed. This will avoid double stat() call in the future. It also means that cross-device exceptions are raised a little later, when recurring into the directory rather than before doing that. However, the starting directory is now also tested. | |||
2018-02-02 | openpgp: Fix handling OpenPGPNoImplementation in tests | Michał Górny | |
2018-02-01 | openpgp: Use assertion for home-after-close() | Michał Górny | |
2018-02-01 | openpgp: Replace RuntimeError with dedicated for import/refresh errors | Michał Górny | |
2018-02-01 | openpgp: Add tests for expired signature | Michał Górny | |
2018-01-24 | openpgp: Fix GnuPG use to report UTC timestamps | Michał Górny | |
2018-01-24 | Expose Manifest signature data in Manifest classes | Michał Górny | |
2018-01-24 | openpgp: Return basic signature data when verifying signatures | Michał Górny | |
2018-01-19 | Refresh OpenPGP keys before verification | Michał 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-16 | openpgp: Reject signatures made with expired & revoked keys | Michał Górny | |