summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-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-25Remove compatibility code for py<3.6 supportMichał 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>
2020-05-16openpgp: Default stdin='' in _spawn_gpg()Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-05-16openpgp: Pass 'gpg --batch' to _spawn_gpg() explicitlyMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2019-03-16tests: Fix MockedWKDOpenPGPEnvironment._spawn_gpg() return typesMichał Górny
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-03-13tests: Fix one more cross-fs test to test for mountpointMichał Górny
2018-02-22cli: Add -x option to prevent crossing filesystem boundariesMichał Górny
2018-02-22tests: Assert for /proc being a mountpoint for cross-fs testsMichał 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-08recursiveloader: Allow cross-device processing by defaultMichał Górny
2018-02-08find_top_level: Remove broken cross-device testMichał 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-02recursiveloader: Detect symlink loops explicitlyMichał Górny
2018-02-02recursiveloader: Check for cross-device directories earlier in loopMichał 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-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-12-12Add tests for dealing with symlink loopsMichał Górny
2017-12-02tests: Replace lambdas with serializable functionsMichał Górny
2017-12-02Add tests for entries for files in missing directoryMichał Górny
2017-12-02recursiveloader: Split get_file_entry_dict() per directoryMichał Górny
2017-12-02recursiveloader: Ignore Manifest mismatches when updatingMichał Górny
2017-12-02tests: Add tests for mismatched Manifest fileMichał Górny
2017-11-24Fix wrong timestamp name for metadata/*Michał Górny
2017-11-24Create sub-Manifests for dtd & xml-schemaMichał Górny
2017-11-24Ignore timestamps in metadata subreposMichał Górny
2017-11-24Ignore lost+found in case repo was mounted on separate ext* filesystemMichał Górny
2017-11-23manifest: Encode all C0/C1 control characters + DELMichał Górny
2017-11-22test_recursiveloader: Add tests for filenames needing escapingMichał Górny
2017-11-22manifest: Fix encoding support with Python 2Michał Górny
2017-11-22manifest: Support decoding filename escape sequencesMichał Górny
2017-11-22manifest: Support encoding special characters in filenamesMichał Górny
2017-11-22manifest: Forbid backslash in paths tooMichał Górny
2017-11-20Check entry filenames for disallowed charactersMichał Górny
2017-11-20test_profile: Include verification passMichał Górny