Commit Graph

3 Commits

Author SHA1 Message Date
Patrick McCarty 239d7296d2 pkg_integrity: enable qt package sha256 verification
The new QtIoVerifier class is largely based on GnomeOrgVerifier.

Also add a unit test for the successful verification case.

(Most of qt package tarballs are large, so I picked the smallest one,
qtspeech, which is 98KB.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2019-06-26 01:10:32 -07:00
Arzhan Kinzhalin cd11c14a7d Remove the shared keyring.
Keys now must be stored in the individual packages. autospec will import them
there (as opposed to this central locations). Packages were updated with their
current pub keys where possible.
2018-02-16 08:29:31 -08:00
Gabi Beyer e13d3edb03 Remove network dependencies for pkg_integrity test
Create a mock function that copies files from the testfiles
directory to a tmp directory, when attempting to download
files from the network.

Create a mock function for head_request that returns 404 for
a few specified urls, and 200 for the rest.

The mock calls will allow the functionality of the pkg_integrity
program to be tested and not dependent on networking. Tests will
no longer need to be skipped in travis with the removal of
network dependency.

Removed a few tests that were not specific to pkg_integrity, but
instead were testing the importing and exporting abilities
of the gpg key server.

Added mock as a requirement to the requirements.txt file.

Signed-off-by: Gabi Beyer <gabib@live.com>
2017-11-01 16:58:58 -07:00