go-github-selfupdate/selfupdate/testdata
Tobias Kohlbau 116dfa144d Add hash and signature validation
Go-self-update lacks support for checking integrity of downloaded files.
For more advanced situation it's necessary to validate the hash or
verify against public signatures. This patch adds support for
SHA2 hash and ECDSA PublicKey signature validation.
SHA2 uses file with suffix `.sha256`, whereas ECDSA uses
`.sig` file endings. See `selfupdate/validate_test.go` for examples.

Signed-off-by: Tobias Kohlbau <t.kohlbau@myopenfactory.com>
2018-11-09 11:21:21 +01:00
..
github-release-test add tests for downloading and updating binary 2017-12-30 12:21:23 +09:00
Test.crt Add hash and signature validation 2018-11-09 11:21:21 +01:00
Test.pem Add hash and signature validation 2018-11-09 11:21:21 +01:00
bar-not-found.gzip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
bar-not-found.tar.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
bar-not-found.tar.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
bar-not-found.zip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
empty.tar.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
empty.zip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
fake-executable fix tests which used a not-existing path 2018-01-03 23:13:23 +09:00
fake-executable.exe fix tests which used a not-existing path 2018-01-03 23:13:23 +09:00
foo.tar.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
foo.tar.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
foo.zip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
foo.zip.sha256 Add hash and signature validation 2018-11-09 11:21:21 +01:00
foo.zip.sig Add hash and signature validation 2018-11-09 11:21:21 +01:00
invalid-gzip.tar.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
invalid-tar.tar.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
invalid-tar.tar.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
invalid-xz.tar.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
invalid.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
invalid.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
invalid.zip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
single-file.gz add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
single-file.gzip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00
single-file.xz add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
single-file.zip add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00